mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-23 00:44:25 +01:00
Fix e2e unsafe inbound test
This commit is contained in:
@@ -1341,6 +1341,13 @@ func TestGoodHandshakeUnsafeDest(t *testing.T) {
|
|||||||
"tun": m{
|
"tun": m{
|
||||||
"unsafe_routes": []m{route},
|
"unsafe_routes": []m{route},
|
||||||
},
|
},
|
||||||
|
"firewall": m{
|
||||||
|
"unsafe_outbound": []m{{
|
||||||
|
"port": "any",
|
||||||
|
"proto": "any",
|
||||||
|
"host": "any",
|
||||||
|
}},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
myControl, myVpnIpNet, myUdpAddr, myConfig := newSimpleServer(cert.Version2, ca, caKey, "me", "10.128.0.1/24", myCfg)
|
myControl, myVpnIpNet, myUdpAddr, myConfig := newSimpleServer(cert.Version2, ca, caKey, "me", "10.128.0.1/24", myCfg)
|
||||||
t.Logf("my config %v", myConfig)
|
t.Logf("my config %v", myConfig)
|
||||||
|
|||||||
@@ -85,8 +85,9 @@ func newSimpleServerWithUdpAndUnsafeNetworks(v cert.Version, caCrt cert.Certific
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
var unsafeNetworks []netip.Prefix
|
var unsafeNetworks []netip.Prefix
|
||||||
|
var firewallUnsafeInbound []m
|
||||||
if sUnsafeNetworks != "" {
|
if sUnsafeNetworks != "" {
|
||||||
firewallInbound = []m{{
|
firewallUnsafeInbound = []m{{
|
||||||
"proto": "any",
|
"proto": "any",
|
||||||
"port": "any",
|
"port": "any",
|
||||||
"host": "any",
|
"host": "any",
|
||||||
@@ -122,7 +123,8 @@ func newSimpleServerWithUdpAndUnsafeNetworks(v cert.Version, caCrt cert.Certific
|
|||||||
"port": "any",
|
"port": "any",
|
||||||
"host": "any",
|
"host": "any",
|
||||||
}},
|
}},
|
||||||
"inbound": firewallInbound,
|
"inbound": firewallInbound,
|
||||||
|
"unsafe_inbound": firewallUnsafeInbound,
|
||||||
},
|
},
|
||||||
//"handshakes": m{
|
//"handshakes": m{
|
||||||
// "try_interval": "1s",
|
// "try_interval": "1s",
|
||||||
|
|||||||
Reference in New Issue
Block a user