/|\

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
playground:irssi_on_tor [2013/02/09 20:24 (UTC)]
chrisabela
playground:irssi_on_tor [2015/11/10 09:33 (UTC)] (current)
chrisabela
Line 3: Line 3:
 =====1. Introduction===== =====1. Introduction=====
  
-This wiki shows a method you can follow to torify irssi for an irc session on freenode with Slackware Linux.+This article shows a method you can follow to "torifyirssi for an IRC session on Freenode with Slackware Linux.
  
 ====1.1. irssi (1)=== ====1.1. irssi (1)===
Line 9: Line 9:
 irssi is a Command Line terminal based IRC client for UNIX systems. irssi is a Command Line terminal based IRC client for UNIX systems.
  
-If you followed a default installation, you should already have irssi. Otherwise it is available from the n directory on the +If you followed a default installation, you should already have irssi. Otherwise it is available from the "n/" directory on the Slackware DVD.
-lackware DVD+
  
-===1.1.1 irc (2)===+===1.1.1irc (2)===
  
 The IRC (Internet Relay Chat) protocol has been designed for use with text based conferencing. The IRC (Internet Relay Chat) protocol has been designed for use with text based conferencing.
  
-==1.1.Freenode (3)==+==1.1.2. Freenode (3)==
  
-The Freenode IRC Server provides discussion facilities for the Free and Open Source Software communities. Amongst its channels +The Freenode IRC network provides discussion facilities for the Free and Open Source Software communities. Amongst its channels one finds those that cater for discussion on Slackware, e.g. the ##slackware , #slackbuilds and #slackdocs channels.
- one finds those that cater for discussion on Slackware, e.g. the #slackware channel.+
  
 ====1.2 tor (4)==== ====1.2 tor (4)====
  
-tor (The Onion Router) provides anonymity for dissidents and whistle blowers around the world. It also channels traffic throug +tor (The Onion Router) provides anonymity for dissidents and whistle blowers on the Internet. It also channels traffic through port 443, thus it can be used to penetrate through some dumb firewalls that block some services to the users relying only on the destination port information.
-port 443, thus it can be used to penetrate through some dumb firewalls that block some services to the users relying only on +
- the destination port information.+
  
-A SlackBuild for tor is maintained on the slackbuilds.org repository. You will also need tsocks, that is listed as an optional +A SlackBuild for tor is maintained on the [[http://slackbuilds.org/result/?search=tor|slackbuilds.org]] repository. You will also need [[http://slackbuilds.org/result/?search=torsocks|torsocks]], as you will be using ''torify''.
- dependency, as you will be using torify.+
  
-If you are using a desktop, I recommend to install also vidalia. A SlackBuild for vidalia is also found on the slackbuilds.org +If you are using a desktop, I recommend to install also vidalia. A SlackBuild for vidalia is also found on the [[http://slackbuilds.org/result/?search=vidalia|slackbuilds.org]] repository. If you choose to use vidalia, then do not start tor manually, as otherwise vidalia will get confused and quit. If on the other hand you do not want vidalia, then you will need to start tor manually. As root perform the following commands to start tor<code> 
- repository. If you choose to use vidalia, then do not start tor manually, as otherwise vidalia will get confused and quit. If +chmod +x /etc/rc.d/rc.tor 
- on the other hand you do not want vidalia, then you will need to start tor manually. As root perform the following commands to start tor +/etc/rc.d/rc.tor start
- +
-<code> +
-chmod +x /etc/rc.d/rc.tor +
-/etc/rc.d/rc.tor start+
 </code> </code>
  
-I recommend to install the latest realeases of tor (and vidalia if installed) from the official download sites, as the SlackBu +I recommend to install the latest releases of tor (and optionally vidalia) from the official download sites, as the SlackBuilds are not always updated. Modify the scripts to target the updated source code if needed.
-ilds are not always updated. Modify the scripts to target the updated source code if needed.+
  
-====1.3 misuse===+====1.3 Misuse===
  
-Some sorry individuals might persue this option for trolling purposes. Although I am not going to deviate on this subject, tro +Some sorry individuals might pursue this option for trolling purposes. Although I am not going to deviate on this subject, trolling is a sure sign of a personality disorder. Seek professional help as trolling is not going to ease your frustrations! Also note that you will need to register you nick before starting so you will be banned after you get detected for misbehavior anyway.
-lling is a sure sign of a personality disorder. Seek professional help as trolling is not going to ease your frustrations! Als +
-note that you will need to register you nick before starting so you will be banned after you get detected anyway.+
  
-=====2.0=====+=====2.0 Register your Nick=====
  
-You will need to register your nick with freenode.net. You will need a valid e-mail address to do that. The procedure to regis +You will need to register your nick with freenode.net. You will need a valid e-mail address to do that. The procedure to register your nick may be followed from here: http://freenode.net/faq.shtml#nicksetup so I will not repeat it.
-ter your nick is may be followed from here: http://freenode.net/faq.shtml#nicksetup so I will not repeat it.+
  
-=====3.0 SASL Authentication=====+=====3.0 SASL Authentication (5)=====
  
 Then you will need to logon Freenode via SASL authentication. Then you will need to logon Freenode via SASL authentication.
  
-Install cpan2tgz. A SlackBuild for cpan2tgz is available from slackbuilds.org+Install [[http://software.jaos.org/#cpan2tgz|cpan2tgz]]. You will need Version 0.6.7 or later. Look also at the [[http://software.jaos.org/git/cpan2tgz|git]] repository for the most recent release. A SlackBuild for cpan2tgz is available from [[http://slackbuilds.org/result/?search=cpan2tgz|slackbuilds.org]]
  
 Then proceed to install some required CPAN perl modules: Then proceed to install some required CPAN perl modules:
  
-As root, execute the following commands. Note that you will need an Internet connection +As root, execute the following commands. Note that you will need an Internet connection <code> 
- +cpan2tgz --build-tag=me Crypt::Blowfish 
-<code> +cpan2tgz --build-tag=me Math::BigInt::GMP 
-cpan2tgz Crypt::Blowfish +# cpan2tgz --build-tag=me Crypt::DH Crypt::OpenSSL::Bignum 
-cpan2tgz Crypt::DH Crypt::OpenSSL::Bignum +cpan2tgz --build-tag=me Math::BigInt 
-cpan2tgz Math::BigInt +cpan2tgz --build-tag=me Math::BigInt::FastCalc
-cpan2tgz Math::BigInt::FastCalc +
-cpan2tgz Math::BigInt::GMP+
 </code> </code>
 +Note that the argument "--build-tag=me" will cause a "build tag" to be added to the resulting package (like "''perl-crypt-blowfish-2.12-i486-1me.txz''") which makes it easier to exclude from [[slackware:slackpkg|slackpkg]] package management.
  
-Now as your usual non-privileged user, delete your irssi configurations files, to ensure consistency: +Now as your chosen non-privileged user, rename your irssi configurations files, to ensure consistency: <code> 
- +$ mv -$HOME/.irssi $HOME/.irssi.orig 
-<code> +irssi
-rm -rf $HOME/.irssi +
-irssi+
 </code> </code>
  
-Quit irssi by entering +Quit irssi by entering <code>
- +
-<code>+
 /quit /quit
 </code> </code>
  
-Edit the 3rd line from the last of $HOME/.irssi/config +Edit the 3rd last line of the file ''$HOME/.irssi/config'' which will have been created, to accomodate your nick. For example: 
-to accomodate your nick. For example:+
 From: From:
 <code> <code>
Line 99: Line 81:
  
 <code> <code>
-mkdir -p $HOME/.irssi/scripts/autorun +mkdir -p $HOME/.irssi/scripts/autorun 
-cd $HOME/.irssi/scripts/ +cd $HOME/.irssi/scripts/ 
-wget http://freenode.net/sasl/cap_sasl.pl +wget http://scripts.irssi.org/scripts/cap_sasl.pl 
-ln -s ../cap_sasl.pl autorun/ +ln -s ../cap_sasl.pl autorun/ 
-cd +cd 
-irssi+irssi
 </code> </code>
  
Line 114: Line 96:
 /save /save
 /script load cap_sasl.pl /script load cap_sasl.pl
-/sasl set Freenode <nick> <password> DH-BLOWFISH+/sasl set Freenode <nick> <password> PLAIN
 </code> </code>
  
-Naturally enter your actual nick and password in where indicated.+Naturally enter your actual nick and password where indicated.
  
 Proceed like this: Proceed like this:
Line 127: Line 109:
 </code> </code>
  
-Next time you run irssi, you will automatically logon Freenode without being asked for the password, this indicates that your +Next time you run irssi, you will automatically logon to Freenode without being asked for the password, this indicates that your SASL authentication has been succesful.
-SASL authentication has been succesful.+
  
 =====4.0 Torifying irssi===== =====4.0 Torifying irssi=====
 +
 +<note warning>Note that Freenode hidden service is offline until further notice. The rest of this wiki will not work. 
 +</note>
 +
 +<note warning>If you have an installation with multilib packages, it may be necessary to create this symbolic link as root for the torify command to work:
 +
 +<code>
 +# cd /usr/lib
 +# ln -s ../lib64/torsocks/ .
 +</code></note> 
  
 To connect to freenode with tor, start it as follows: To connect to freenode with tor, start it as follows:
 <code> <code>
-http_proxy=http://127.0.0.1:6677/ torify irssi+http_proxy=http://127.0.0.1:6677/ torify irssi
 </code> </code>
- 
 and it will fail miserably! and it will fail miserably!
-This is my result: 
  
 +This is my result:
 <code> <code>
 20:45 -!- Irssi: Looking up irc.freenode.net 20:45 -!- Irssi: Looking up irc.freenode.net
Line 148: Line 138:
 </code> </code>
  
-You will need to connect to the Freenode's tor's hidden service address: p4fsi4ockecnea7l.onion +You will need to connect to the Freenode's tor's hidden service address: //frxleqtzgvwkv7oz.onion//
 <code> <code>
-/server p4fsi4ockecnea7l.onion+/server frxleqtzgvwkv7oz.onion
 </code> </code>
  
-Be aware that the connection will be slow. If you are using vidalia, you may try changing your proxy server for a better conne +Be aware that the connection will be slow. If you are using vidalia, you may try changing your proxy server for a better connect. Eventually, you should manage to log in but you have to be patient and accept some latency. Should you still fail, consider reporting your problems to the #freenode channel.
-ct. Eventually, you should manage to log in but you have to be patient and accept some latency.+
  
 You may check that you are chatting anonymously: You may check that you are chatting anonymously:
Line 165: Line 153:
 I obtained the following result: I obtained the following result:
 <code> <code>
-20:55 -!- ChrisAbela [~chris@gateway/tor-sasl/chrisabela] +20:18 -!- ChrisAbela [~Chris@gateway/tor-sasl/chrisabela] 
-20:55 -!-  ircname  : Chris +20:18 -!-  ircname  : Chris 
-20:55 -!-  server   : asimov.freenode.net [TX, USA+20:18 -!-  server   : zelazny.freenode.net [internal
-20:55 -!-  hostname : gateway/tor-sasl/chrisabela 255.255.255.255 +20:18 -!-  hostname : gateway/tor-sasl/chrisabela 255.255.255.255  
-20:55 -!-  idle     : 0 days 0 hours 0 mins 25 secs [signon: Sat Feb  9 20:55:24 2013+20:18 -!-  idle     : 0 days 0 hours 0 mins secs [signon: Fri Jan 10 20:18:40 2014
-20:55 -!-  account  : ChrisAbela +20:18 -!-  account  : ChrisAbela 
-20:55 -!- End of WHOIS+20:18 -!- End of WHOIS
 </code> </code>
  
-Note that the username is leaked!+Note that the user_name is leaked!
  
 Then proceed as usual: Then proceed as usual:
  
 <code> <code>
-/j #slackware+/j ##slackware
 </code> </code>
  
-=====5.0 References=====+If you need assistance, you may join the freenode channel to seek guidance: 
 + 
 +<code> 
 +/j #freenode 
 +</code> 
 + 
 +=====5.0 Sources===== 
 + 
 +  * (1) http://www.irssi.org/
  
-(1http://www.irssi.org/+  * (2https://tools.ietf.org/html/rfc1459
  
-(2https://tools.ietf.org/html/rfc1459+  * (3http://freenode.net/
  
-(3http://freenode.net/+  * (4https://www.torproject.org/
  
-(4https://www.torproject.org/+  * (5http://www.andrews-corner.org/irssi.html
  
   * Originally written by [[wiki:user:chrisabela | Chris Abela]]   * Originally written by [[wiki:user:chrisabela | Chris Abela]]
 +<!-- Please do not modify anything below, except adding new tags.-->
 +{{tag>howtos tor irssi author_chrisabela}}
  

In Other Languages
QR Code
QR Code playground:irssi_on_tor (generated for current page)