
目前,bip
我配置的實例連接到指定的網絡,並允許客戶端透過 SSL 進行連接(提供自簽名憑證)。然而,建立連線後,客戶端會立即「被對等方」斷開連線。
這讓我相信問題出在使用者密碼上,但事實似乎並非如此,因為我已經測試過產生和使用test
密碼bipmkpw
。我還嘗試在禁用 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:這是產生 hash 的密碼:freenode
僅當“hashyhashy”是“thisisthepasswordthatproductsahash”產生的雜湊值時。
正如更優雅地指出的男人:
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/