only send relevant filterrules to nodes

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby authored and Kristoffer Dalby committed 2023-06-21 10:31:48 +02:00
1 parent 2675ff4b94
commit 88ca2501d1
4 files changed
+489 -454

No files matched your search

+4 -3
View File
@@ -403,8 +403,8 @@ func Test_fullMapResponse(t *testing.T) {
ACLs: []policy.ACL{
{
Action: "accept",
Sources: []string{"mini"},
Destinations: []string{"100.64.0.2:*"},
Sources: []string{"100.64.0.2"},
Destinations: []string{"mini:*"},
},
},
},
@@ -430,8 +430,9 @@ func Test_fullMapResponse(t *testing.T) {
CollectServices: "false",
PacketFilter: []tailcfg.FilterRule{
{
SrcIPs: []string{"100.64.0.1/32", "100.64.0.2/32"},
SrcIPs: []string{"100.64.0.2/32"},
DstPorts: []tailcfg.NetPortRange{
{IP: "100.64.0.1/32", Ports: tailcfg.PortRangeAny},
{IP: "100.64.0.2/32", Ports: tailcfg.PortRangeAny},
},
},