fix: add machine with UFW firewall (allow ipv6 management traffic) fixes #65

This commit is contained in:
Pasha Sviderski
2025-08-04 16:50:18 +10:00
parent a7273c8c96
commit 35d0a90125
6 changed files with 129 additions and 71 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func MachineIP(subnet netip.Prefix) netip.Addr {
}
// ManagementIP returns the IPv6 address of a peer derived from the first 14 bytes of its public key.
// This address is intended for cluster management traffic.
// This address always starts with fdcc: and is intended for cluster management traffic.
func ManagementIP(publicKey secret.Secret) netip.Addr {
bytes := [16]byte{0xfd, 0xcc}
copy(bytes[2:], publicKey[:14])