bip irc 代理和客户端断开连接

bip irc 代理和客户端断开连接

目前,bip我配置的实例连接到指定的网络,并允许客户端通过 SSL 进行连接(提供自签名证书)。但是,建立连接后,客户端会立即“被对方”断开连接。

这让我相信问题出在用户密码上,但事实并非如此,因为我已经测试过使用 生成和使用密码testbipmkpw我还尝试在禁用 SSL 的情况下进行连接,但发生了相同的远程断开连接。

bip.conf如下:

# vim:ft=bip:ts=2
# Auto-generated BIP IRC Proxy configuration Sun Dec  1 22:55:45 2013
#
### Global options
log_system = false;
client_side_ssl_pem = "/root/.bip/bip.pem";
ip = "0.0.0.0";
log_sync_interval = 5;
port = 7778;
log_format = "%n/%Y-%m/%c.%d.log";
pid_file = "/root/.bip/bip.pid";
log_level = 2;
log_root = "/root/.bip/logs";
client_side_ssl = true;
log = true;

### Networks
network {
        name = "freenode";
        ssl = true;
        server {
                host = "chat.freenode.net";
                port = 7000;
        };

};


### Users
user {
        name = "mbrown";
        password = "hashyhashy";
        ssl_check_mode = "none";
        default_nick = "mbrownnyc";
        default_user = "mbrownnyc";
        default_realname = "matt";
        backlog = true;
        connection {
                name = "freenode";
                network = "freenode";
                follow_nick = true;
                ignore_first_nick = true;
                ssl_check_mode = "none";
                channel {
                        name = "#bip";
                };

        };

};

答案1

我和 IRC 上的一位开发人员聊天,他建议我使用以下组合作为密码:user:password:connection

例如,鉴于上述bip配置,我将配置如下连接:

用户:mbrown 密码:mbrown:thisisthepasswordthatproducesahash:freenode

仅当“hashyhashy”是“thisisthepasswordthatproducesahash”产生的哈希值时才如此。

正如在男人

CONNECTING YOUR CLIENT(S)

Then you want to use your regular irc client and connect to bip.  Point

your client to the machine bip is running and set the proper port number

(defined in your bip.conf). You should then configure the client to use a

specific irc server password constructed this way:



user:password:connection



The user is the name field of the "user" section, the password is the

password (*not* the hash) corresponding to the "password" field of the

same user section (which is the hash generated with bipmkpw) and the

connection is the "name" field of the "connection" subsection. This is

how bip authenticates you and puts your client to the correct network.



Using the default (or sample file) configuration, logs are in ~/.bip/logs/

相关内容