2014-09-16

‎SSL Connection: add a warning on previously mentioned unknown protocol error

← Older revision

Revision as of 11:48, 16 September 2014

(2 intermediate revisions by one user not shown)

Line 10:

Line 10:

{{Related articles start}}

{{Related articles start}}

{{Related|IRC channels}}

{{Related|IRC channels}}



{{Related|IRC
Channel
}}

+

{{Related|IRC}}

{{Related articles end}}

{{Related articles end}}

[http://www.irssi.org/ irssi] is a modular, ncurses based IRC (Internet Relay Chat) client. It also supports [[Wikipedia:SILC_(protocol)|SILC]] and [http://www.icb.net/_jrudd/icb/protocol.html ICB] protocols via plugins.

[http://www.irssi.org/ irssi] is a modular, ncurses based IRC (Internet Relay Chat) client. It also supports [[Wikipedia:SILC_(protocol)|SILC]] and [http://www.icb.net/_jrudd/icb/protocol.html ICB] protocols via plugins.

Line 23:

Line 23:

* You can use {{ic|/save}} to save your current configuration to the config file.

* You can use {{ic|/save}} to save your current configuration to the config file.



* You can save the location of your currently opened windows by entering {{ic|/layout save}}

* You can save the location of your currently opened windows by entering {{ic|/layout save}}



* It sometimes might happen that umlauts are not correctly displayed. To fix this problem you have to set the right encoding with the following commands directly in irssi.

* It sometimes might happen that umlauts are not correctly displayed. To fix this problem you have to set the right encoding with the following commands directly in irssi.

Line 63:

Line 61:

In order to ignore showing of joining, leaving and quiting of users for all channels type the following in irssi:

In order to ignore showing of joining, leaving and quiting of users for all channels type the following in irssi:

+

/ignore * joins

/ignore * joins

/ignore * parts

/ignore * parts

Line 133:

Line 132:

== Script installation ==

== Script installation ==

+

{{Tip|Several scripts are available in the [[AUR]] under '''irssi-script'''.}}

{{Tip|Several scripts are available in the [[AUR]] under '''irssi-script'''.}}

Line 140:

Line 140:

Create a directory to hold your irssi scripts and within that, a directory that contains scripts which will be automatically run when starting irssi:

Create a directory to hold your irssi scripts and within that, a directory that contains scripts which will be automatically run when starting irssi:

+

$ mkdir -p ~/.irssi/scripts/autorun

$ mkdir -p ~/.irssi/scripts/autorun

Download the irssi spell-checking script, {{ic|spell.pl}} into the script directory:

Download the irssi spell-checking script, {{ic|spell.pl}} into the script directory:

+

$ cd ~/.irssi/scripts

$ cd ~/.irssi/scripts

$ wget http://scripts.irssi.org/scripts/spell.pl .

$ wget http://scripts.irssi.org/scripts/spell.pl .

As root run the following command (this will download perl module to {{ic|/usr/share/perl5/site_perl/Lingua/Ispell.pm}}):

As root run the following command (this will download perl module to {{ic|/usr/share/perl5/site_perl/Lingua/Ispell.pm}}):

+

# perl -MCPAN -e 'install Lingua::Ispell'

# perl -MCPAN -e 'install Lingua::Ispell'

+

As a root change the path in {{ic|ispell.pm}} to:

As a root change the path in {{ic|ispell.pm}} to:

+

/usr/bin/ispell

/usr/bin/ispell

Line 154:

Line 159:

Start irssi and load the spell-checking script:

Start irssi and load the spell-checking script:

+

{{hc|/script load spell.pl|- - Irssi: Loaded script spell}}

{{hc|/script load spell.pl|- - Irssi: Loaded script spell}}

Bind {{ic|Alt + s}} to spell check your current line.

Bind {{ic|Alt + s}} to spell check your current line.

+

/bind meta-s /_spellcheck

/bind meta-s /_spellcheck

If you want to autorun the script when you start irssi, just link the script into the autorun folder:

If you want to autorun the script when you start irssi, just link the script into the autorun folder:

+

$ cd ~/.irssi/scripts/autorun/

$ cd ~/.irssi/scripts/autorun/

$ ln -s ../spell.pl .

$ ln -s ../spell.pl .

Line 166:

Line 174:

=== SSL Connection ===

=== SSL Connection ===

+

+

{{Warning|The port must not be 6667, or you will get {{ic|Irssi: warning SSL handshake failed: unknown protocol}} errors.}}

Freenode uses port 6697, 7000 and 7070 for SSL connections. To connect to Freenode IRC network via SSL you have to setup an new connection. Start {{ic|irssi}} and paste:

Freenode uses port 6697, 7000 and 7070 for SSL connections. To connect to Freenode IRC network via SSL you have to setup an new connection. Start {{ic|irssi}} and paste:

Line 230:

Line 240:

To use ''irssi'' behind a HTTP proxy, the following commands are required:

To use ''irssi'' behind a HTTP proxy, the following commands are required:

+

/SET use_proxy ON

/SET use_proxy ON

/SET proxy_address <Proxy host address>

/SET proxy_address <Proxy host address>

Line 295:

Line 306:

A vhost can be used to change your hostname when connected to an IRC-server, commonly viewed when joining/parting or doing a whois. This is most commonly done on a server which have a static IP address. Without a vhost it would commonly look like so when doing a 'whois':

A vhost can be used to change your hostname when connected to an IRC-server, commonly viewed when joining/parting or doing a whois. This is most commonly done on a server which have a static IP address. Without a vhost it would commonly look like so when doing a 'whois':

+

nick@123.456.78.90.isp.com

nick@123.456.78.90.isp.com

+

The result of a successfull vhost could be like so if you have the domain example.com available:

The result of a successfull vhost could be like so if you have the domain example.com available:

+

nick@example.com

nick@example.com

+

Keep in mind that not every IRC-server supports the use of vhost. This might be individually set between the servers and not the network, so if you're experiencing issues with one server try another on the same network.

Keep in mind that not every IRC-server supports the use of vhost. This might be individually set between the servers and not the network, so if you're experiencing issues with one server try another on the same network.

Line 305:

Line 320:

To see if this is working, test with the 'host' DNS lookup utility included in [https://www.archlinux.org/packages/?sort=&q=dnsutils&maintainer=&last_update=&flagged=&limit=50 dnsutils] like so (where ''ip'' is a normal IPv4 address):

To see if this is working, test with the 'host' DNS lookup utility included in [https://www.archlinux.org/packages/?sort=&q=dnsutils&maintainer=&last_update=&flagged=&limit=50 dnsutils] like so (where ''ip'' is a normal IPv4 address):

+

host ''ip''

host ''ip''

+

If this returns something in the lines of this then you know that your rDNS is working.

If this returns something in the lines of this then you know that your rDNS is working.

+

''ip''.in-addr.arpa domain name pointer example.com

''ip''.in-addr.arpa domain name pointer example.com

Line 314:

Line 332:

/server -host example.com irc.freenode.org

/server -host example.com irc.freenode.org

Another way would be to set your hostname (vhost) with the 'set' command which will save your hostname to {{ic|~/.irssi/config}}:

Another way would be to set your hostname (vhost) with the 'set' command which will save your hostname to {{ic|~/.irssi/config}}:

+

/set hostname example.com

/set hostname example.com

/save

/save

/server irc.freenode.org

/server irc.freenode.org





== Troubelshooting ==





=== warning SSL handshake failed: unknown protocol ===





When getting an error like this every few minutes when connecting to Freenode network:





Irssi: warning SSL handshake failed: unknown protocol





You need to change the default port from 6667 to 6697 (see [[#SSL_Connection]]):





{{hc|~/.irssi/config|2=



...



{



address = "chat.freenode.net";



chatnet = "Freenode";



<s>port = "6667";</s>



'''port = "6697";'''



use_ssl = "yes";



ssl_verify = "yes";



ssl_capath = "/etc/ssl/certs";



autoconnect = "Yes";



},



...



}}

== See also ==

== See also ==

Show more