echo "deb http://deb.torproject.org/torproject.org xenial main" >> /etc/apt/sources.list
echo "deb-src http://deb.torproject.org/torproject.org xenial main" >> /etc/apt/sources.list
gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
sudo apt-get update
sudo apt-get install tor deb.torproject.org-keyring
service --status-all | grep tor
vim /etc/tor/torrc
- Make sure to open an ORPort that is open in your security policy on AWS
- Set your contact info, in case things get weird, with ContactInfo
- Make sure you're not an Exit node, or AWS will get mad:
ExitPolicy reject *:* # no exits allowed
- Make sure to set bandwith limits, with AccoutingMax, AccountingStart, RelayBandwidthRate, and RelayBandwidthBurst
sudo service tor reload
tail -F /var/log/tor/log
"Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor." "Performing bandwidth self-test...done."