fix-tor-guides

This commit is contained in:
oxeo0 2025-04-23 15:41:43 +02:00
parent 0bc7c1ad0a
commit 82b0b18512
3 changed files with 65 additions and 54 deletions

View file

@ -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 -->