Prerequisite Debian 13: part 1 install Tor-Project without error.
General network configuration
Internet — router —- lan —- proxy(tor)
All client has direct connection to internet via router. Client's browser can be configure to use proxy tor for anonymity.
The browser's connection becomes: [Client PC] --> [Debian Server - Tor & Privoxy] --> (WAN/Router) --> Internet (via Tor)
Privoxy is your https proxy. privoxy will connect to tor software, and tor software will find the way to reach destination using tor anonymity network.
Debian proxy
Install privoxy
# apt-get install privoxy
Edit or add your /etc/privoxy/config :
# listening port for your lan
listen-address 0.0.0.0:8118
# connection to tor software, privoxy and torrc run on the same server/pc
forward-socks5t / 127.0.0.1:9050
Edit or add your /etc/tor/torrc :
# Change "myNiceRelay" to something you like
Nickname myNiceRelay
# Write your e-mail and be aware it will be published
ContactInfo your@e-mail
# for relay, 0 disable
ORPort 0
# for exit relay, 0 disable
ExitRelay 0
# use 127.0.0.1 to make torrc only accessible by localhost / privoxy
# comment these if you allow lan accessing torrc
SocksPort 9050
SocksListenAddress 127.0.0.1
# uncomment these to allow lan accessing torrc
#SocksBindAddress 192.168.1.1:9050
#SocksPolicy accept 192.168.1.0/24
#SocksPolicy reject *
Enable your privoxy and tor service
# systemctl enable tor
# systemctl enable privoxy
# systemctl restart tor
# systemctl restart privoxy
Client Browser
Open your browser setting, find proxy. Fill with
HTTP Proxy: 192.168.1.10
Port: 8118
Note: change 192.168.1.10 to your debian lan ip server.
Now your client can browsing using anonymity tor network