Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -t nat -A PREROUTING -p tcp --dport 10000 -j DNAT --to-destination 111.13.101.208:80
- iptables -t nat -A POSTROUTING -p tcp -d 111.13.101.208 --dport 80 -j SNAT --to-source 10.0.0.10 --sport 10000
- Chain PREROUTING (policy ACCEPT 8 packets, 781 bytes)
- pkts bytes target prot opt in out source destination
- 11 688 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000 to:111.13.101.208:80
- Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- 0 0 SNAT tcp -- * * 0.0.0.0/0 111.13.101.208 tcp spt:10000 dpt:80 to:10.100.1.138
- Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement