dox/html/irc-tor.html

82 lines
2.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Connect to IRC with Tor</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<header id="title-block-header">
<h1 class="title">Connect to IRC with Tor</h1>
</header>
<nav id="TOC">
<ul>
<li><a href="#debian">Debian</a><ul>
<li><a href="#hexchat">hexchat</a></li>
<li><a href="#irssi">irssi</a></li>
</ul></li>
<li><a href="#connect-to-freenode-w-tor">Connect to freenode w/ Tor</a></li>
</ul>
</nav>
<h1 id="debian">Debian</h1>
<h2 id="hexchat">hexchat</h2>
<p>Two options:</p>
<ul>
<li>set up a 'global' proxy that applies to every hexchat connection, which can be overridden</li>
<li>set up a 'local' proxy that only applies to one connection.</li>
</ul>
<ol>
<li>Install Tor Browser</li>
<li>Settings &gt; Preferences &gt; Network setup
<ul>
<li>hostname: 127.0.0.1</li>
<li>port: 9150</li>
<li>type: socks5</li>
<li>user proxy for: all connections &lt;&lt;&lt; I can't find this option</li>
</ul></li>
<li>HexChat &gt; Network List &gt; Add
<ul>
<li>name it whatever</li>
<li>servers &gt; add &gt; km3jy7nrj3e2wiju.onion/6667</li>
<li>leave all checkboxes blank</li>
<li>close &gt; connect</li>
</ul></li>
</ol>
<h2 id="irssi">irssi</h2>
<ol>
<li>install irssi</li>
<li>cat irssi-tor =&gt; proxychains-ng/proxychains4 -f src/proxychains.conf irssi home ~/.irssi-tor</li>
</ol>
<p>more info? <a href="https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/irssi">https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/irssi</a></p>
<h1 id="connect-to-freenode-w-tor">Connect to freenode w/ Tor</h1>
<p>You need to generate a certificate from your computer and add it to IRC.</p>
<ul>
<li>From the command line:
<ul>
<li>cd to .config/hexchat/certs</li>
<li>openssl req -x509 -new -newkey rsa:4096 -sha256 -days 1000 -nodes -out freenode.pem -keyout freenode.pem - generates a self-signed certificate</li>
<li>openssl x509 -in freenode.pem -outform der | sha1sum -b | cut -d' ' -f1 - generates a fingerprint (i.e. public key sorta)</li>
<li>the certificate file has to have the same name as the name of the network in your client</li>
</ul></li>
<li>in IRC:
<ul>
<li>connect to freenode server</li>
<li>/msg nickserv cert add &lt;fingerprint&gt;</li>
<li>set auth to sas exteral</li>
<li>have tor running while you connect</li>
</ul></li>
</ul>
</body>
</html>