forked from nihilist/blog-contributions
182 lines
6.7 KiB
HTML
182 lines
6.7 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<meta name="description" content="">
|
||
|
<meta name="author" content="">
|
||
|
<link rel="shortcut icon" href="../../../../../../assets/img/favicon.png">
|
||
|
|
||
|
<title>TOR Relay</title>
|
||
|
|
||
|
<!-- Bootstrap core CSS -->
|
||
|
<link href="../../../assets/css/bootstrap.css" rel="stylesheet">
|
||
|
<link href="../../../assets/css/xt256.css" rel="stylesheet">
|
||
|
<script src="../../../assets/js/highlight.pack.js"></script>
|
||
|
|
||
|
|
||
|
<!-- Custom styles for this template -->
|
||
|
<link href="../../../assets/css/main.css" rel="stylesheet">
|
||
|
|
||
|
|
||
|
|
||
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||
|
<!--[if lt IE 9]>
|
||
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||
|
<![endif]-->
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<!-- Static navbar -->
|
||
|
<div class="navbar navbar-inverse-anon navbar-static-top">
|
||
|
<div class="container">
|
||
|
<div class="navbar-header">
|
||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
</button>
|
||
|
<a class="navbar-brand-anon" href="\index.html">nihilist`s Blog</a>
|
||
|
</div>
|
||
|
<div class="navbar-collapse collapse">
|
||
|
<ul class="nav navbar-nav navbar-right">
|
||
|
|
||
|
<li><a href="/about.html">About</a></li>
|
||
|
<li><a href="/blog.html">Categories</a></li>
|
||
|
<li><a href="https://blog.nihilism.network/donate.html">Donate</a></li>
|
||
|
<li><a href="/contact.html">Contact</a></li>
|
||
|
</ul>
|
||
|
</div><!--/.nav-collapse -->
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- +++++ Posts Lists +++++ -->
|
||
|
<!-- +++++ First Post +++++ -->
|
||
|
<div id="anon2">
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-lg-8 col-lg-offset-2">
|
||
|
<a href="../../anon.html">Previous Page</a></br></br> <p><img src="../../../assets/img/user.png" width="50px" height="50px"> <ba>nihilist - 01 / 02 / 2024</ba></p>
|
||
|
<h1>TOR Relay </h1>
|
||
|
<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 10 server. </p>
|
||
|
<p>You will also need to make sure that the VPS provider allows the hosting of a tor node! check torproject's good/bad isps page <a href="https://community.torproject.org/relay/community-resources/good-bad-isps/">here</a>. </p>
|
||
|
<img src="1.png" class="imgRz">
|
||
|
<p> For example, you wouldn't be able to host an exit node on DigitalOcean, however hosting a regular node is completely fine.</p>
|
||
|
|
||
|
</div>
|
||
|
</div><!-- /row -->
|
||
|
</div> <!-- /container -->
|
||
|
</div><!-- /grey -->
|
||
|
|
||
|
<!-- +++++ Second Post +++++ -->
|
||
|
<div id="anon3">
|
||
|
<div class="container">
|
||
|
<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
|
||
|
|
||
|
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
|
||
|
|
||
|
#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
|
||
|
|
||
|
# Replace "TODO1" with a Tor port of your choice.
|
||
|
# This port must be externally reachable.
|
||
|
# Avoid port 9001 because it's commonly associated with Tor and censors may be scanning the Internet for this port.
|
||
|
ORPort 37051
|
||
|
|
||
|
# Local communication port between Tor and obfs4. Always set this to "auto".
|
||
|
# "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.
|
||
|
# This is optional but encouraged.
|
||
|
ContactInfo nihilist@nihilism.network
|
||
|
|
||
|
# 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
|
||
|
|
||
|
#Enable at boot
|
||
|
systemctl enable --now tor@default
|
||
|
|
||
|
#monitor it with nyx
|
||
|
nyx
|
||
|
</code></pre>
|
||
|
|
||
|
<img src="5.png" class="imgRz">
|
||
|
<p>You can also monitor connections by switching to the menu (pressing <b>m</b>) </p>
|
||
|
<img src="6.png" class="imgRz">
|
||
|
<p>and then just use the <b>arrow keys</b> to navigate:</p>
|
||
|
<img src="7.png" class="imgRz">
|
||
|
<p>Hit <b>spacebar</b> to choose "connection" </p>
|
||
|
<p>EDIT: you can just use left arrow and right arrow to change menus quickly lol</p>
|
||
|
<img src="8.png" class="imgRz">
|
||
|
<p>This is going to list the active connections (Circuits) to your tor node with their ip addresses.</p>
|
||
|
</div>
|
||
|
</div><!-- /row -->
|
||
|
</div> <!-- /container -->
|
||
|
</div><!-- /white -->
|
||
|
|
||
|
|
||
|
<div id="anonb">
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-lg-4">
|
||
|
<h4>Nihilism</h4>
|
||
|
<p>
|
||
|
Until there is Nothing left.
|
||
|
|
||
|
</p>
|
||
|
</div><!-- /col-lg-4 -->
|
||
|
|
||
|
<div class="col-lg-4">
|
||
|
<h4>My Links</h4>
|
||
|
<p>
|
||
|
|
||
|
<a target="_blank" rel="noopener noreferrer" href="http://blog.nihilism.network/rss/feed.xml">RSS Feed</a><br/><a target="_blank" rel="noopener noreferrer" href="https://matrix.to/#/#nihilism:m.datura.network">Matrix Chat</a><br/>
|
||
|
|
||
|
</p>
|
||
|
</div><!-- /col-lg-4 -->
|
||
|
|
||
|
<div class="col-lg-4">
|
||
|
<h4>About nihilist</h4>
|
||
|
<p style="word-wrap: break-word;"><u>Donate XMR:</u> 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8</p></br><p><u>Contact:</u> nihilist@nihilism.network (<a href="https://nihilism.network/nihilist.pubkey">PGP</a>)</p>
|
||
|
</div><!-- /col-lg-4 -->
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<!-- Bootstrap core JavaScript
|
||
|
================================================== -->
|
||
|
<!-- Placed at the end of the document so the pages load faster -->
|
||
|
|
||
|
</body>
|
||
|
</html>
|