Simple install instructions

download, compile and install libevent: http://monkey.org/~provos/libevent/

download, compile and install mysql (only libmysqlclient is used).

Uncompress the msn-proxy:

# tar -zxvf msn-proxy.tar.gz
# cd msn-proxy

Edit the Makefile as you need (edit mysql includes and libs).

Compile the msn-proxy:

# make

If everything is ok, install the msn-proxy:

# make install

Edit the files in /usr/local/etc/msn-proxy, specially msn-proxy.conf and
mysql/conf

Look at msn-proxy.conf the maximum allowed proxy clients (the default is
a pretty low - 10 simultaneous connections).

On mysql create the database and the user to msn-proxy:
> create database `msn-proxy`;
> grant all privileges on `msn-proxy`.* to `msn-proxy`@localhost identified by 'secret';
> flush privileges;

Pay attention at "`" and "'" differences on mysql commands.

At first run, msn-proxy will check and create the mysql tables, after that
insert the default configuration (with your real proxy ip):

> insert into defaults (internal_host) values ('192.168.0.1');

Now the proxy should be ready to run, just redirect the msn clients to
the proxy (all connections to the port 1863 should be redirect at your
gateway / firewall).

You need to block http connections from msn client (the client first try to
connect on 1863 port and after some fail it will try the http method).

The most effective way to do this is through a web proxy (squid).

Configure an apache virtualhost that points to the msn-proxy/php subdir.

Edit the msn-proxy/php/mysql.inc.php and you are ready to go.

Questions, fixes and bugs: loos.br@gmail.com
