]> git.proxmox.com Git - pve-network.git/blobdiff - test/zones/evpn/exitnode_snat/expected_sdn_interfaces
zones: evpn: fix arp-accept && ip-forward + ipv6 snat
[pve-network.git] / test / zones / evpn / exitnode_snat / expected_sdn_interfaces
index e8093a2289385b9b43d5c27cd3a872dd8541768f..a2a183ef1943d125f28c1691d3332d60de3d4abc 100644 (file)
@@ -11,6 +11,23 @@ iface myvnet
        bridge_stp off
        bridge_fd 0
        mtu 1450
+       ip-forward on
+       arp-accept on
+       vrf vrf_myzone
+
+auto myvnet2
+iface myvnet2
+       address 2a08:2142:302:3::1/64
+       post-up ip6tables -t nat -A POSTROUTING -s '2a08:2142:302:3::/64' -o vmbr0 -j SNAT --to-source 192.168.0.1
+       post-down ip6tables -t nat -D POSTROUTING -s '2a08:2142:302:3::/64' -o vmbr0 -j SNAT --to-source 192.168.0.1
+       post-up ip6tables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
+       post-down ip6tables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
+       bridge_ports vxlan_myvnet2
+       bridge_stp off
+       bridge_fd 0
+       mtu 1450
+       ip6-forward on
+       arp-accept on
        vrf vrf_myzone
 
 auto vrf_myzone
@@ -41,3 +58,11 @@ iface vxlan_myvnet
        bridge-learning off
        bridge-arp-nd-suppress on
        mtu 1450
+
+auto vxlan_myvnet2
+iface vxlan_myvnet2
+       vxlan-id 200
+       vxlan-local-tunnelip 192.168.0.1
+       bridge-learning off
+       bridge-arp-nd-suppress on
+       mtu 1450