I'm hoping to achieve remote access to my GL-iNET GL-X3000 router over tor. Ideally to either the GL-iNET GUI, or the LUCI GUI.
In attempt to get closer to that goal however, I just tried to follow the instructions on the OpenWRT website for SSL over tor.
I tried both methods presented: editing the tor-hs config file, and setting it up from the command line.
There are some discrepancies in the instructions provided on that page, namely:
- the name sshd is used in the config file instructions, but ssh is used in the command line instructions
option Enabled=false
in the config file instructions, butoption Enabled="1"
(true) in the command instructions, andlist PublicLocalPort '2222;22'' in the config file instructions, but
'22;22'` in the command line instructions.
I ended up trying them all, and got the same error when I restarted the tor-hs service:
tail_conf
Info. Updating tor configuration
uci: Invalid argument
Command failed: Not found
The directory /hidden_service/ssh
gets added to /etc/tor
, but there is no hostname file contained.
I then tried to follow these instructions by Informtic for a minimal tor hidden service on OpenWRT, but modify them so they are for SSH rather than accessing a storage drive (which I think is the intent of the instructions). To do so, I:
- ignored the fstab portion
- left out
option home '/storage/tor
in the suggested amendments to the uhttpd config - appended everything in the suggested torrc config modifications to the bottom of the existing torrc config, but changed the HiddenServicePort to that of the command line instructions on the OpenWRT page (22 127.0.0.1:22). Also tried 2222 127.0.0.2:22 (per the config file instructions on the OpenWRT page)
When I do this and restart uhttpd and tor... nothing happens. There is no hostname file in /etc/tor/hidden_service/hostname
.
Any help would be greatly appreciate - even if just to get SSH remote access over tor working, but better yet, access to the GL or LUCI GUI! Thanks