Public feed #600337

Example Port Forward

public text v1 · immutable
Raw Edit
·published 2007-07-02 19:32 UTC
rendered paste body
### Port forwarding
## -- This forwards port 80 on the WAN to port 8080 on 192.168.1.2
 iptables -t nat -A prerouting_wan -p tcp --dport 8080 -j DNAT --to 192.168.1.2:80
 iptables        -A forwarding_wan -p tcp --dport 80 -d 192.168.1.2 -j ACCEPT