2008-01-07 22:53:40 +01:00
|
|
|
This is the BIP IRC Proxy README.
|
2008-01-07 20:38:57 +01:00
|
|
|
|
2008-01-07 22:53:40 +01:00
|
|
|
Bip can be used in two different ways:
|
2006-11-16 14:36:24 +01:00
|
|
|
- Old school bnc user style: easy and straightforward.
|
|
|
|
- Unix service style with and init.d scripts and the logs in /var/log
|
|
|
|
|
2008-01-07 22:53:40 +01:00
|
|
|
This small README file explains the usage "Old school" with which :
|
2006-11-16 14:36:24 +01:00
|
|
|
- you do not need the root privileges.
|
2008-01-07 22:53:40 +01:00
|
|
|
- gives easy access to the logs to the owner of the shell.
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
Table of contents :
|
|
|
|
|
|
|
|
I. Installation
|
|
|
|
II. Configuration
|
|
|
|
A. Manual configuration
|
|
|
|
B. Automated configuration
|
|
|
|
III. Running bip
|
|
|
|
IV. Using bip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I. INSTALLATION
|
|
|
|
|
|
|
|
Install bip on the machine that will be running bip (which is likely to be
|
|
|
|
your personnal or shared server) either compiling the package or using your
|
|
|
|
distro's package. Then create a configuration file.
|
2008-01-07 22:53:40 +01:00
|
|
|
|
|
|
|
Choose your distribution package if available. If not, build bip the
|
|
|
|
old-fashioned way. You will need make, gcc, lex and yacc to build bip.
|
|
|
|
Just issue:
|
|
|
|
|
|
|
|
# ./configure --enable-oidentd && make
|
|
|
|
|
|
|
|
If openssl and its developement files are installed, bip should build with
|
|
|
|
SSL support. After a successful build the bip binary can be found in
|
|
|
|
./src/bip.
|
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
|
|
|
|
II. CONFIGURATION
|
|
|
|
|
|
|
|
First of all, create your bip configuration an log directory:
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
# mkdir -p ~/.bip/logs
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
There are two ways to create your bip configuration :
|
|
|
|
- edit the sample bip.conf file to match your needs
|
|
|
|
- use the bipgenconfig script to easily generate a configuration
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
If you want to connect to bip using an SSL client, you'll need to create
|
|
|
|
a certificate / key pair (in a bip.pem file) to allow bip to serve SSL
|
|
|
|
sockets.
|
|
|
|
|
|
|
|
A. MANUAL CONFIGURATION
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
If you are using a distribution package, the bip.conf sample configuration
|
|
|
|
file is likely to be shipped in /usr/share/doc/bip/examples/bip.conf.gz or
|
|
|
|
something similar.
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
If not, you'll find sample configuration file in the source package's
|
|
|
|
`samples' subdirectory.
|
2008-01-07 22:53:40 +01:00
|
|
|
|
|
|
|
Put the uncompressed configuration file in your ~/.bip directory (its
|
2008-01-07 20:38:57 +01:00
|
|
|
path should be ~/.bip/bip.conf), and edit it, most importantly the "user"
|
|
|
|
section that contains information about you and the servers you will want
|
|
|
|
to connect to. The "name" field in the "user" section is your login to
|
|
|
|
connect to bip.
|
|
|
|
The "name" field of the "connection" subsections are the server identifier
|
|
|
|
for when you connect to bip.
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
The "password" field is a hash of the password you will use to connect to
|
|
|
|
bip. To generate a hash value from a password, use bipmkpw, program which
|
|
|
|
comes in the bip package and source.
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
If you've set client_side_ssl to true, you'll need to generate a bip.pem
|
|
|
|
file containing a certificate / key pair. In order to do so, you can use
|
|
|
|
the third party `openssl' binary :
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
# openssl req -new -x509 -days 365 -nodes -out bip.pem -keyout bip.pem
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
You can then remove the passphrase with :
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
# openssl x509 -subject -dates -fingerprint -noout -in bip.pem
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
B. AUTOMATED CONFIGURATION
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
You can also use the bipgenconfig script to generate a new configuration.
|
|
|
|
This script will also help you generate the SSL certificate / key pair
|
|
|
|
needed for clients to connect to BIP through SSL.
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
This script can be found either in the source package's `scripts'
|
|
|
|
directory or shipped with your distribution's package.
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 22:53:40 +01:00
|
|
|
Using the script is very simple, and it will generate a configuration
|
|
|
|
file but won't overwrite any existing configuration.
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 22:53:40 +01:00
|
|
|
It will ask you the path to the bipmkpw binary, to automatically hash the
|
2008-01-07 20:38:57 +01:00
|
|
|
passwords you'll provide. Please make sure to enter the correct path to
|
|
|
|
the binary or you might observe unexpected behaviour.
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
You'll need to move the generated configuration from bip.conf.autogen to
|
|
|
|
bip.conf and the generated PEM file from bip.pem.autogen to bip.pem (or
|
|
|
|
whatever path you've configured in bip.conf).
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
III. RUNNING BIP
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
Once all this is configured, start bip as your regular user:
|
2008-01-07 22:53:40 +01:00
|
|
|
|
|
|
|
# ./src/bip
|
|
|
|
|
|
|
|
If you have installed bip in your path (or if you are using you
|
|
|
|
distribution's package), simply use:
|
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
# bip
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
Once bip starts, it connects to the different servers your defined in
|
|
|
|
all "user"'s "connection" blocks.
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
IV. USING BIP
|
2006-11-16 14:36:24 +01:00
|
|
|
|
2008-01-07 22:53:40 +01:00
|
|
|
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
|
2008-01-07 20:38:57 +01:00
|
|
|
(defined in your bip.conf). You should then configure the client to use a
|
|
|
|
specific irc server password constructed this way:
|
2008-01-07 22:53:40 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
Using the default (or sample file) configuration, logs are in ~/.bip/logs/
|
2008-01-07 22:53:40 +01:00
|
|
|
|
2008-01-07 20:38:57 +01:00
|
|
|
Happy ircing!
|
2008-01-07 22:53:40 +01:00
|
|
|
|
|
|
|
-- Arnaud Cornet <nohar@t1r.net> and Loïc Gomez <opensource@kyoshiro.org>
|
|
|
|
|