最近,我进入了irc,因此我sic
开始安装并开始聊天-显然-正在聊天。
但是,事实证明,sic
它没有提供SSL或TCP之类的任何安全功能,所以我在中man sic
告诉他们socat
用来建立安全的TCP连接,因此我安装了该连接并阅读了文档。
在这个例子中,我发现这一点: socat TCP-LISTEN:www TCP:www.domain.org:www
所以我只是跑 socat tcp-listen:6667,fork tcp:irc.freenode.net:6697
,并试图用它连接使用sic -h 127.0.1 -p 6667
该吐了: sic: remote host closed connection
与socat
没有抱怨。
我再次尝试了一下,并选择-d -d
了socat
更详细:
2019/01/02 00:38:38 socat[1889] N accepting connection from AF=2
127.0.0.1:38664 on AF=2 127.0.0.1:6667
2019/01/02 00:38:38 socat[1889] N forked off child process 1897
2019/01/02 00:38:38 socat[1889] N listening on AF=2 0.0.0.0:6667
2019/01/02 00:38:38 socat[1897] N opening connection to AF=2
185.30.166.37:6697
2019/01/02 00:38:38 socat[1897] N successfully connected from local
address AF=2 192.168.178.28:42822
2019/01/02 00:38:38 socat[1897] N starting data transfer loop with FDs
[6,6] and [5,5]
2019/01/02 00:38:38 socat[1897] W read(5, 0x558eefca3710, 8192):
Connection reset by peer
2019/01/02 00:38:38 socat[1897] N socket 2 to socket 1 is in error
2019/01/02 00:38:38 socat[1897] N socket 2 (fd 5) is at EOF
2019/01/02 00:38:38 socat[1897] N socket 1 (fd 6) is at EOF
2019/01/02 00:38:38 socat[1897] N socket 2 (fd 5) is at EOF
2019/01/02 00:38:38 socat[1897] N exiting with status 0
2019/01/02 00:38:38 socat[1889] N childdied(): handling signal 17
socat tcp-listen:6697 openssl-connect:irc.freenode.net:6697
然后
sic -h 127.0.0.1 -p 6697 -n your-nickname
但实际上,除非有特殊需要,否则不应该使用sic。
请尝试使用irssi,它将为您节省很多时间,并提供许多sic不能提供的功能。
打开后,您可以运行/connect -ssl irc.freenode.net 6697
,确保将其替换为自己的连接详细信息。您还可以创建自定义配置,以在启动时自动连接到各种服务器和通道。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句