1. SETTING NETWORKCara melihat Interfaceroot@debian:~# ifconfig
Cara konfigurasi networkroot@debian:~# nano /etc/network/interfaces
# The local network interfaceauto eth0iface eth0 inet staticaddress 192.168.10.1netmask 255.255.255.0network 192.168.10.0gateway 192.168.10.254broadcast 192.168.10.255dns-nameservers 192.168.10.1auto eth0:0iface eth0:0 inet staticaddress 192.168.10.2netmask 255.255.255.0auto eth0:1iface eth0:1 inet staticaddress 192.168.10.3netmask 255.255.255.0# Konfigurai skrip menjadi seperti ini, kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)root@debian:~# nano /etc/resolv.confsearch smkmuh2.sch.idnameserver 192.168.10.1Tambah skrip diatas ini, kemudian restart networknyaroot@debian:~# /etc/init.d/networking restart2. DNS SERVER· Install Bind9root@debian:~# apt-get install bind9· Setting file bind9root@debian:~# nano /etc/bind/named.confzone “smkmuh2.sch.id”{type master:file “db.smk”;};zone “192.in-addr.arpa”{type master;file “db.1”;};kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)· Setting file forward dari DNSroot@debian:~# cd /etc/bindroot@debian:~# cp db.local /var/cache/bind/db.smkroot@debian:~# nano /var/cache/bind/db.smk$TTL 604800@ IN A smkmuh2.sch.id. root.smkmuh2.sch.id (2 ; Serial604800 ; Refresh86400 ; Retry2419200 ; Expire604800 ; Negative Cache TTL;@ IN NS smkmuh2.sch.id.@ IN A 192.168.10.1www IN A 192.168.10.2mail IN A 192.168.10.3kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)root@debian:~# cp db.127 /var/cache/bind/db.192root@debian:~# nano /var/cache/bind/db.192$TTL 604800@ IN A smkmuh2.sch.id. root.smkmuh2.sch.id. (1 ; Serial604800 ; Refresh86400 ; Retry2419200 ; Expire604800 ; Negative Cache TTL;@ IN NS smkmuh2.sch.id.1.10.168 IN PTR smkmuh2.sch.id.2.10.168 IN PTR www.smkmuh2.sch.id.3.10.168 IN PTR mail.smkmuh2.sch.id.kemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar) lalu restart bind9root@debian:~# /etc/init.d/bind9 restartroot@debian:~# nslookup smkmuh2.sch.idroot@debian:~# nslookup 192.168.10.1root@debian:~# nslookup www.smkmuh2.sch.idroot@debian:~# nslookup 192.168.10.2root@debian:~# nslookup mail.smkmuh2.sch.idroot@debian:~# nslookup 192.168.10.33. WEB SERVER·Install Paket Web serverroot@debian:~# apt-get install apache2 links· Setting Virtual Hostroot@debian:~# cd /etc/apache2/sites-enabledroot@debian:~# cp 000-default wwwroot@debian:~# nano www<VirtualHost 192.168.10.2:80>ServerAdmin webmaster@localhostServerName www.smkmuh2.sch.idkemudian tekan Ctrl + O, enter (untuk menyimpan) dan tekan Ctrl + X (untuk keluar)4. WEBMAIL SERVER· Install paket webmail serverdebian-server:~# apt-get install squirrelmail (masukan dvd 1 - 3)debian-server:~# nano /etc/apache2/apache2.confInclude “/etc/squirrelmail/apache.conf” #tambahkan di baris paling bawahdebian-server:#nano /etc/squirrelmail/apache.conf# users will prefer a simple URL like http://webmail.example.com<VirtualHost 192.168.10.3:80>DocumentRoot /usr/share/squirrelmailServerName mail.smkmuh2.sch.id</VirtualHost>#. . .5. MAIL SERVER· Install paket mail serverroot@debian:#apt-get install postfix courier-imap courier-pop· Membuat directory mail serverdebian-server:~# maildirmake /etc/skel/MaildirMenambahkan user (buat 2 user)debian-server:~# adduser ferry1Adding user `nama_peserta' ...Adding new group `debian' (1007) ...Adding new user `debian' (1007)with group `debian' ...Creating home directory `/home/' tkj...Copying files from `/etc/skel' ...Enter new UNIX password: ****Changing the user information for tkjEnter the new value, or press ENTER for the defaultFull Name []:Room Number []:Work Phone []:Home Phone []:Other []:Is the information correct? [Y/n] y· Konfigurasi Postfixdebian-server:~# nano /etc/postfix/main.cfmyhostname = smkmuh2.sch.id
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = smkmuh2.sch.id, smkmuh2, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 195.168.19.3/24
#mailbox_command = procmail -a “$EXTENSION”
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = allhome_mailbox = Maildir/ #Tambahkan pada baris paling bawahSelanjutnya, tinggal tambahkan sedikit konfigurasi pada postfix melalui dpkg. Ikuti langkahnya seperti dibawah ini.debian-server:~# dpkg-reconfigure postfixGeneral Type of Mail Configuration : Internet SiteSystem Mail Name : smkmuh2.sch.idRoot and postmaster mail recipient : (biarkan kosong)Other destination to accept... : (pilih ok)Force synchronous updates... : NoLocal Networks : (tambahkan IP address squirrelmail)Use Procmail for local delivery : NoMailbox size limit (bytes) : 0Local address extension character : +Internet protocols to use : ipv4debian-server:~# /etc/init.d/postfix restartdebian-server:~# /etc/init.d/courier-imap restartdebian-server:~# /etc/init.d/courier-pop restartdebian-server:~# /etc/init.d/apache2 restartSelanjutnya, tinggal mengecek apakah konfigurasi kita berhasil· Cek Web Serverdebian-server:~# links www.smkmuh2.sch.iddebian-server:~# links 192.168.10.2· Cek Mail Serverdebian-server:~# links mail.smkmuh2.sch.iddebian-server:~# links 192.168.10.3
Sabtu, 9 Februari 2013
Konfigurasi Network, DNS, Web Server, & Mail Server
Langgan:
Catat Ulasan (Atom)
Tiada ulasan:
Catat Ulasan