irssi在http代理条件下登录irc聊天室

公司上网一般是通过http代理,然后只能访问外网的443和80端口,而irc服务器的端口是6667,如irc.freenode.net。那么我们该怎么做呢,可以用ssh的本地端口(Local Forwarding)转发来实现。关于ssh的各种端口转发,SSH Cheat Sheet有详细的介绍。
前提是要能连上ssh服务,如何在http代理环境下连ssh,参考 用ssh突破公司http代理

然后就可以这样来打开本地转发功能了
[code lang="bash"]
ssh -L 1234:irc.freenode.net:6667 user@homemachine
[/code]
也可以参考SSH Cheat Sheet那篇文章,把所有的转发配置都写在 ~/.ssh/config 里面。

然后就可以
在irssi的控制台这样来配置代理了
[code lang="bash"]
/set proxy_address 127.0.0.1
/set proxy_port 1234
/set use_proxy ON
[/code]

irssi的配置文件.irssi/config 里面会多了这样几行
[code lang="bash"]
proxy_address = "127.0.0.1";
proxy_port = "1234";
use_proxy = "yes";
[/code]

irssi是cli下面一个非常好用的irc工具,与screen可以说是天作之合,A Guide to Efficiently Using Irssi and Screen 介绍两者如何搭配,非常详细,以后有使用心得的话也写一点。

参考:
irssi behind proxy (via ssh port forwarding)

3 thoughts on “irssi在http代理条件下登录irc聊天室

  1. watch nigerian movies online

    Hey there would you mind letting me know which hosting company you’re working with?
    I’ve loaded your blog in 3 completely different internet browsers and I must say this blog loads a lot quicker then most.
    Can yyou recommend a good hosting provider at a fair
    price? Kudos, I appreciate it!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>