Main Problem

I have 2 networks and can only connect to LuCI from hosts on one of those networks. I can't figure out why I can't connect to LuCI from hosts in the other network. I'm having the exact same problem with SSH access as well. What confuses me is that I can ping the Rπ from both networks. I'm suspicious that it's a firewall config issue or something. I don't think it's a routing issue because I can ping Rπ from both networks (but it could be as I'm a noob).

Physical Setup

I have a modem connected to a Netgear router (router1) via WAN port. One of the Netgear's LAN ports is connected to a WAN interface on my Rπ1B (router2) and another Netgear LAN port is connected to a computer (computer1). There's another computer (computer2) connected to the LAN interface on the Rπ1B. Here's a summary and diagram of the setup:

Network 1:

  • Netgear (router1) LAN interface:
  • Rπ1B (router2) WAN interface
  • computer1

Network 2:

  • Rπ1B (router2) LAN interface
  • computer2

enter image description here

More Details


From network1 (, computer1 ( can successfully ping and on network1 but not on network2. Using Google Chrome, computer1 successfully reaches the web interface for the Netgear at but gets ERR_CONNECTION_REFUSED when trying to connect to LuCI at and gets ERR_CONNECTION_TIMED_OUT when trying to connect to LuCI at Computer1 cannot connect to or via SSH.


From network2(, computer2 ( can successfully ping and on network 1, and on network 2. Computer2 can connect to all these routers' Web interfaces via Google Chrome (,, and And computer2 can connect to and via SSH.

Ultimately, I'm trying to use Google Chrome on computer1 to access LuCI via, since it's technically on the same network as the Rπ's WAN interface.


Figured it out. It's a firewall issue. Here's the source that provided the solution: http://blog.differentpla.net/blog/2015/05/27/openwrt-ssh-wan

To enable access from hosts on the WAN side of the Rπ1B running OpenWRT 14.07 (network 1: in the diagram):

  1. Access the LuCI Web interface from a host on the LAN side of the Rπ
  2. Navigate: Network -> Firewall -> Traffic Rules
  3. Under the heading Open ports on router, give your firewall input rule a name, select the appropriate protocol (TCP for both SSH and LuCI), and enter the appropriate port (22 for SSH and 80 for LuCI)

If you're a Linux Ninja, I'm sure you can use iptables form the console to do the same thing. And I think that if you want WAN side access via SSH and LuCI, you'll need to setup one firewall input rule for each service.

Also, be careful because this doesn't seem to be recommended if you're concerned with network security.

  • 1
    such as: iptables -I INPUT -p tcp --dport 80 -j ACCEPT which is handy if you don't have a connection to the LAN side, like if it was running in a vm or something. – Segfault Oct 30 '17 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.