--- nic.console.txt 2019-07-09 10:18:40.919806173 +0000 +++ OUTPUT/nic.console.txt 2019-08-26 13:25:47.914632522 +0000 @@ -1,7 +1,11 @@ #!/bin/sh nic # + +nic # ifconfig eth0:1 inet 192.1.2.111 netmask 255.255.255.0 nic # + +nic # # NAT North's IP to ours nic # iptables -t nat -F POSTROUTING @@ -10,8 +14,12 @@ nic # iptables -t nat -A POSTROUTING --source 192.1.3.0/24 --destination 0.0.0.0/0 -o eth0+ -p udp -m udp --dport 4500 -j SNAT --to-source 192.1.2.111:14000-16000 nic # + +nic # iptables -A OUTPUT -d 192.0.2.0/24 -j DROP nic # + +nic # # Display the table, so we know it is correct. nic # iptables -t nat -L -v @@ -26,6 +34,8 @@ 0 0 SNAT udp -- any eth0+ 192.1.3.0/24 anywhere udp dpt:isakmp to:192.1.2.254:11000-12000 0 0 SNAT udp -- any eth0+ 192.1.3.0/24 anywhere udp dpt:ipsec-nat-t to:192.1.2.111:14000-16000 nic # + +nic # echo done. done.