lunes, 24 de noviembre de 2008

Setting Up UnrealIRCD

Para instalar UnrealIRCD en tu máquina :

$ adduser ircd ( ponerlo a /bin/false en /etc/passwd para que no tenga shell )
$ cd /home/ircd
$ su ircd
$ wget -c http://files.alexisnet.net/unreal/Unreal3.2.7.tar.gz
$ tar xzvf Unreal3.2.7.tar.gz
$ mkdir -p /home/ircd/unreal/bin
$ mkdir /home/ircd/unreal/conf
$ mv Unreal3.2.7 unreal
$ cd unreal
$ ./Config

Do you want to enable the server anti-spoof protection?
[No] -> Enter

What directory are all the server configuration files in?
[/home/ircd/Unreal3.2.7] -> /home/ircd/unreal/conf Enter

Would you like to compile as a hub or as a leaf?
Type Hub to select hub and Leaf to select leaf.
[Hub] -> Enter

What is the hostname of the server running your IRCd? what.u.want.server

What should the default permissions for your configuration files be? (Set this to 0 to disable)
It is strongly recommended that you use 0600 to prevent unwanted reading of the file
[0600] -> Enter

Do you want to support SSL (Secure Sockets Layer) connections?
[No] -> Enter (or Yes if you are a security addict)

If you know the path to OpenSSL on your system, enter it here. If not
leave this blank
[] ->

Do you want to enable IPv6 support?
[No] -> Enter


Do you want to enable ziplinks support?
[No] -> Enter, a no ser que tengamos previsto linkar

f you know the path to zlib on your system, enter it here. If not
leave this blank
[] ->
Do you want to enable remote includes?
[No] ->
Do you want to enable prefixes for chanadmin and chanowner?
This will give +a the & prefix and ~ for +q (just like +o is @)
Supported by the major clients (mIRC, xchat, epic, eggdrop, Klient,
PJIRC, irssi, CGI:IRC, etc.)

This feature should be enabled/disabled network-wide.
[Yes] ->

What listen() backlog value do you wish to use? Some older servers
have problems with more than 5, others work fine with many more.
[5] ->

How far back do you want to keep the nickname history?
[2000] ->

What is the maximum sendq length you wish to have?
[3000000] ->

How many buffer pools would you like?
This number will be multiplied by MAXSENDQLENGTH.
[18] ->

How many file descriptors (or sockets) can the IRCd use?
[1024] ->

Would you like any more parameters to configure?
Write them here:
[]->

$ make
$ make install

$ cd /home/ircd/unreal/conf
$ cp doc/example.conf unrealircd.conf

Ahora viene la parte de configuración del unrealircd.conf :

descomentar las líneas :

loadmodule "/home/ircd/unreal/conf/modules/commands.so";
loadmodule "/home/ircd/unreal/conf/modules/cloak.so";

me
{
name "irc.guetto.org";
info "loh coloreh";
numeric 1;
};



admin {
"rAyiKa";
"rAyIkA";
"do@bla.com";
};


allow {
ip *@*;
hostname *@*;
class clients;
maxperip 2;
};


allow {
ip *@255.255.255.255;
hostname *@*;
class clients;
maxperip 2;
};

oper rAyIkA {
class clients;
from {
userhost rAyIkA*@*.*;
};
password "pass_oper";
flags
{
netadmin;
can_zline;
can_gzline;
can_gkline;
global;
};
};

listen 127.0.0.1:6697
{
options
{

clientsonly;
ssl; <- Esta linea quitarla si no vais a usar SSL porque dará error al correr el daemon
};
};

listen *:8067;
listen *:8989; <- Puerto que va a escuchar el ircd y rango de ip´s autorizadas, en este caso todas


Crear los siguientes ficheros de motd e ircd.rules, le tuve que poner la ruta completa, quedando así:


tld {
mask *@*;
motd "/home/ircd/unreal/conf/ircd.motd"; <- Fichero motd ruta completa pq no se lo tragaba
rules "/home/ircd/unreal/conf/ircd.rules";
};

set {
kline-address "do@blah.com"; <- Debemos poner un correo aquí si no tp se lo traga
modes-on-connect "+ixw";
modes-on-oper "+xwgs";
oper-auto-join "#opers";
options {



Guardamos el fichero y ejecutamos

$ ./unreal start

Es un poco porculero con errores y warnings, pero así me funciono a mi

No hay comentarios:

Publicar un comentario