iptables -t nat -F
nic #
 iptables -F
nic #
 iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         
nic #
 # NAT
nic #
 ../../guestbin/nic-nat.sh 192.1.3.0/24 192.1.2.254 50000
192.1.3.0/24:500 -udp-> 192.1.2.254:50500-50600
192.1.3.0/24:500 -tcp-> 192.1.2.254:50500-50600
192.1.3.0/24:4500 -udp-> 192.1.2.254:54500-54600
192.1.3.0/24:4500 -tcp-> 192.1.2.254:54500-54600
192.1.3.0/24 -> 192.1.2.254
nic #
 iptables -I FORWARD 1 --proto 50 -j DROP
nic #
 echo done
done

