Changes between Version 224 and Version 225 of TorRelayGuide


Ignore:
Timestamp:
Jul 10, 2018, 8:21:46 PM (10 days ago)
Author:
nusenu
Comment:

move platform specific steps into their own files (drops HBSD since FreeBSD steps work fine for it as well)

Legend:

Unmodified
Added
Removed
Modified
  • TorRelayGuide

    v224 v225  
    204204* https://github.com/coldhakca/tor-relay-bootstrap
    205205
    206 ==== CentOS/RHEL ====
    207 
    208 1. Enable the EPEL repository
    209 
    210  To install the `tor` package on CentOS/RHEL, you need to install the [https://fedoraproject.org/wiki/EPEL EPEL] repository first:
    211 {{{
    212 yum install epel-release
    213 }}}
    214 
    215 2. Install the `tor` package and verify the EPEL signing key
    216 {{{
    217 yum install tor
    218 }}}
    219  When you install the first package from the EPEL repository you will be asked about verifying the EPEL GPG signing key. Please ensure the key matches with the one available on the Fedora Project website: https://getfedora.org/keys/
    220 
    221 3. Put the tor configuration file `/etc/tor/torrc` in place:
    222 {{{
    223 #change the nickname "myNiceRelay" to a name that you like
    224 Nickname myNiceRelay
    225 ORPort 9001
    226 SocksPort 0
    227 ExitRelay 0
    228 # Change the email address bellow and be aware that it will be published
    229 ContactInfo tor-operator@your-emailaddress-domain
    230 }}}
    231 
    232 
    233 4. Enable and start your Tor relay:
    234 {{{
    235 systemctl enable tor
    236 systemctl start tor
    237 }}}
    238 
    239 ==== Debian/Ubuntu ====
    240 
    241 1. Enable the Torproject package repository
    242 
    243 This can be considered optional on Debian but is not optional on Ubuntu. Do not use the packages in Ubuntu's universe. Get the repository sources to add to your /etc/apt/sources.list by running the configurator [https://www.torproject.org/docs/debian.html.en#ubuntu here]. Also ensure you import the GPG keys. This will make sure that you're running the latest stable version of tor.
    244 
    245 2. Install the `tor` package
    246 {{{
    247 apt update && apt install tor
    248 }}}
    249 
    250 3. Put the configuration file `/etc/tor/torrc` in place:
    251 {{{
    252 #change the nickname "myNiceRelay" to a name that you like
    253 Nickname myNiceRelay
    254 ORPort 443
    255 ExitRelay 0
    256 SocksPort 0
    257 ControlSocket 0
    258 # Change the email address bellow and be aware that it will be published
    259 ContactInfo tor-operator@your-emailaddress-domain
    260 }}}
    261 
    262 4. Restart the tor daemon so your configuration changes take effect:
    263 {{{
    264 systemctl restart tor@default
    265 }}}
    266 
    267 ==== Fedora
    268 
    269 1. Install the `tor` package:
    270 {{{
    271 dnf install tor
    272 }}}
    273 1. Put the tor configuration file `/etc/tor/torrc` in place:
    274 {{{
    275 #change the nickname "myNiceRelay" to a name that you like
    276 Nickname myNiceRelay
    277 ORPort 9001
    278 ExitRelay 0
    279 # Change the email address bellow and be aware that it will be published
    280 ContactInfo tor-operator@your-emailaddress-domain
    281 }}}
    282 1. Start the tor daemon and make sure it starts at boot:
    283 {{{
    284 systemctl enable tor
    285 systemctl start tor
    286 }}}
    287 
    288 ==== FreeBSD ====
    289 1. Install the `tor` package:
    290 {{{
    291 pkg install tor
    292 }}}
    293 **or** for alpha releases:
    294 {{{
    295 pkg install tor-devel
    296 }}}
    297 2. Put the configuration file `/usr/local/etc/tor/torrc` in place.
    298 {{{
    299 #change the nickname "myNiceRelay" to a name that you like
    300 Nickname myNiceRelay
    301 ORPort 9001
    302 ExitRelay 0
    303 SocksPort 0
    304 # Change the email address bellow and be aware that it will be published
    305 ContactInfo tor-operator@your-emailaddress-domain
    306 Log notice syslog
    307 }}}
    308 1. Start the tor daemon and make sure it starts at boot:
    309 {{{
    310 sysrc tor_enable=YES
    311 service tor start
    312 }}}
    313 1. Ensure that the `random_id` sysctl setting is enabled:
    314 {{{
    315 echo "net.inet.ip.random_id=1" >> /etc/sysctl.conf
    316 sysctl net.inet.ip.random_id=1
    317 }}}
    318 
    319 
    320 Optional:
    321 
    322 To get package updates faster after their release it is best to replace "quarterly" with "latest" in `/etc/pkg/FreeBSD.conf`.
    323 
    324 ==== HardenedBSD ====
    325 1. Install the `tor` package:
    326 {{{
    327 pkg install tor
    328 }}}
    329 
    330 **or** for alpha releases:
    331 {{{
    332 pkg install tor-devel
    333 }}}
    334 
    335 2. Put the configuration file `/usr/local/etc/tor/torrc` in place.
    336 {{{
    337 #change the nickname "myNiceRelay" to a name that you like
    338 Nickname myNiceRelay
    339 ORPort 9001
    340 ExitRelay 0
    341 SocksPort 0
    342 # Change the email address bellow and be aware that it will be published
    343 ContactInfo tor-operator@your-emailaddress-domain
    344 Log notice syslog
    345 }}}
    346 
    347 3. Start the tor daemon and make sure it starts at boot:
    348 {{{
    349 sysrc tor_enable=YES
    350 service tor start
    351 }}}
    352 
    353 ==== openSUSE
    354 
    355 1. Install the `tor` package:
    356 {{{
    357 zypper install tor
    358 }}}
    359 
    360 2. Put the configuration file `/etc/tor/torrc` in place:
    361 {{{
    362 #change the nickname "myNiceRelay" to a name that you like
    363 Nickname myNiceRelay
    364 ORPort 443
    365 ExitRelay 0
    366 SocksPort 0
    367 # Change the Email address bellow and be aware that it will be published
    368 ContactInfo tor-operator@your-emailaddress-domain
    369 }}}
    370 
    371 3. Start the tor daemon and make sure it starts at boot:
    372 {{{
    373 systemctl enable tor
    374 systemctl start tor
    375 }}}
     206=== Platform specific Instructions
     207
     208Please choose your platform:
     209
     210* [[TorRelayGuide/DebianUbuntu|Debian/Ubuntu]]
     211* [[TorRelayGuide/CentOSRHEL|CentOS/RHEL]]
     212* [[TorRelayGuide/Fedora|Fedora]]
     213* [[TorRelayGuide/FreeBSD|FreeBSD]]
     214* [[TorRelayGuide/openSUSE|openSUSE]]
     215
    376216
    377217=== Verify that your relay works