Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:howtos:tor [2013/05/12 20:26] – created prometheus | projects:howtos:tor [2015/07/15 21:54] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== A Pi a day, keeps censorship away ===== | ===== A Pi a day, keeps censorship away ===== | ||
+ | |||
+ | You would like to support human rights? Then please follow the how-to. | ||
+ | |||
+ | **Note:** We assume you have a new working [[https:// | ||
===== Installation ===== | ===== Installation ===== | ||
+ | First we have to install all the packages which are needed & useful to us. | ||
<sxh bash;> | <sxh bash;> | ||
- | |||
root@pi# pacman -Syyu | root@pi# pacman -Syyu | ||
root@pi# pacman -S base-devel vim tor ntp tor vnstat sudo | root@pi# pacman -S base-devel vim tor ntp tor vnstat sudo | ||
+ | </ | ||
+ | |||
+ | After that we should create us an own user account with sudo privileges. | ||
+ | |||
+ | <sxh bash;> | ||
root@pi# useradd -m -s /bin/bash YOUR_USERNAME | root@pi# useradd -m -s /bin/bash YOUR_USERNAME | ||
root@pi# vimsudo / | root@pi# vimsudo / | ||
... | ... | ||
+ | </ | ||
+ | |||
+ | Now, we install [[https:// | ||
+ | |||
+ | <sxh bash;> | ||
root@pi# su YOUR_USERNAME | root@pi# su YOUR_USERNAME | ||
root@pi# wget https:// | root@pi# wget https:// | ||
Line 20: | Line 34: | ||
root@pi# cd ~/ | root@pi# cd ~/ | ||
root@pi# rm -r yaourt* | root@pi# rm -r yaourt* | ||
- | root@pi# | + | root@pi# |
- | root@pi# | + | root@pi# |
- | root@pi# vim torrc | + | </ |
- | ... | + | |
+ | 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 / | root@pi# cd / | ||
root@pi# vim tor.service | root@pi# vim tor.service | ||
- | ... | + | </ |
+ | |||
+ | |||
+ | <sxh bash; title: systemd service file - / | ||
+ | [Unit] | ||
+ | Description=Starting Tor Service | ||
+ | |||
+ | [Service] | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | After=multi-user.target | ||
+ | </ | ||
+ | |||
+ | <sxh bash;> | ||
root@pi# vim ntp-once.service | root@pi# vim ntp-once.service | ||
- | ... | ||
</ | </ | ||
+ | |||
+ | <sxh plain; title:> | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | After this, we finally attack the most important part: Tor configuration. | ||
+ | |||
+ | <sxh bash;> | ||
+ | root@pi# cd /etc/tor/ | ||
+ | root@pi# mv torrc torrc.original | ||
+ | root@pi# vim torrc | ||
+ | </ | ||
+ | |||
+ | <sxh plain; title: / | ||
+ | ORPort 443 | ||
+ | |||
+ | Log notice file / | ||
+ | |||
+ | RelayBandwidthRate 100 KB # Throttle traffic to 100KB/s (800Kbps) | ||
+ | RelayBandwidthBurst 200 KB # But allow bursts up to 200KB/s (1600Kbps) | ||
+ | |||
+ | # | ||
+ | # | ||
+ | |||
+ | SocksPort 0 | ||
+ | BridgeRelay 1 | ||
+ | Exitpolicy reject *:* | ||
+ | </ | ||
+ | |||
+ | ===== Up & Run! ===== | ||
+ | |||
+ | Either type: | ||
+ | |||
+ | <sxh bash;> | ||
+ | root@pi# systemctl start tor | ||
+ | </ | ||
+ | |||
+ | or simply boot up your device. | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | ===== Conclusion ===== |