LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2012, 03:24 PM   #1
mrrhq
LQ Newbie
 
Registered: Oct 2011
Posts: 23

Rep: Reputation: Disabled
Issues connecting with Irssi+Tor+SASL to Freenode


Hi,

I am learning more and more about using Tor to protect disclosure of my IP address on the Internet to unnessecary third-parties and networks like IRC, because IRC is notorious for doing that.

I am having issues with setting up the SSL handshake. I know that outside when I use the command "usewithtor irssi" I always get the error:

Quote:
warning SSL handshake failed: server closed connection unexpectedly
What bothers me is that I don't know what causes an SSL handchake to fail. It don't think it like an out of date certificate. It could mean that its not being verified somehow after I told it to explicitly verify itself. The error is not verbose enough, and I don't know how to make irssi more verbose.

So I'm trying to figure out how to troubleshoot this problem, and I've sort of tried all of my practical ideas. Here's what I've done so far:

- Correctly set up SASL for Freenode and Tor:
http://freenode.net/irc_servers.shtml
http://freenode.net/sasl/
- Secured tor with these instructions:
https://trac.torproject.org/projects...ifyHOWTO/irssi

I decided not to use socat, but usewithtor instead, because I am not confident on my networking knowledge, and I have no idea what I'm going with the whole "address mapping" thing. I prefer to know what I'm doing before I do it (even though it costs time and effeciency).

Now when I start up irssi without the usewithtor or torify command, it can connect to Freenode's onion address just fine. Keep in mind that I do run Privoxy, but I would dislike having it conflict with IRC stuff. I have it forwarded to SOCKS5 (not SOCKS4a). I don't think Tor should be using Privoxy on the IRC protocol, but it might. I don't know how to diagnose this.

I also solved the problem in cap_sasl.pl, which, for some reason, didn't mention that I needed other Perl libraries to function properly. How stupid. Now I have DH-BLOWFISH support, yay.

Here's my config files and errors in detail:

~/.irssi/config
Quote:
servers = (
[...]
{
address = "p4fsi4ockecnea7l.onion";
autoconnect = "no";
chatnet = "Freenode";
port = "6697";
ssl_capath = "/etc/ssl/certs";
ssl_verify = "yes";
use_ssl = "yes";
},
/etc/tor/torrc
Quote:
mapaddress 10.40.40.40 p4si4ockecnea7l.onion
TransPort 9040
DNSPort 5353
AutomapHostsOnResolve 1
The error of the beast
Quote:
[13:24] -!- Irssi: SASL: auth loaded from /home/mrrhq/.irssi/sasl.auth
[13:25] -!- Irssi: Looking up p4fsi4ockecnea7l.onion
[13:25] -!- Irssi: Connecting to p4fsi4ockecnea7l.onion [127.0.69.0] port 6697
[13:25] -!- Irssi: warning SSL handshake failed: server closed connection unexpectedly
[13:25] -!- Irssi: Connection lost to p4fsi4ockecnea7l.onion
I am running Debian Sid GNU/Linux, Linux kernel 3.2.0-3-amd64.

Last edited by mrrhq; 08-16-2012 at 03:26 PM.
 
Old 10-12-2012, 12:55 PM   #2
brokencog
Member
 
Registered: Aug 2008
Location: united states
Distribution: slack 12.1
Posts: 37

Rep: Reputation: 15
Any luck getting a solution to this? I'm at the same point. The only difference is I told irssi to use port 7000 to connect to the Freenode hidden service, not 6697. 6697 works when connecting via SSL/SASL, so I tried both.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tor + privoxy + polipo + irssi Don't works. hackum Linux - Software 2 09-11-2011 08:25 PM
Irssi won't connect to Freenode Ipozya Linux - Software 1 02-03-2011 05:20 PM
I cannot connect to FreeNode via TOR using SASL abisgal Linux - Software 1 06-08-2010 02:34 PM
[SOLVED] Freenode, cap_sasl.pl and irssi: Slackbuilds for the perl modules? andrew.46 Slackware 2 04-16-2010 08:15 PM
Connecting (Irssi , maybe glibc?) muppski Linux - Software 0 08-23-2005 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration