Using Tor on GL.iNet's mini-routers
Installation
opkg update
opkg install tor tor-geoipConfiguration
Configuring tor
Copying those lines below and paste in the router's command line, then press "Enter" key. That will override the torrc configuration file with it.
cat <<EOT > /etc/tor/torrc
RunAsDaemon 1
AllowUnverifiedNodes middle,rendezvous
Log notice syslog
## Only run as a client, never a relay or exit
ClientOnly
PidFile /var/run/tor.pid
DataDirectory /var/lib/tor
User tor
SocksPort 9050
SocksPort 192.168.1.1:9050
AutomapHostsSuffixes .onion,.exit
AutomapHostsOnResolve 1
VirtualAddrNetworkIPv4 10.192.0.0/10
TransPort 192.168.1.1:9040
DNSPort 192.168.1.1:9053
ControlPort 9051
EOTConfiguring firewall
Append those lines to /etc/config/firewall.
Append those lines to /etc/firewall.user.
Start Tor
We have to edit Tor init script, /etc/init.d/tor to successfully start tor at every boot. Add those lines before procd_open_instance.
All things done. Let’s start tor.
Verify tor
Visti check.torproject.org to see if you are in tor network. Please note, when you are using tor, the router’s UI is not accessible as well. But you can ssh to the router.
Last updated
Was this helpful?