OpenWrt Forum Archive

Topic: SSH or view WWW from the 'Outside'

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello guys,

I can't seem to ssh back to my router or browse the website I have on it's 'www' folder from the Internet. It works fine on my local LAN. Is there something I have to do to make the router 'allow' connections to itself from the outside? any NAT  or firewall settings I have to play around with?

I would appreciate any kind feedback on this matter smile

Thanks.

1) Edit the /etc/firewall.user file

2) Uncomment the following line:

# iptables        -A input_rule      -i $WAN -p tcp --dport 22 -j ACCEPT

3) Add the following line just after the line above:

iptables        -A input_rule      -i $WAN -p tcp --dport 80 -j ACCEPT

The discussion might have continued from here.