apt-get install tor
If you are using a different distribution of Linux obviously use your package manager to install the Tor package.
root@s2:~# service tor start
[ ok ] Starting tor daemon...done.
If you are using a different distribution of Linux, use the appropriate command to start the Tor daemon.
VirtualAddrNetwork 10.192.0.0/10
AutomapHostsOnResolve 1
TransPort 9040
DNSPort 5353
The Torrc file is located at /etc/tor/torrc
root@s2:~# vim /etc/tor/torrc
root@s2:~# service tor restart
[ ok ] Stopping tor daemon...done.
[ ok ] Starting tor daemon...done.
#!/bin/sh
# destinations you do not want routed through Tor
NON_TOR="192.168.1.0/24 192.168.0.0/24"
# the UID Tor runs as, change this accordingly for your OS
TOR_UID="43"
# Tor's TransPort
TRANS_PORT="9040"
iptables -F
iptables -t nat -F
iptables -t nat -A OUTPUT -m owner --uid-owner $TOR_UID -j RETURN
iptables -t nat -A OUTPUT -p udp --dport 53 -j REDIRECT --to-ports 5353
for NET in $NON_TOR 127.0.0.0/9 127.128.0.0/10; do
iptables -t nat -A OUTPUT -d $NET -j RETURN
done
iptables -t nat -A OUTPUT -p tcp --syn -j REDIRECT --to-ports $TRANS_PORT
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
for NET in $NON_TOR 127.0.0.0/8; do
iptables -A OUTPUT -d $NET -j ACCEPT
done
iptables -A OUTPUT -m owner --uid-owner $TOR_UID -j ACCEPT
iptables -A OUTPUT -j REJECT
vim transparent_proxy.sh
chmod +x transparent_proxy.sh
./transparent_proxy.sh
curl https://check.torproject.org/ | grep "Congratulations."
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (18)
Commented:
I rarely, if ever, stream videos or download anything. Most of the time I'm reading news, hanging out in forums, communicating with other people, searching the net, browsing, etc. I don't need lots of bandwidth for that.
Author
Commented:Commented:
So Tor is really only useful for low-bandwidth applications. YouTube, Facebook, and other resource-heavy things will probably be too slow or unusable altogether?
Author
Commented:Commented:
View More