Tor
Setup
apt-get install tor
service tor start
service tor status
service tor stop
OR
systemctl start tor
systemctl status tor
systemctl stop torProxychains

Tool that forces any TCP connection made by any given application to follow through proxy like TOR SOCKS4 SOCKS5 HTTP(S) proxy
Install
sudo apt install proxychainsConfigure
vim /etc/proxychains.confUncomment
dynamic_chainand comment the other optionsUncomment
proxy_dnsin order to prevent DNS leakage
Start Firefox with proxychains
tor #start the tor service
proxychains firefox & #start firefox in the background with proxychains Test
Browse to
http://ifconfig.coand orhttp://ipinfo.ioto check that your IP is properly being obsfucatedBrowse to
http://dnsleaktest.comand see that your DNS address has changedif using firefox instead of just the tor browser and have firefox configured to use
127.0.0.19050as a proxy and have the tor service running open firefox and browse toabout:configChange
privacy.resist.FingerprintingfromfalsetotrueIMPORTANT: All other web browser windows should be closed before opening firefox through
proxychains
Tor Browser
Recommend changing saftey
Level to 2 (Safer)
Exclude Exit Nodes
echo 'ExcludeNodes {us},{au},{ca},{ru} StrictNodes 1' >> /etc/tor/torrc Use specific country exit node
echo "ExitNodes {us} StrictNodes 1" >> /etc/tor/torrc Prevent server to be used as exit node
echo "ExitPolicy reject *:*" >>/etc/tor/torrcRunning a Tor Relay
This content below is assuming Centos8, but it can be adapted to almost any operating system (linux wise)
To see more information:
yum update
#OR
dnf update
-----------------------
yum install epel-release
#OR
dnf install epel-release
-----------------------create the file
/etc/yum.repos.d/Tor.repoinsert the below content into the file
[tor]
name=Tor for Enterprise Linux $releasever - $basearch
baseurl=https://rpm.torproject.org/centos/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://rpm.torproject.org/centos/public_gpg.key
cost=100now update for the changes to be included
yum update
#OR
dnf updateinstall tor
yum install tor
#OR
dnf install toredit your
/etc/tor/torrcinsert the lines below, change the options to your need (top two lines)
Nickname myNiceRelay # Change "myNiceRelay" to something you like
ContactInfo your@e-mail # Write your e-mail and be aware it will be published
ORPort 443 # You might use a different port, should you want to
ExitRelay 0
SocksPort 0enable and start tor
systemctl enable --now tor
systemctl enable tor
systemctl start torOptional Monitor Tor useage
to see the stats for your relay live you can install
nyx
yum install nyx
#OR
dnf install nyxstart a
screenortmuxsessions and run the program
tmux
nyx
-----------
#detatch tmux
Crtl+B + Shfit + D
#it will keep running
#reattatch tmux to see stats after logging back in
tmux attach -t 0Last updated