daily pastebin goal
62%
SHARE
TWEET

iptable

a guest Dec 30th, 2015 9 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top