How can I create a tunnel to expose a local port to the public internet?

I want to be able to control my router from a public ip address. Can I use NAT or something similar to be able to forward all ports on my router to a public VPS ip?

Before we jump into potential solutions, can you provide some more detail?

  • Is your router at home/office/wherever or is it a VPS running OpenWrt?
  • Does your router already have a public IPv4 address? (and/or IPv6?)
  • Are you trying to setup additional port forwarding (for other purposes) or is your only goal to remotely administer the router itself?
  • Are you also looking to allow access to the devices behind the router?
  • What is the output of ubus call system board
2 Likes