3 lines for linux nat: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
(Created page with " -A PREROUTING -d 172.17.72.6 -j DNAT --to-destination 10.21.1.6 -A POSTROUTING -s 10.21.1.6 -j SNAT --to-source 172.17.72.6 -A FORWARD -s 172.17.72.2 -j ACCEPT") |
No edit summary |
||
Line 1: | Line 1: | ||
iptables | |||
-A PREROUTING -d 172.17.72.6 -j DNAT --to-destination 10.21.1.6 | -A PREROUTING -d 172.17.72.6 -j DNAT --to-destination 10.21.1.6 | ||
-A POSTROUTING -s 10.21.1.6 -j SNAT --to-source 172.17.72.6 | -A POSTROUTING -s 10.21.1.6 -j SNAT --to-source 172.17.72.6 | ||
-A FORWARD -s 172.17.72.2 -j ACCEPT | -A FORWARD -s 172.17.72.2 -j ACCEPT |
Revision as of 21:36, 2 February 2020
iptables
-A PREROUTING -d 172.17.72.6 -j DNAT --to-destination 10.21.1.6 -A POSTROUTING -s 10.21.1.6 -j SNAT --to-source 172.17.72.6 -A FORWARD -s 172.17.72.2 -j ACCEPT