OpenWRT remote access

In the factory default image , routers flashed with OPENWRT firmware cannot be accessed from the web.

To remotely manage your router with OpenWRT firmware, you must manualy configure the firewall from the router.

You have to log on to the router with WINSCP :

  1. On WinSCP Login Screen , at the FILE PROTOTCOL, select SCP
  2. At Host Name box, enter router IP (default : 192.168.1.1)
  3. Port number , leave it default (22)
  4. Enter router login username and password and click LOGIN

After successfull login, browse to “/etc/config/” and open the firewall file

Edit the file, paste the following text at the end of the file:

config 'redirect'
 option 'name' 'luci-remote'
 option 'src' 'wan'
 option 'proto' 'tcp'
 option 'src_dport' '9999'
 option 'dest_port' '80'
 option 'target' 'DNAT'
 option 'dest' 'lan'

The src_dport is the port on witch you are accessing the router, so in this case , you are accessing the router form the following url: http://your_router_public_ip:9999

 

Tip: I recommend setting up luci to use https, then the dest_port would be 443

#access, #luci, #openwrt, #remote