[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

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 revisionPrevious revision
Next revisionBoth sides next revision
playground:irssi_on_tor [2013/02/09 20:26 (UTC)] chrisabelaplayground:irssi_on_tor [2013/05/22 19:19 (UTC)] 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.1. irc (2)===
Line 18: Line 17:
 ==1.1.2. 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=tsocks|tsocks]]which is listed as an optional dependency, 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 git repository for the most recent release: http://software.jaos.org/git/cpan2tgz 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 Crypt::DH Crypt::OpenSSL::Bignum 
-cpan2tgz Crypt::Blowfish +cpan2tgz --build-tag=me Math::BigInt 
-cpan2tgz Crypt::DH Crypt::OpenSSL::Bignum +cpan2tgz --build-tag=me Math::BigInt::FastCalc
-cpan2tgz Math::BigInt +
-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.tgz''") 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 usual 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 80:
  
 <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://freenode.net/sasl/cap_sasl.pl 
-ln -s ../cap_sasl.pl autorun/ +ln -s ../cap_sasl.pl autorun/ 
-cd +cd 
-irssi+irssi
 </code> </code>
  
Line 117: Line 98:
 </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 108:
 </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=====
Line 134: Line 114:
 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 127:
 </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: //p4fsi4ockecnea7l.onion//
 <code> <code>
 /server p4fsi4ockecnea7l.onion /server p4fsi4ockecnea7l.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 174: Line 151:
 </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=====+=====5.0 Sources=====
  
-(1) http://www.irssi.org/+  * (1) http://www.irssi.org/
  
-(2) https://tools.ietf.org/html/rfc1459+  * (2) https://tools.ietf.org/html/rfc1459
  
-(3) http://freenode.net/+  * (3) http://freenode.net/
  
-(4) https://www.torproject.org/+  * (4) https://www.torproject.org/
  
-  * Originally written by [[wiki:user:chrisabela | Chris Abela]]+  * (5) http://www.andrews-corner.org/irssi.html
  
 +  * Originally written by [[wiki:user:chrisabela | Chris Abela]]
 +<!-- Please do not modify anything below, except adding new tags.-->
 +{{tag>howtos tor irssi author_chrisabela}}
 playground:irssi_on_tor ()