Setup Tor for port-opening-free ssh/config access

Is there somewhere a howto for openwrt 19.07 on how to configure tor after installing it with opkg to have ssh/http access to a openwrt router that is behind a nat?
I need such access for helping some people remotely. TeamViewer for example is not a privacy friendly solution for such things.

@aupnxabs, welcome to the community! be clear...are you saying that you want to publish the router's SSH and web server as a HiddenService on Tor!?!?!

I assume the router doesn't have a Public IP address?

I don't advise doing this (especially if you plan to access the Tor network through the same running instance, in fact, I believe the Tor documentation advises against this). Nonetheless, it's setup like any Tor HiddenService - using the /etc/tor/torrc file.



I also think that TOR is a bad idea, I would try to find an alternative. For example, a Wireward connection, from the router you want to maintain to a server outside.




Works for me.
Beware of security issues.


@aupnxabs, as @vgaetera noted, please be very aware of the security issues of running a HiddenService on Tor. For all the risks of putting your router on the "dark web" - you should just use TeamViewer with a strong password. Just my opinion...

1 Like

I did think of something:

  • use key-only SSH
  • DO NOT make a service to HTTP (tcp/80)
  • SSH to the router and SSH Tunnel to LuCI at port 80


1 Like

If speed is not important, running a TCP-based VPN server as an onion service should be possible as well.

1 Like