UnrealIRCdの設定+IRCサーバ構築

UnrealIRCdの設定とircdの設定。
ircサーバっつーと有名どころは ircd UnrealIRCd hyperion-ircd とか。

  • ircd

http://www.big.or.jp/~junji/net/ircd.html
から
http://www.ircnet.jp/dist/server/jp-patch/
へ行き
irc2.11.1p1.tgz
を入手。落として展開。んでconfigureするわけだが、configureだけだと/usr/local/sbinに入れやがるのでprefix指定

% tar xvzf irc2.11.1p1.tgz
% cd irc2.11.1p1 
% ./configure prefix=/usr/local/irc
% cd i686-pc-linux-gnu 
% make all
% sudo make install

設定と編集。

% cd /usr/local/irc/etc
% vi ircd.conf

M:ircd.foo.com:127.0.0.1:Tyokyo:66677:392A
A: My Name:xxx@foo.com:::
P::::6667:
Y:10:90::30:500000:::
I:::::10

とりあえず起動

% /usr/local/irc/sbin/ircd

とまあこれで起動はするし繋ぐこともできる。が、設定とかよー分からんので捨てる。
本命は次の

  • UnrealIRCd

です。
http://www.unrealircd.com/
から
Unreal3.2.7.tar.gz
を落とす。展開ー

% tar xvzf Unreal3.2.7.tar.gz
% cd Unreal3.2.7
% ./Config

色々訊かれるけどEnter連打で乗り切る。でもここだけは気にする。

What directory are all the server configuration files in?
-> /usr/local/Unreal/
What is the path to the ircd binary including the name of the binary?
-> /usr/local/Unreal/ircd

あとはmake make installなわけだが、そのまえに必要な事がいっこ。

% cp src /usr/local/Unreal

この例だと以下に色々インストールされる。

/usr/local/Unreal

設定とか。

% cd /usr/local/Unreal
% cp doc/example.conf unrealircd.conf

編集前と後。

35 /* FOR *NIX, uncomment the following 2lines: */
36 //loadmodule "src/modules/commands.so";
37 //loadmodule "src/modules/cloak.so";

35 /* FOR *NIX, uncomment the following 2lines: */
36 loadmodule "/usr/local/Unreal/src/modules/commands.so";
37 loadmodule "/usr/local/Unreal/src/modules/cloak.so";

motdとhelpの削除。

536 tld {
537     mask *@*.fr;
538     motd "ircd.motd.fr";
539     rules "ircd.rules.fr";
540 };

536 //tld {
537 //    mask *@*.fr;
538 //    motd "ircd.motd.fr";
539 //    rules "ircd.rules.fr";
540 //};

色々。

322         options {
323             /* Note: You should not use autoconnect when linking services */
324             autoconnect;
325             ssl;
326             zip;
327         };

322         options {
323             /* Note: You should not use autoconnect when linking services */
324             autoconnect;
325 //          ssl;
326 //          zip;
327         };

716     cloak-keys {
717         "aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
718         "and another one";
719         "and another one";
720     };

716     cloak-keys {
717         "aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
718         "aoAr1HnR6gl3sJ7hVz4Zb7x4Ywpa";
719         "aoAr1HnR6gl3sJ7hVz4Zb7x4Ywpb";
720     };

736     kline-address "set.this.email";

736     kline-address "mail@addr.net";

254 {
255     options
256     {
257         ssl;
258         clientsonly;
259     };
260 };

254 {
255     options
256     {
257 //        ssl;
258 //        clientsonly;
259     };
260 };

ログファイルを何故か自分で作ってくれないので、作ってやる。

% touch ircd.log

あとは起動。

% ./unreal start

あとはサービスに登録するなり何なり。疲れる。