All pastes #989235 Raw Edit

galileo81580

public text v1 · immutable
#989235 ·published 2008-04-18 07:18 UTC
rendered paste body
THIS IS THE ONLY PORTION OF THE firewall.user FILE THAT I CHANGED.

### Open port to WAN
## -- This allows port 22 to be answered by (dropbear on) the router
 iptables -t nat -A prerouting_wan -p tcp --dport 22 -j ACCEPT
 iptables        -A input_wan      -p tcp --dport 22 -j ACCEPT

### Port forwarding
## -- This forwards port 80 on the WAN to port 80 on 192.168.1.4
 iptables -t nat -A prerouting_wan -p tcp --dport 80 -j DNAT --to 192.168.1.4
 iptables        -A forwarding_wan -p tcp --dport 80 -d 192.168.1.4 -j ACCEPT