
Derzeit stellt eine bip
von mir konfigurierte Instanz eine Verbindung zu den vorgeschriebenen Netzwerken her und ermöglicht eine Verbindung von einem Client über SSL (unter Bereitstellung des selbstsignierten Zertifikats). Nachdem die Verbindung hergestellt wurde, wird die Verbindung zu den Clients jedoch sofort „per Peer“ getrennt.
Dies ließ mich glauben, dass das Problem beim Benutzerkennwort lag, aber das scheint nicht der Fall zu sein, da ich das Generieren und Verwenden des Kennworts test
mit getestet habe bipmkpw
. Ich habe auch versucht, eine Verbindung mit deaktiviertem SSL herzustellen, und es kommt zu derselben Remote-Trennung.
Die bip.conf lautet wie folgt:
# 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";
};
};
};
Antwort1
Ich habe mit einem Entwickler im IRC gechattet und er hat mir geraten, die folgende Kombination als Passwort zu verwenden:user:password:connection
Beispielsweise bip
würde ich bei der obigen Konfiguration eine Verbindung wie folgt konfigurieren:
Benutzer: mbrown Passwort: mbrown:thisisthepasswordthatproducesahash:freenode
Nur wenn „hashyhashy“ der von „thisisthepasswordthatproducesahash“ erzeugte Hash ist.
Wie viel eleganter bemerkt inder Mann:
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/