mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions.git
synced 2025-07-02 06:46:42 +00:00
fix-tor-guides
This commit is contained in:
parent
0bc7c1ad0a
commit
82b0b18512
3 changed files with 65 additions and 54 deletions
|
@ -65,7 +65,7 @@
|
|||
<img src="../logo.png" class="imgRz">
|
||||
<p> Before we start, you will need a Debian VPS (you can get one on digitalocean for example), if you prefer to use your own self hosted server, make sure that port 80 and 443 are correctly port forwarded so that the public ip points to the server and not the router. Once that's done, go and ssh into your Debian server. </p>
|
||||
|
||||
<p><img src="../logos/daturagit.png" style="width:100px"> <u>Sidenote:</u> Help us improve this tutorial by letting us know if there's anything missing or incorrect on this <a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions/issues/100">git issue</a> directly!</p>
|
||||
<p><img src="../../logos/daturagit.png" style="width:100px"> <u>Sidenote:</u> Help us improve this tutorial by letting us know if there's anything missing or incorrect on this <a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions/issues/100">git issue</a> directly!</p>
|
||||
|
||||
</div>
|
||||
</div><!-- /row -->
|
||||
|
@ -78,26 +78,32 @@
|
|||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2><b>Initial Setup </b></h2>
|
||||
<p></p>
|
||||
<pre><code class="nim">
|
||||
<p>
|
||||
Log into your Debian server and add Tor repository.<br>
|
||||
This will allow you to update your Tor daemon to latest versions just after they're released. It's not recommended to use <b>tor</b> package from Debian repository since it's usually out of date.<br>
|
||||
To do that, <a href="https://support.torproject.org/apt/tor-deb-repo/">check the steps on Tor project's website</a>. Commands I run are listed below, but they may change in the future.
|
||||
</p>
|
||||
|
||||
apt update -y && apt upgrade -y
|
||||
apt install curl tmux vim obfs4proxy nyx gnupg2 -y
|
||||
<pre><code class="nim">root@Datura:~# apt update -y && apt upgrade -y
|
||||
root@Datura:~# apt install apt-transport-https curl tmux vim obfs4proxy gnupg2 -y
|
||||
|
||||
root@Datura:~# cat /etc/apt/sources.list |head -n3
|
||||
root@Datura:~# cat /etc/apt/sources.list | head -n3
|
||||
|
||||
deb [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
deb-src [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
deb [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
deb-src [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
|
||||
root@Datura:~# wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/tor-archive-keyring.gpg >/dev/null
|
||||
root@Datura:~# wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null
|
||||
|
||||
apt update -y
|
||||
apt install tor nyx
|
||||
root@Datura:~# apt update -y
|
||||
root@Datura:~# apt install tor nyx
|
||||
</code></pre>
|
||||
|
||||
#To configure tor we need to edit the configuration file with the following entry. Replace the TODOs with the port numbers you wish to use
|
||||
<p>
|
||||
To configure tor we need to edit the configuration file with the following entry. Replace the TODOs with the port numbers you wish to use
|
||||
|
||||
#Open conf file
|
||||
vim /etc/tor/torrc
|
||||
Edit tor configuration file:</p>
|
||||
|
||||
<pre><code class="nim">root@Datura:~# vim /etc/tor/torrc
|
||||
|
||||
#Added configuration
|
||||
BridgeRelay 1
|
||||
|
@ -118,24 +124,22 @@ ServerTransportListenAddr obfs4 0.0.0.0:8042
|
|||
# "Ext" means "extended", not "external". Don't try to set a specific port number, nor listen on 0.0.0.0.
|
||||
ExtORPort auto
|
||||
|
||||
# Replace "<<b></b>address@email.com>" with your email address so we can contact you if there are problems with your bridge.
|
||||
# Replace "<address@email.com>" with your email address so we can contact you if there are problems with your bridge.
|
||||
# This is optional but encouraged.
|
||||
ContactInfo nihilist@nowhere.moe
|
||||
|
||||
# Pick a nickname that you like for your bridge. This is optional.
|
||||
Nickname Nihilist
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p>Then restart the tor service + enable it:</p>
|
||||
<pre><code class="nim">
|
||||
#Restart service
|
||||
systemctl restart tor@default
|
||||
<pre><code class="nim">#Restart service
|
||||
root@Datura:~# systemctl restart tor@default
|
||||
|
||||
#Enable at boot
|
||||
systemctl enable --now tor@default
|
||||
root@Datura:~# systemctl enable --now tor@default
|
||||
</code></pre>
|
||||
|
||||
|
||||
</div>
|
||||
</div><!-- /row -->
|
||||
</div> <!-- /container -->
|
||||
|
@ -147,10 +151,7 @@ systemctl enable --now tor@default
|
|||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2><b>Nyx monitoring</b></h2> </br> </br>
|
||||
<p>Once it finished installing, you can monitor your tor bridge node activity with nyx:</p>
|
||||
<pre><code class="nim">
|
||||
sudo -u debian-tor nyx
|
||||
|
||||
</code></pre>
|
||||
<pre><code class="nim">root@Datura:~# sudo -u debian-tor nyx</code></pre>
|
||||
<img src="4.png" class="imgRz">
|
||||
</div>
|
||||
</div><!-- /row -->
|
||||
|
|
|
@ -81,7 +81,7 @@ If you are still motivated to get your own exit node, keep the phone number of a
|
|||
<img src="../relay/country.png" class="imgRz">
|
||||
<p><u>Disclaimer:</u> <b>Do not host your Tor node in Germany, Netherlands or in the US, as there are already too many nodes in those countries.</b> Try to run your own Tor nodes in countries that have the least nodes preferably, as this will help keeping the Tor network decentralized.</p>
|
||||
|
||||
<p><img src="../logos/daturagit.png" style="width:100px"> <u>Sidenote:</u> Help us improve this tutorial by letting us know if there's anything missing or incorrect on this <a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions/issues/102">git issue</a> directly!</p>
|
||||
<p><img src="../../logos/daturagit.png" style="width:100px"> <u>Sidenote:</u> Help us improve this tutorial by letting us know if there's anything missing or incorrect on this <a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions/issues/102">git issue</a> directly!</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -96,24 +96,26 @@ If you are still motivated to get your own exit node, keep the phone number of a
|
|||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2><b>Initial setup</b></h2> </br> </br>
|
||||
|
||||
<pre><code class="nim">
|
||||
apt update && apt -y dist-upgrade && apt -y autoremove && apt install -y curl tmux vim obfs4proxy gnupg2
|
||||
<p>
|
||||
Log into your Debian server and add Tor repository.<br>
|
||||
This will allow you to update your Tor daemon to latest versions just after they're released. It's not recommended to use <b>tor</b> package from Debian repository since it's usually out of date.<br>
|
||||
To do that, <a href="https://support.torproject.org/apt/tor-deb-repo/">check the steps on Tor project's website</a>. Commands I run are listed below, but they may change in the future.
|
||||
</p>
|
||||
|
||||
apt update -y && apt upgrade -y
|
||||
apt install curl tmux vim -y
|
||||
<pre><code class="nim">root@Datura:~# apt update -y && apt upgrade -y
|
||||
root@Datura:~# apt install apt-transport-https curl tmux vim obfs4proxy gnupg2 -y
|
||||
|
||||
root@Datura:~# cat /etc/apt/sources.list |head -n3
|
||||
root@Datura:~# cat /etc/apt/sources.list | head -n3
|
||||
|
||||
deb [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
deb-src [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
|
||||
root@Datura:~# wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/tor-archive-keyring.gpg >/dev/null
|
||||
|
||||
apt update -y
|
||||
apt install tor nyx
|
||||
deb [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
deb-src [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
|
||||
root@Datura:~# wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null
|
||||
|
||||
root@Datura:~# apt update -y
|
||||
root@Datura:~# apt install tor nyx
|
||||
</code></pre>
|
||||
|
||||
<p>From inside nyx you can view tor's status :</p>
|
||||
<pre><code class="nim">
|
||||
root@exit:~# nyx
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
<p>Now regarding the choice of location for the server, in order to make sure that Tor remains decentralised, make sure that you are picking a country that doesn't have many tor nodes (see the <a href="https://metrics.torproject.org/bubbles.html#country">bubbles graph</a>):</p>
|
||||
<img src="country.png" class="imgRz">
|
||||
<p><u>Disclaimer:</u> <b>Do not host your Tor node in Germany, Netherlands or in the US, as there are already too many nodes in those countries.</b> Try to run your own Tor nodes in countries that have the least nodes preferably, as this will help keeping the Tor network decentralized.</p>
|
||||
<p><img src="../logos/daturagit.png" style="width:100px"> <u>Sidenote:</u> Help us improve this tutorial by letting us know if there's anything missing or incorrect on this <a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions/issues/101">git issue</a> directly!</p>
|
||||
<p><img src="../../logos/daturagit.png" style="width:100px"> <u>Sidenote:</u> Help us improve this tutorial by letting us know if there's anything missing or incorrect on this <a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions/issues/101">git issue</a> directly!</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -84,24 +84,32 @@
|
|||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2><b>Installation</b></h2> </br> </br>
|
||||
<pre><code class="nim">
|
||||
apt update -y && apt upgrade -y
|
||||
apt install curl tmux vim gnupg2 -y
|
||||
<p>
|
||||
Log into your Debian server and add Tor repository.<br>
|
||||
This will allow you to update your Tor daemon to latest versions just after they're released. It's not recommended to use <b>tor</b> package from Debian repository since it's usually out of date.<br>
|
||||
To do that, <a href="https://support.torproject.org/apt/tor-deb-repo/">check the steps on Tor project's website</a>. Commands I run are listed below, but they may change in the future.
|
||||
</p>
|
||||
|
||||
root@Datura:~# cat /etc/apt/sources.list |head -n3
|
||||
<pre><code class="nim">root@Datura:~# apt update -y && apt upgrade -y
|
||||
root@Datura:~# apt install apt-transport-https curl tmux vim obfs4proxy gnupg2 -y
|
||||
|
||||
deb [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
deb-src [signed-by=/usr/share/keyrings/tor-archive-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
root@Datura:~# cat /etc/apt/sources.list | head -n3
|
||||
|
||||
root@Datura:~# wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/tor-archive-keyring.gpg >/dev/null
|
||||
deb [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
deb-src [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org bookworm main
|
||||
|
||||
apt update -y
|
||||
apt install tor nyx
|
||||
root@Datura:~# wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null
|
||||
|
||||
#To configure tor we need to edit the configuration file with the following entry. Replace the TODOs with the port numbers you wish to use
|
||||
root@Datura:~# apt update -y
|
||||
root@Datura:~# apt install tor nyx
|
||||
</code></pre>
|
||||
|
||||
#Open conf file
|
||||
vim /etc/tor/torrc
|
||||
<p>
|
||||
To configure tor we need to edit the configuration file with the following entry. Replace the TODOs with the port numbers you wish to use
|
||||
|
||||
Edit tor configuration file:</p>
|
||||
|
||||
<pre><code class="nim">root@Datura:~# vim /etc/tor/torrc
|
||||
|
||||
# Replace "TODO1" with a Tor port of your choice.
|
||||
# This port must be externally reachable.
|
||||
|
@ -112,14 +120,14 @@ ORPort 37051
|
|||
# "Ext" means "extended", not "external". Don't try to set a specific port number, nor listen on 0.0.0.0.
|
||||
ExtORPort auto
|
||||
|
||||
# Replace "<<b></b>address@email.com>" with your email address so we can contact you if there are problems with your bridge.
|
||||
# Replace "<address@email.com>" with your email address so we can contact you if there are problems with your bridge.
|
||||
# This is optional but encouraged.
|
||||
ContactInfo nihilist@nowhere.moe
|
||||
|
||||
# Pick a nickname that you like for your bridge. This is optional.
|
||||
Nickname Nihilist
|
||||
Nickname Nihilist</code></pre>
|
||||
|
||||
|
||||
</code></pre>
|
||||
<p>Then restart the tor service + enable it:</p>
|
||||
<pre><code class="nim">
|
||||
#Restart service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue