Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. iptables -t nat -A PREROUTING -p tcp --dport 10000 -j DNAT --to-destination 111.13.101.208:80
  2. iptables -t nat -A POSTROUTING -p tcp -d 111.13.101.208 --dport 80 -j SNAT --to-source 10.0.0.10 --sport 10000
  3.  
  4. Chain PREROUTING (policy ACCEPT 8 packets, 781 bytes)
  5. pkts bytes target prot opt in out source destination
  6. 11 688 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000 to:111.13.101.208:80
  7.  
  8. Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
  9. pkts bytes target prot opt in out source destination
  10. 0 0 SNAT tcp -- * * 0.0.0.0/0 111.13.101.208 tcp spt:10000 dpt:80 to:10.100.1.138
  11.  
  12. Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
  13. pkts bytes target prot opt in out source destination
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement