projects:howtos:tor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
projects:howtos:tor [2013/05/12 20:34] prometheusprojects:howtos:tor [2013/05/12 21:45] – [References] prometheus
Line 24: Line 24:
 </sxh> </sxh>
  
-Now, we install yaourt in order to fetch and install packages from the AUR.+Now, we install [[https://aur.archlinux.org/packages/yaourt/|yaourt]] in order to fetch and install packages from the AUR.
  
 <sxh bash;> <sxh bash;>
Line 37: Line 37:
 root@pi# yaourt -S arm root@pi# yaourt -S arm
 </sxh> </sxh>
 +
 +In order to integrate tor into systemd, we need to write a -n own service file, which ensures fast, easy usage and the guarantuee that at every boot tor will be started along.
 +
 +<sxh bash;>
 +root@pi# cd /etc/systemd/system
 +root@pi# vim tor.service
 +</sxh>
 +
 +
 +<sxh bash; title: systemd service file - /etc/systemd/system/tor.service>
 +[Unit]
 +Description=Starting Tor Service
 +
 +[Service]
 +ExecStart=/usr/bin/tor -f /etc/tor/torrc
 + 
 +[Install]
 +After=multi-user.target
 +</sxh>
 +
 +<sxh bash;>
 +root@pi# vim ntp-once.service
 +</sxh>
 +
 +<sxh plain; title:>
 +
 +</sxh>
 +
 +===== Configuration =====
  
 After this, we finally attack the most important part: Tor configuration. After this, we finally attack the most important part: Tor configuration.
Line 44: Line 73:
 root@pi# mv torrc torrc.original root@pi# mv torrc torrc.original
 root@pi# vim torrc root@pi# vim torrc
-... 
 </sxh> </sxh>
  
-In order to integrate tor into systemd, we need to write a -n own service file, which ensures fast, easy usage and the guarantuee that at every boot tor will be started along.+<sxh plain; title: /etc/tor/torrc> 
 +ORPort 443 
 +  
 +Log notice file /var/log/tor/notices.log 
 +  
 +RelayBandwidthRate 100 KB  # Throttle traffic to 100KB/s (800Kbps) 
 +RelayBandwidthBurst 200 KB # But allow bursts up to 200KB/s (1600Kbps) 
 + 
 +#AccountingStart day 00:00 
 +#AccountingMax 8 GB 
 +  
 +SocksPort 0 
 +BridgeRelay 1 
 +Exitpolicy reject *:* 
 +</sxh> 
 + 
 +===== Up & Run! ===== 
 + 
 +Either type:
  
 <sxh bash;> <sxh bash;>
-root@pi# cd /etc/systemd/system +root@pi# systemctl start tor
-root@pi# vim tor.service +
-... +
-root@pi# vim ntp-once.service +
-...+
 </sxh> </sxh>
 +
 +or simply boot up your device.
 +
 +===== References =====
 +
 +  * [[http://throwww.com/a/1ze|Routing 150GB Tor traffic though a Raspberry Pi]]
 +  * [[http://patrakov.blogspot.com/2011/01/writing-systemd-service-files.html|My Blog -Writing systemd service files]]
 +  * https://trac.torproject.org/projects/tor/wiki/doc/TorFAQ#HowcanIlimitthetotalamountofbandwidthusedbymyTorrelay
 +  * https://library.linode.com/securing-your-server#sph_creating-a-firewall
 +  * https://www.torservers.net/wiki/setup/obfsproxy?s[]=torrc
 +
 +===== Conclusion =====
  • projects/howtos/tor.txt
  • Last modified: 2015/07/15 21:54
  • by 127.0.0.1