Install dan Konfigurasi UnrealIRCD & Anope Services di CentOS 6

Jika di artikel sebelumnya saya telah memberikan tutorial tentang Installasi dan Konfigurasi IRCD Hybrid & Anope Services di CentOS. Kali ini kita menggunakan IRC Daemon yang berbeda, jika sebelumnya server IRC Bukan Coder menggunakan IRCD Hybrid, kali ini IRC Bukan Coder sudah kembali menggunakan UnrealIRCD. Lalu bagaimana untuk proses Install dan Konfigurasi UnrealIRCD & Anope Services di CentOS 6? Silahkan ikuti langkah-langkah dibawah ini :

Download UnrealIRCD

Sama seperti sebelumnya, untuk manajemen file yang baik, buat lah sebuah folder khusus untuk direktori UnrealIRCD dan Anope nantinya.

mkdir file
cd file

Setelah itu lanjutkan dengan men-download file UnrealIRCD v. 3.2

wget http://shell.reverse.net/irc/ircd/unreal/3.2/Unreal3.2.9.tar.gz

Kemudian extract file tersebut.

tar zxf Unreal3.2.9.tar.gz

Lalu berpindah ke direktori Unreal.

cd Unreal3.2

Konfigurasi UnrealIRCD

./Config

Setelah selesai lanjutkan untuk compile

make

Copy file example.conf

cp doc/example.conf unrealircd.conf

Generate cloak keys.

./unreal gencloak

Lanjutkan untuk konfigurasi file unrealircd.conf.

nano unrealircd.conf

Berikut line code yang perlu untuk diganti :

  • Hilangkan tanda // di baris 36 dan 37. Maka akan menjadi seperti ini
loadmodule "/home/ircadmin/conf/modules/commands.so";
loadmodule "/home/ircadmin/conf/modules/cloak.so";
  • Di baris 70 dan 71 atur sesuai dengan server IRC kita
name "irc.eli.im"
info "Eli IRC Server"
  • Di baris 87, 88 dan 89 dan sesuaikan dengan data admin IRC server kita nantinya
  • Di baris 198, ganti oper untuk user bobsmith menjadi oper untuk admin
oper teguh {
 class clients;
 from {
 userhost *@*;
 };
 password "bukancoder";
 flags
 {
 netadmin;
 can_zline;
 can_gzline;
 can_gkline;
 global;
 };
};
  • Hapus code dari baris 253 sampai ke baris 262. Kemudian sesuaikan dengan IP dan port yang digunakan untuk server IRC.
listen         ipkita:6667;
  • Menuju ke baris 314, kemudian hapus baris code dibawah ini :
options {
 /* Note: You should not use autoconnect when linking services */
 autoconnect;
 ssl;
 zip;
 };
  • Di baris 302 sampai 312 sesuaikan setting dengan IRC server kita nantinya.
link service.bukancoder.co
{
 username *;
 hostname IPKITADISINI;
 bind-ip *;
 port 6667;
 hub *;
 password-connect "bukancoder";
 password-receive "bukancoder";
 class servers;
};
  • Menuju ke baris 326 – 327, kemudian edit bari berikut :
ulines {
 service.bukancoder.co;
 stats.bukancoder.co;
};
  • Di baris 734, sesuaikan dengan Server IRC kita.
set {
 network-name "Bukan Coder IRC Server";
 default-server "irc.bukancoder.co";
 services-server "service.bukancoder.co";
 stats-server "stats.bukancoder.co";
 help-channel "#HELP";
 hiddenhost-prefix "rox";
 /* prefix-quit "no"; */

Di baris 749 – 752, isi dengan cloak keys yang sudah kita generate tadi.

cloak-keys {
 "aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
 "and another one";
 "and another one";
  • Ke baris 755, sesuaikan dengan pengaturan Server IRC Kita
 hosts {
 local "locop.bukancoder.co";
 global "ircop.bukancoder.co";
 coadmin "coadmin.bukancoder.co";
 admin "admin.bukancoder.co";
 servicesadmin "csops.bukancoder.co";
 netadmin "netadmin.bukancoder.co";
 host-on-oper-up "no";
  • Di baris 769, atur kline-adress dengan alamat email admin server

Exit kemudian save file unrealircd.conf.

Start UnrealIRCD

./unreal start

Coba akses server Anda melalui mIRC. Jika sukses maka tampilannya akan seperti ini :

Install dan Konfigurasi Anope

Setelah proses installasi dan konfigurasi UnrealIRCD selesai, selanjutnya kita lanjutkan dengan proses installasi Anope. Kembalilah di direktori home. Setelah itu kembali masuk ke direktori file

cd file

Lalu dilanjutkan dengan mendownload Anope :

wget https://github.com/anope/anope/releases/download/2.0.2/anope-2.0.2-source.tar.gz

Setelah itu extract file Anope yang sudah kita download tadi.

tar -xvf anope-2.0.2-source.tar.gz

Konfigurasi Anope

Sebelum melanjutkan installasi dan konfigurasi Anope, kita perlu untuk menginstall cmake. Cmake dibutuhkan Anope untuk menjalankan Config Anope nantinya.

yum install cmake

Masuk ke direktori Anope.

cd anope-2.0.2-source/

Setelah itu lanjutkan untuk konfigurasi Anope.

./Config

Setelah muncul seperti tampilan diatas, tekan saja enter untuk menjalankan config Anope. Setelah proses config selesai, masuk ke dalam direktori build.

cd build

Setelah itu jalankan perintah :

make

Proses ini akan menyita sedikit waktu. Setelah selesai jalankan perintah :

make install

Konfigurasi Anope Services

UnrealIRCD sudah berjalan dengan baik. Selanjutnya kita perlu untuk menghubungkan Anope dengan UnrealIRCD.

cd ~/services/conf/
cp example.conf services.conf

Kemudian edit file services.conf :

nano services.conf

Berikut beberapa baris yang perlu diganti pada file services.conf :

uplink
{
 /*
 * The IP or hostname of the IRC server you wish to connect Services to.
 * Usually, you will want to connect Services over 127.0.0.1 (aka localhost).
 *
 * NOTE: On some shell providers, this will not be an option.
 */
 host = "IP UnrealIRCD"
/*
 * Enable if Services should connect using IPv6.
 */
 ipv6 = no
/*
 * Enable if Services should connect using SSL.
 * You must have an SSL module loaded for this to work.
 */
 ssl = no
/*
 * The port to connect to.
 * The IRCd *MUST* be configured to listen on this port, and to accept
 * server connections.
 *
 * Refer to your IRCd documentation for how this is to be done.
 */
 port = 6667
/*
 * The password to send to the IRC server for authentication.
 * This must match the link block on your IRCd.
 *
 * Refer to your IRCd documentation for more information on link blocks.
 */
 password = "password"
}

Ganti beberapa baris diatas untuk menghubungkan UnrealIRCD dan Anope Services. Setelah itu ganti lagi pada baris berikut ini di file services.conf.

/*
 * [REQUIRED] Server Information
 *
 * This section contains information about the Services server.
 */
serverinfo
{
 /*
 * The hostname that Services will be seen as, it must have no conflicts with any
 * other server names on the rest of your IRC network. Note that it does not have
 * to be an existing hostname, just one that isn't on your network already.
 */
 name = "service.bukancoder.co"
/*
 * The text which should appear as the server's information in /whois and similar
 * queries.
 */
 description = "BukancCoder Services for IRC Networks"
/*
 * The local address that Services will bind to before connecting to the remote
 * server. This may be useful for multihomed hosts. If omitted, Services will let
 * the Operating System choose the local address. This directive is optional.
 *
 * If you don't know what this means or don't need to use it, just leave this
 * directive commented out.
 */
 #localhost = "nowhere."
/*
 * What Server ID to use for this connection?
 * Note: This should *ONLY* be used for TS6/P10 IRCds. Refer to your IRCd documentation
 * to see if this is needed.
 */
 #id = "00A"
/*
 * The filename containing the Services process ID. The path is relative to the
 * services root directory.
 */
 pid = "data/services.pid"
/*
 * The filename containing the Message of the Day. The path is relative to the
 * services root directory.
 */
 motd = "conf/services.motd"
}

Setelah itu ganti module menjadi unreal.

module
{
 name = "unreal"
Ganti network name

/*
 * This is the name of the network that Services will be running on.
 */
 networkname = "BukanCoder IRC Network"

Setelah selesai mengganti beberapa baris serivices.conf, simpan kemudian tutup.

Menjalankan Anope Services

cd ~/services/bin/
./anoperc start

Output nya akan seperti ini nantinya :

Starting Anope
Anope 2.0.2, build #2, compiled 12:22:26 November 29 2015
Using configuration file conf/services.conf
Attempting to connect to uplink #1 127.0.0.1 (127.0.0.1), port 6667
Successfully connected to uplink #1 127.0.0.1:6667
Successfully linked, launching into background...

Jika tampilan yang muncul seperti diatas, berarti Anope dan UnrealIRCD telah terhubung dengan baik. Kembali ke IRC kemudian coba oper sebagai staff.

/oper staff password

Setelah itu rehash UnrealIRCD :

/rehash

Sekarang server IRC yang kita buat sudah dapat digunakan dan dilengkapi oleh services yang dapat mendukung jalannya server IRC kita dengan baik. Sekian Tutorial Install dan Konfigurasi UnrealIRCD & Anope Services di CentOS 6. Jangan lupa mampir ke irc.bukancoder.co channel #BukanCoder

Sekian dari saya. Semoga bermanfaat.

Powered byGatsbyGitHubAWS Amplify
FacebookInstagramYouTubeTwitterInstagramGitHubTelegram