Guest User

iptable

a guest
Dec 30th, 2015
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. sysctl net.ipv4.ip_forward
  2. net.ipv4.ip_forward = 1
  3.  
  4. iptables -t nat -A POSTROUTING -j MASQUERADEiptables -t nat -A POSTROUTING -j MASQUERADE
  5.  
  6.  
  7. iptables -t nat -A PREROUTING -s 10.184.39.184 -p tcp --dport 9087 -j DNAT --to-destination 10.184.39.81:80
  8.  
  9. iptables-save
Add Comment
Please, Sign In to add comment