Le fichier de configuration de Ircd-Hybrid

Rédigé par Webmaster Aucun commentaire
Classé dans : Serveur IRC Mots clés : serveur irc, irc-hybrid

Installer le script du serveur IRC ne suffit pas, il faut le configurer afin que le lancement soit possible.

Voici comment faire:

Le fichier de configuration Irc-Hybrid se nomme ircd.conf et se trouve dans le répertoire etc.

J'ai raccourci le bloc ici pour plus de lisibilité (laissez le tel quel dans votre fichier) afin de vous présenter l'essentiel à savoir:
-le nom du serveur
-le nom du réseau


serverinfo {
/*
* name: the name of this server. This cannot be changed at runtime.
*/
name = "piksel72.serveur.irc";

/*
* sid: a server's unique ID. This is three characters long and must
* be in the form [0-9][A-Z0-9][A-Z0-9]. The first character must be
* a digit, followed by 2 alpha-numerical letters.
*
* NOTE: The letters must be capitalized. This cannot be changed at runtime.
*
* A sid is automatically generated at runtime, if you want to configure
* a specific sid, uncomment the following line.
*/
# sid = "0HY";

/*
* description: the description of the server.
*/
description = "ircd-hybrid test server";

/*
* network_name, network_desc: the name and description of the network this
* server is on. Shown in the 005 reply and used with serverhiding.
*/
network_name = "reseau";
network_desc = "This is My Network";
}
;


Dans le bloc initial (fichier exemple de configuration) la section consacré aux ports est indiquée comme  "port=6665 .. 6669;" j'ai remplacé 6669 par 6668. Je laisse libre le port 6669 pour effectuer la connexion avec le serveur de services.


listen {
/*
* port: the port to listen on. If no host is specified earlier in the
* listen {} block, it will listen on all available IP addresses.
*
* Ports are separated by commas; a range may be specified using ".."
*/

/* port: listen on all available IP addresses, ports 6665 to 6669. */
port = 6665 .. 6668;

/*
* Listen on 192.0.2.2/6697 with TLS enabled and hidden from STATS P
* unless you are an administrator.
*
* NOTE: The "flags" directive always has to come before "port".
*
* Currently available flags are:
*
*  tls    - Port may only accept TLS connections
*  server - Only server connections are permitted
*  hidden - Port is hidden from /stats P, unless you're an admin
*/
flags = hidden, tls;
host = "192.0.2.2";
port = 6697;

/*
* host: set a specific IP address to listen on using the
* subsequent port definitions. This may be IPv4 or IPv6.
*/
host = "192.0.2.3";
port = 7000, 7001;

host = "2001:DB8::2";
port = 7002;
};


Voici ce vous ajoutez pour la liaison avec Anope.

J'ouvre le port 6669 pour le serveur de services:
listen {
port = 6669;
flags = server;
};

Je créé un bloc de connexion avec le serveur de service:


connect {
name = "services.serveur.irc";
host = "";
port = 6669;
send_password = "12345";
accept_password = "12345";
aftype = ipv4;
class = "server";
};

J'ajoute le nom du serveur de services:


/*
* service {}: specifies a server which may act as a network service
*
* NOTE: it is very important that every server on the network
*      has the same service {} block.
*/
service {
/* name: the actual name of the service. Wildcards are not allowed. */
name = "services.serveur.irc";

/* The 'name' directives can be stacked. */
name = "stats.example.net";
};

Les commentaires sont fermés.