First of all you need tsocks and tor configured and running, it is quite simple, more information can be seen in the link below[1], in short:
On RH Based:
sudo yum install tor tsocks -y
On Debian Based:
sudo apt-get install tor tsocks -y
Freenode allows tor connections only to a specific tor hidden service p4fsi4ockecnea7l.onion
Then add this in your torrc config in /etc/tor/torrc
### Freenode
mapaddress 10.40.40.40 p4fsi4ockecnea7l.onion
Restart tor after this change.
Download the script[2] to auth with SASL, place it under your ~/.irssi/scripts and create a symlink to it from ~/.irssi/scripts/autorun to load it automatically.
Install the packages required for the script that performs the sasl authentication.
RH Based:
sudo yum install -y perl-Crypt-OpenSSL-Bignum perl-Crypt-DH perl-Crypt-Blowfish
Debian Based:
sudo apt-get install libcrypt-openssl-bignum-perl libcrypt-dh-perl libcrypt-blowfish-perl -y
Torify Irssi
Simply run Irssi with
torify irssi
Config Irssi
/server add -network freenode 10.40.40.40
Once the script is loaded(you can load it manually with /script load cap_sasl.pl) run the config.
/sasl set freenode myaccount mypassword dh-blowfish
/sasl save
/connect freenode
tada!, you should be get connected to freenode using tor hidden service.
References:
[1] https://www.torproject.org/docs/tor-doc-unix.html.en
[2] http://freenode.net/sasl/cap_sasl.pl
More References:
http://blog.freenode.net/2010/01/connecting-to-freenode-using-tor-sasl/
https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/IrcSilc
http://socketready.com/2011/03/08/connect-to-freenode-with-irssi-over-tor/
Tags: anonymous, debian, hidden, irc, linux, proxy, redhat, sec, security, socket, tor
2 Comments