Web remote access on a specific port

Hi,
I want to set access to my router on public ip address on specific port. With openwrt / lede I am still learning. I would like to make this setting in the luci GUI. (yes I know SSH would be better but I'm not that good :sweat_smile: )

I followed this:
Network -> Firewall (zones)

  • WAN: Input - accept, Forward - accept

Port Forwards i add this:
Protocol: TCP
External zone: wan
External port: 9999 (for example)
Internal zone: lan
Internal IP address: i left blank (???)
Internal port: 80

Is this setting correct?

Thank you very much for helping me educate myself :slightly_smiling_face:

@maxXx Exposing uhttpd on an external port is considered poor practice, even more so if HTTP-S is not in use.

If you want to manage your router from "outside" a simple approach is to use ssh port forwarding. Something like

me@mylaptop $ ssh -L8080:localhost:80 root@myoutsideip.example.com

would then allow you to access the management interface from your laptop's browser at http://localhost:8080/

You would need to make sure that ssh on port 22 is permitted in on the "WAN" interface of your router.

1 Like