Browse Source

experiment with not filtering out non-common addresses in hostinfo.networks

JackDoan 1 day ago
parent
commit
0fe3d21a94
1 changed files with 1 additions and 0 deletions
  1. 1 0
      firewall.go

+ 1 - 0
firewall.go

@@ -429,6 +429,7 @@ func (f *Firewall) Drop(fp firewall.Packet, incoming bool, h *HostInfo, caPool *
 		return nil
 	}
 
+	// TODO if we don't have a network in common with this packet's source IP, (and it's not for an unsafe_network), do we reject it?
 	// Make sure remote address matches nebula certificate
 	if h.networks != nil {
 		if !h.networks.Contains(fp.RemoteAddr) {