OpenWrt Forum Archive

Topic: How to access OpenWRT web interface from WAN?

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

My OpenWRT router is currently behind a firewall (another router), and I want computers connected to the upstream router to be able to access the OpenWRT web admin interface.

How do I enable this?

Thanks,

Rob.

See the examples in /etc/firewall.user.  It'll look something like this-

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

Hope this helps,
Charlie

Hi,

I did it by assigning a port on my internet facing router so as to forward my browser request it to my internal Openwrt router.  Then, you can access it thru your internet ip address with that port number  attached.    I happen to access my OpenWrt router behind my internet router at home using the following in a browser from work.

http://my_ip.com:50083

I also had to modify /etc/init.d/S50httpd and change the 80 on the last line to 50083 since that was the port I choose to forward.

This should give you an idea. 

Rich

(Last edited by flowersrj on 22 May 2008, 23:34)

The discussion might have continued from here.