xl7dev

Openwrt install Tor Proxy

1
2
> opkg update
> opkg install tor

root@OpenWrt:~# vi /etc/tor/torrc

1
2
3
4
5
6
7
8
RunAsDaemon 0  
DataDirectory /var/lib/tor
User tor
Socks5Proxy 127.0.0.1:1080
SocksPort 0.0.0.0:9050
TransPort 0.0.0.0:9040
DNSPort 0.0.0.0:53
AvoidDiskWrites 1

root@OpenWrt:~# vi /etc/config/dhcp

1
2
3
config dnsmasq
option noresolv '1'
list server '127.0.0.1#53'

root@OpenWrt:~# /etc/init.d/tor stop
root@OpenWrt:~# tor