| 1 |
iptables --flush |
| 2 |
nic # |
| 3 |
iptables --table nat --flush |
| 4 |
nic # |
| 5 |
iptables --delete-chain |
| 6 |
nic # |
| 7 |
iptables --table nat --delete-chain |
| 8 |
nic # |
| 9 |
# NAT to NIC's address |
| 10 |
nic # |
| 11 |
iptables -t nat -A POSTROUTING -s 192.1.3.0/24 -p udp --sport 4500 -j SNAT --to-source 192.1.2.254:EPHEM |
| 12 |
nic # |
| 13 |
iptables -t nat -A POSTROUTING -s 192.1.3.0/24 -j SNAT --to-source 192.1.2.254 |
| 14 |
nic # |
| 15 |
iptables --table nat --flush |
| 16 |
nic # |
| 17 |
iptables --table nat --delete-chain |
| 18 |
nic # |
| 19 |
conntrack --flush |
| 20 |
conntrack vA.B.C (conntrack-tools): connection tracking table has been emptied. |
| 21 |
nic # |
| 22 |
# NAT to NIC's address |
| 23 |
nic # |
| 24 |
iptables -t nat -A POSTROUTING -s 192.1.3.0/24 -p udp --sport 4500 -j SNAT --to-source 192.1.2.254:EPHEM |
| 25 |
nic # |
| 26 |
iptables -t nat -A POSTROUTING -s 192.1.3.0/24 -j SNAT --to-source 192.1.2.254 |
| 27 |
nic # |
| 28 |
|