Сегодня мы установим irc сервер UnrealIRCD
И так начнем.
Заходим под root
Для Centos/Fedora пишем:
yum install openssl openssl-devel nano
apt-get install openssl libssl-dev nano
adduser ircd
passwd ircd
wget http://unreal.brueggisite.de/Unreal3.2.8.1.tar.gz
tar zxf Unreal3.2.8.1.tar.gz
cd Unreal3.2
./Config
Do you want to enable the server anti-spoof protection? [No] -> Просто жмем Enter. What directory are all the server configuration files in? [/home/ircd/unreal] -> Просто жмем Enter. What is the path to the ircd binary including the name of the binary? [/home/ircd/unreal/src/ircd] -> Просто жмем 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? [localhost] -> Просто жмем Enter. 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] -> Вводим Yes и жмем Enter. If you know the path to OpenSSL on your system, enter it here. If not leave this blank [] -> Вводим /usr/ и жмем enter. Do you want to enable IPv6 support? [No] -> Просто жмем Enter. Do you want to enable ziplinks support? [No] ->Вводим Yes и жмем Enter. If you know the path to zlib on your system, enter it here. If not leave this blank [] -> Просто жмем Enter. Do you want to enable remote includes? [No] -> Просто жмем Enter. 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] -> Просто жмем Enter. 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] -> Просто жмем Enter. How far back do you want to keep the nickname history? [2000] -> Просто жмем Enter. What is the maximum sendq length you wish to have? [3000000] -> Просто жмем Enter. How many buffer pools would you like? This number will be multiplied by MAXSENDQLENGTH. [18] -> Просто жмем Enter. How many file descriptors (or sockets) can the IRCd use? [1024] -> Просто жмем Enter.
Country Name [US]:RU State/Province [New York]:kovrov Locality Name (eg, city) []:kv Organization Name (eg, company) [IRC geeks]:IRCD pen Organizational Unit Name (eg, section) [IRCd]:irc Common Name (Full domain of your server) []:irc.ircpen.ru
make
cp doc/example.ru.conf unrealircd.conf
nano unrealircd.conf
//loadmodule "src/modules/commands.so"; //loadmodule "src/modules/cloak.so";
loadmodule "src/modules/commands.so"; loadmodule "src/modules/cloak.so";
me { name "irc.foonet.com"; info "Сервер FooNet"; numeric 1; }; </cdoe> Меняем на это(конечно ставим же своё): <code> me { name "Ваш домен"; info "Описание сервера"; numeric 1; };
admin { "Вася Пупкин!"; "vasya_pupkin"; "haker@lamer.ru"; "ICQ: 987654321"; };
admin { "Фио"; "Ваш ник"; "ваш email"; "Ваш ICQ"; };
oper vasyapupkin { class clients; from { userhost vasya@somewhere.by; }; password "p0r0l'"; flags { netadmin; can_zline; can_gzline; can_gkline; global; }; };
oper ваш ник { class clients; from { userhost идент@ваш хост; }; password "ваш пароль"; flags { netadmin; can_zline; can_gzline; can_gkline; global; }; };
listen *:6697 { options { ssl; clientsonly; }; }; listen *:8067; listen *:6667;
link hub.ru.by { username *; hostname 1.2.3.4; bind-ip *; port 7029; hub *; password-connect "LiNk"; password-receive "LiNk"; class servers; options { /* Замечание: Вы не должны использовать автоподключение (autoconnect) при подключении сервисов */ autoconnect; ssl; zip; }; };
/* link hub.ru.by { username *; hostname 1.2.3.4; bind-ip *; port 7029; hub *; password-connect "LiNk"; password-receive "LiNk"; class servers; options { /* Замечание: Вы не должны использовать автоподключение (autoconnect) при подключении сервисов */ autoconnect; ssl; zip; }; }; */
tld { mask *@*.ru; motd "ircd.motd.ru"; rules "ircd.rules.ru"; };
cloak-keys { "aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW"; "и ещё одна; "и ещё одна"; };
cloak-keys { "aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW"; "AoAr1HnR6gl3sJ7hVz4Zb7x4YwpW"; "1oAr1HnR6gl3sJ7hVz4Zb7x4YwpW"; };
kline-address "set.this.email";
kline-address "Ваш email";
rm -f help.conf
cp doc/help.ru.conf help.ru.conf
./unreal start
Starting UnrealIRCd _ _ _ ___________ _____ _ | | | | | |_ _| ___ \/ __ \ | | | | | |_ __ _ __ ___ __ _| | | | | |_/ /| / \/ __| | | | | | '_ \| '__/ _ \/ _` | | | | | / | | / _` | | |_| | | | | | | __/ (_| | |_| |_| |\ \ | \__/\ (_| | \___/|_| |_|_| \___|\__,_|_|\___/\_| \_| \____/\__,_| v3.2.8.1 using TRE 0.7.5 (LGPL) using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 using zlib 1.2.3 * Loading IRCd configuration .. * Configuration loaded without any problems .. * Initializing SSL. * Dynamic configuration initialized .. booting IRCd. ---------------------------------------------------------------------
wget http://sourceforge.net/projects/anope/files/anope-stable/Anope%201.8.2/anope-1.8.2.tar.gz/download
tar zxf anope-1.8.2.tar.gz
cd anope-1.8.2.tar.gz
./Config
Note: press Return for the default, or enter a new value. In what directory do you want the binaries to be installed? [/home/ssd/services] <! нажимаем enter !> /home/ssd/services does not exist. Create it? [y] <! Пишем Y и нажимаем enter !> Where do you want the data files to be installed? [/home/ssd/services] <! Нажимаем enter !> Which group should all Services data files be owned by? (If Services should not force files to be owned by a particular group, just press Return.) [] <! Нажимаем enter !> What should the default umask for data files be (in octal)? (077 = only accessible by owner; 007 = accessible by owner and group) [077] <! Пишем 077 и нажимаем enter !> Allow anope to automatically check for mysql libaries? unless you get errors with make, there is no need to change this setting. [yes] <! Пишем yes и нажимаем enter !>
make
make install
cd
cd services
nano example.conf
#IRCDModule "unreal32"
IRCDModule "unreal32"
RemoteServer localhost 6667 "mypass"
RemoteServer ip_адрес_сервера_ircd 7029 "Пароль"
ServerName "services.localhost.net"
ServerName "services.ваш.домен"
ServiceUser "services@localhost.net"
ServiceUser "services@ваш.домен"
NetworkName "LocalNet"
NetworkName "Имя сети"
#UserKey1 9866235 #UserKey2 8362013 #UserKey3 2362899
UserKey1 9866235 UserKey2 8362013 UserKey3 2362899
NSDefLanguage 1
NSDefLanguage 11
#ServicesRoot "dengel anope"
ServicesRoot "Ваш_ник"
cp example.conf services.conf
Теперь перейдет к UnrealIRCD и начнем править конфиг unrealircd.conf
Путь тукой:
/home/ircd/Unreal3.2
nano unrealircd.conf
listen *:6667;
listen *:7029; <code> Строки 308-325,находим это: <code> link hub.ru.by { username *; hostname 1.2.3.4; bind-ip *; port 7029; hub *; password-connect "LiNk"; password-receive "LiNk"; class servers; options { /* Замечание: Вы не должны использовать автоподключение (autoconnect) при подключении сервисов */ autoconnect; ssl; zip; }; };
link services.ваш.домен { username *; hostname ip_адрес_сервисов; bind-ip *; port 7029; hub *; password-connect "Ваш_пароль_такойже_как_и_в_конфиге_с_сервисами"; password-receive "Ваш_пароль_такойже_как_и_в_конфиге_с_сервисами"; class servers; options { }; };
ulines { services.roxnet.org; stats.roxnet.org; };
ulines { services.ваш.домен; stats.ваш.домен; };
/* Стандартные псевдонимы */ alias NickServ { type services; }; alias ChanServ { type services; }; alias OperServ { type services; }; alias HelpServ { type services; }; alias StatServ { type stats; };
/* Стандартные псевдонимы */ alias NickServ { type services; }; alias ChanServ { type services; }; alias OperServ { type services; }; alias HelpServ { type services; }; alias StatServ { type stats; }; include "aliases/anope.conf";
/* Конфигурация Сети */ 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";
/* Конфигурация Сети */ set { network-name "Имя сети"; default-server "домен своего сервера"; services-server "services.ваш.домен"; stats-server "stats.ваш.домен"; help-channel "Узказываем канал(#)"; hiddenhost-prefix "префикс( пару букв англ)";
./unreal restart
/home/ircd/services
./services
Если есть вопросы, то просим Вас посетить наш форум [6], на котором Вы сможете попросить бесплатно описание...
Ссылки:
[1] http://htfl.ru/linux/centos
[2] http://htfl.ru/linux/debian
[3] http://htfl.ru/linux/fedora
[4] http://htfl.ru/linux/ubuntu
[5] http://htfl.ru/irc/ircd_services
[6] /out.php?link=http://htff.ru/