- Connect to OpenWrt router using ssh connection.
ssh root@192.168.1.1
- Clone this repository and
cd
into it and execute the script.
git clone https://github.com/sagarkhandve/OpenWrt-TorRouter.git
cd OpenWrt-TorRouter/
chmod +x OpenWrt-TorRouter.sh
sh OpenWrt-TorRouter.sh
- Verify that you are using Tor.
https://check.torproject.org/
- Check your client public IP addresses.
https://ipleak.net/
- Make sure there is no DNS leak on the client side.
https://dnsleaktest.com/
- Restart services.
/etc/init.d/log restart; /etc/init.d/firewall restart; /etc/init.d/tor restart
- Log and status.
logread -e Tor; netstat -l -n -p | grep -e tor
- Runtime configuration.
pgrep -f -a tor
iptables-save -c; ip6tables-save -c; ipset list
- Persistent configuration.
uci show firewall; uci show tor; grep -v -r -e "^#" -e "^$" /etc/tor