Installation d’un serveur IRC.
Distribution de travail : Debian 7
1) Répertoire de travail :
hlirc@hacklab.fr:~$ mkdir UNREAL hlirc@hacklab.fr:~$ cd UNREAL/ hlirc@hacklab.fr:~/UNREAL$
2) Téléchargement du code source :
hlirc@hacklab.fr:~/UNREAL$ wget --no-check-certificate http://www.unrealircd.org/downloads/Unreal3.2.10.4.tar.gz
3) Décompression de l’archive :
hlirc@hacklab.fr:~/UNREAL$ tar xvfz Unreal3.2.10.4.tar.gz hlirc@hacklab.fr:~/UNREAL$ cd Unreal3.2.10.4 hlirc@hacklab.fr:~/UNREAL/Unreal3.2.10.4$
4) Configuration de la compilation :
hlirc@hacklab.fr:~/UNREAL/Unreal3.2.10.4$ ./Config
Valider les choix par défaut, sauf pour :
Do you want to support SSL (Secure Sockets Layer) connections?
Taper : Yes
Do you want to generate an SSL certificate for the IRCd?
Taper : Yes
5) Compilation :
hlirc@hacklab.fr:~/UNREAL/Unreal3.2.10.4$ make
6) Copie du fichier de configuration d’exemple :
hlirc@hacklab.fr:~/UNREAL/Unreal3.2.10.4$ cp doc/example.fr.conf unrealircd.conf
7) Fichier de configuration :
Ouvrir:
unrealircd.conf
Chercher :
//loadmodule "src/modules/commands.so"; //loadmodule "src/modules/cloak.so";
Remplacer par :
loadmodule "src/modules/commands.so"; loadmodule "src/modules/cloak.so";
Chercher :
me
{
name "irc.foonet.com";
info "FooNet Server";
numeric 1;
};
Remplacer par :
me
{
name "irc.hacklab.fr";
info "Serveur IRC Hacklab ILArd";
numeric 1;
};
Chercher :
admin {
"Bob Smith";
"bob";
"widely@used.name";
};
Remplacer par :
admin {
"Le Sanglier des Ardennes";
"sanglier";
"lesanglierdesardennes@gmail.com";
};
Chercher :
oper bobsmith {
class clients;
from {
userhost bob@smithco.com;
};
password "f00";
flags
{
netadmin;
can_zline;
can_gzline;
can_gkline;
global;
};
};
Remplacer par :
oper administrateur {
class clients;
from {
userhost lesanglierdesardennes@gmail.com;
};
password "mot2passe";
flags
{
netadmin;
can_zline;
can_gzline;
can_gkline;
global;
};
};
Chercher :
/* motd ircd.motd; */
Remplacer par :
motd ircd.motd;
Chercher :
/* rules ircd.rules; */
Remplacer par :
rules ircd.rules;
Chercher :
set {
network-name "ROXnet";
default-server "irc.roxnet.org";
services-server "services.roxnet.org";
stats-server "stats.roxnet.org";
help-channel "#ROXnet";
hiddenhost-prefix "rox";
/* prefix-quit "no"; */
cloak-keys {
"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
"et une autre";
"et un autre";
};
/* host à l'identification oper */
hosts {
local "locop.roxnet.org";
global "ircop.roxnet.org";
coadmin "coadmin.roxnet.org";
admin "admin.roxnet.org";
servicesadmin "csops.roxnet.org";
netadmin "netadmin.roxnet.org";
host-on-oper-up "no";
};
};
Action :
# Génération de 3 cloak keys
./unreal gencloak
Remplacer par :
set {
network-name "Hacklab ILArd";
default-server "irc.hacklab.fr";
services-server "services.hacklab.fr";
stats-server "stats.hacklab.fr";
help-channel "#aide";
hiddenhost-prefix "nekrocite";
cloak-keys {
"a666Df7fS4128IBw";
"1sWS2pcI5s77k6s666Fj2Ph7dnnt5rI";
"5vV7666wxdXenlQFS0fDl85Yxfb160Pc";
};
/* host à l'identification oper */
hosts {
local "locop.hacklab.fr";
global "ircop.hacklab.fr";
coadmin "coadmin.hacklab.fr";
admin "admin.hacklab.fr";
servicesadmin "csops.hacklab.fr";
netadmin "netadmin.hacklab.fr";
host-on-oper-up "no";
};
};
Chercher :
kline-address "définir.cet.email";
Remplacer par :
kline-address "lesanglierdesardennes@gmail.com";
Chercher :
link hub.mynet.com
{
username *;
hostname 1.2.3.4;
bind-ip *;
port 7029;
hub *;
password-connect "LiNk";
password-receive "LiNk";
class servers;
options {
/* Note : Vous ne devriez pas utiliser autoconnect lorsque vous linkez des services */
autoconnect;
ssl;
zip;
};
};
Remplacer par:
/*
link hub.mynet.com
{
username *;
hostname 1.2.3.4;
bind-ip *;
port 7029;
hub *;
password-connect "LiNk";
password-receive "LiNk";
class servers;
options {
/* Note : Vous ne devriez pas utiliser autoconnect lorsque vous linkez des services */
autoconnect;
ssl;
zip;
};
};
*/
8) Création de fichiers de configuration :
hlirc@hacklab.fr:~/UNREAL/Unreal3.2.10.4$ touch ircd.rules.fr hlirc@hacklab.fr:~/UNREAL/Unreal3.2.10.4$ touch ircd.motd.fr hlirc@hacklab.fr:~/UNREAL/Unreal3.2.10.4$ touch ircd.log
9) Démarrer le serveur :
hlirc@hacklab.fr:~/UNREAL/Unreal3.2.10.4$ ./unreal start
Starting UnrealIRCd
_ _ _ ___________ _____ _
| | | | | |_ _| ___ \/ __ \ | |
| | | |_ __ _ __ ___ __ _| | | | | |_/ /| / \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | | / | | / _` |
| |_| | | | | | | __/ (_| | |_| |_| |\ \ | \__/\ (_| |
\___/|_| |_|_| \___|\__,_|_|\___/\_| \_| \____/\__,_|
v3.2.10.4
using TRE 0.8.0 (BSD)
using OpenSSL 1.0.1e 11 Feb 2013
* Loading IRCd configuration ..
* Configuration loaded without any problems ..
* Loading tunefile..
* Initializing SSL.
* Dynamic configuration initialized .. booting IRCd.
---------------------------------------------------------------------
10) Configuration du nom de domaine :
Ajouter un enregistrement A pour la Zone DNS : irc.hacklab.fr
11) Paramètre de connexion :
Serveur : irc.hacklab.fr
Port : 6667
Canal : #hacklab
12) Liens :
https://www.digitalocean.com/community/tutorials/how-to-run-an-unrealircd-chat-server-on-debian-7
https://www.unrealircd.org/
Comments are closed, but trackbacks and pingbacks are open.