Irssi over tor


Tor: The Onion Router is an Internet anonymity system that helps you defend against traffic analysis.

Irssi: is a terminal based IRC client for UNIX systems.

Proxychains: is a tool to force any tcp connections to flow through a proxy ( Socks/HTTP )


# emerge -va tor proxychains irssi
# sed  -i 's/socks4\t127.0.0.1/socks5\t127.0.0.1/g' /etc/proxychains.conf
# /etc/init.d/tor start

Freenode IRC Server and Tor Hidden Service

  • Preliminaries
   A registered nickname on Freenode
   SASL EXTERNAL Mechanism 
   A Client Certificate 

Generating a client certificate and getting fingerprint certificate

# openssl req -newkey rsa:2048 -days 730 -x509 -keyout mynick.key -out mynick.cert -nodes
# cat mynick.cert mynick.key > mynick.pem
# openssl x509 -sha1 -noout -fingerprint -in mynick.pem | sed -e 's/^.*=//;s/://g;y/ABCDEF/abcdef/'
The output will be something like: 029d7db1ccc82cd3f8ec50eb293761598f95c9cb

Adding fingerprint certificate to Freenode Nickserv Service

 Connected on Freenode: /msg NICKSERV CERT ADD 029d7db1ccc82cd3f8ec50eb293761598f95c9cb

Configuring irssi to use Tor Hidden Service

  • On Irssi
 /network add -sasl_username <login> -sasl_password ~/.irssi/mynick.pem -sasl_mechanism EXTERNAL freenodetor
 /server add -auto -net freenodetor -ssl -ssl_cert ~/.irssi/mynick.pem freenodeok2gncmy.onion  6697
  • Quit and Execute irssi over proxychains tools
# proxychains irssi -n yournick 
 Connected on Freenode: /j #funtoo