Advertisement
Guest User

Untitled

a guest
Jan 20th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. iptables -A PREROUTING -p tcp -m tcp -d <yours_wan_ip> --dport 8001 -j DNAT --to-destination 192.168.1.200:8080
  2.  
  3. iptables -A FORWARD -m state -p tcp -d 192.168.1.200 --dport 8080 --state NEW,ESTABLISHED,RELATED -j ACCEPT
  4.  
  5. iptables -A POSTROUTING -p tcp -m tcp -s 192.168.1.200 --sport 8080 -j SNAT --to-source <yours_wan_ip>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement