]> git.proxmox.com Git - pve-network.git/blame - test/zones/simple/ipv4snat/expected_sdn_interfaces
zones: simple: fix ip-forward && ipv6 snat
[pve-network.git] / test / zones / simple / ipv4snat / expected_sdn_interfaces
CommitLineData
82f6b09f
AD
1#version:1
2
3auto myvnet
4iface myvnet
5 address 10.0.0.1/24
6 post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j SNAT --to-source 192.168.0.1
7 post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j SNAT --to-source 192.168.0.1
8 post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
9 post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
10 bridge_ports none
11 bridge_stp off
12 bridge_fd 0
1ba4901e 13 ip-forward on