Minggu, 10 Februari 2013
LANGKAH - LANGKAH KONFIGURASI DEBIAN 6.10
1. Konfigurasi TCP/IP
1.1. Mengaktifkan Ethernet
debian-server:/home/smkmuh2# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:58:cf:68
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe58:cf68/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1610 errors:0 dropped:0 overruns:0 frame:0
TX packets:1419 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:189305 (184.8 KiB) TX bytes:198940 (194.2 KiB)
Interrupt:18 Base address:0x1080
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3036 (2.9 KiB) TX bytes:3036 (2.9 KiB)
1.2. Ip Address Alias
debian-server:/home/smkmuh2# nano /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The local network interface
auto eth0
iface eth0 inet static
address 192.168.14.1
netmask 255.255.255.224
network 192.168.14.0
broadcast 192.168.14.31
gateway 192.168.14.1
dns-nameservers 192.168.14.1
auto eth0:0
iface eth0:0 inet static
address 192.168.14.2
netmask 255.255.255.224
auto eth0:1
iface eth0:1 inet static
address 192.168.14.3
netmask 255.255.255.224
(klik Ctrl + O, untuk menyimpan klik Ctrl + X, untuk keluar)
debian-server:/home/smkmuh2# service networking restart
1.3. Menambahkan DNS
debian-server:/home/smkmuh2# nano /etc/resolv.conf
search smkmuh2.sch.id
nameserver 192.168.14.1
(klik Ctrl + O, untuk menyimpan klik Ctrl + X, untuk keluar)
2. DNS Server
2.1. Installasi
debian-server:/home/smkmuh2# apt-get install bind9
2.2. Membuat Zone Domain
#. . .
zone "smkmuh2.sch.id" { //Zone Domain anda
type master;
file "db.smkmuh2"; //lokasi file FORWARD, default di /var/cache/bind/
};
zone "192.in-addr.arpa" { //1 blok ip paling depan
type master;
file "db.192"; //lokasi file REVERSE, default di /var/cache/bind/
};
2.3. File Forward
debian-server:/home/smkmuh2# cd /etc/bind/
debian-server:/etc/bind# cp db.local /var/cache/bind/db.smkmuh2
debian-server:/etc/bind# nano /var/cache/bind/db.smkmuh2
$TTL 604800
@ IN SOA smkmuh2.sch.id. root.smkmuh2.sch.id. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS smkmuh2.sch.id.
@ IN A 192.168.14.1
www IN A 192.168.14.2
mail IN A 192.168.14.3
(klik Ctrl + O, untuk menyimpan klik Ctrl + X, untuk keluar)
2.4. File Reverse
debian-server:/etc/bind# cp db.127 /var/cache/bind/db.192
debian-server:/etc/bind# vim /var/cache/bind/db.192
$TTL 604800
@ IN SOA smkmuh2.sch.id. root.smkmuh2.sch.id. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS smkmuh2.sch.id.
1.14.168 IN PTR smkmuh2.sch.id.
2.14.168 IN PTR www.smkmuh2.sch.id.
3.14.168 IN PTR mail.smkmuh2.sch.id.
(klik Ctrl + O, untuk menyimpan klik Ctrl + X, untuk keluar)
debian-server:/etc/bind# service bind9 restart
2.5. Pengujian
Server : 192.168.14.1
Address : 192.168.14.1#53
1.10.168.192.in-addr.arpa name = smkmuh2.sch.id.
debian-server:/etc/bind# nslookup smkmuh2.sch.id.
Server : 192.168.14.1
Address : 192.168.14.1#53
Name : smkmuh2.sch.id.
debian-server:/etc/bind# nslookup 192.168.14.2
Server : 192.168.14.2
Address : 192.168.14.2#53
1.10.168.192.in-addr.arpa name = www.smkmuh2.sch.id
debian-server:/etc/bind# nslookup www.smkmuh2.sch.id
Server : 192.168.14.2
Address : 192.168.14.2#53
Name : www.smkmuh2.sch.id
debian-server:/etc/bind# nslookup 192.168.14.3
Server : 192.168.14.3
Address : 192.168.14.3#53
1.10.168.192.in-addr.arpa name = mail.smkmuh2.sch.id.
debian-server:/etc/bind# nslookup mail.smkmuh2.sch.id.
Server : 192.168.14.3
Address : 192.168.14.3#53
Name : smkmuh2.sch.id
3. MAIL Server
3.1. Installasi
debian-server:~# apt-get install postfix courier-imap courier-pop
(masukan dvd 1, dan 2.)
3.2. Konfigurasi
debian-server:~# maildirmake /etc/skel/Maildir
debian-server:~# adduser Lalas1
Adding user `Lalas1' ...
Adding new group `Lalas1' (1007) ...
Adding new user `Lalas1' (1007) with group `Lalas1' ...
Creating home directory `/home/Lalas1' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: ****
Changing the user information for Lalas1
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
Tambahkan satu user lagi, agar proses berkirim eMail bisa dilaksanakan.
debian-server:~# adduser Lalas2
Adding user `Lalas2' ...
Adding new group `Lalas2' (1008) ...
Adding new user `Lalas2' (1008) with group `Lalas2' ...
Creating home directory `/home/Lalas2' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
3.3. Konfigurasi Postfix
debian-server:~# nano /etc/postfix/main.cf
home_mailbox = Maildir/ #tambahkan di baris paling bawah
(klik Ctrl + O, untuk menyimpan klik Ctrl + X, untuk keluar)
General Type of Mail Configuration : Internet Site
System Mail Name : smkmuh2.sch.id
Root and postmaster mail recipient : (leave it blank, bro)
Other destination to accept... : (leave it as it was, just OK)
Force synchronous updates... : No
Local Networks : 0.0.0.0/0 192.168.14.1
Use Procmail for local delivery : No
Mailbox size limit (bytes) : 0
Local address extension character : +
Internet protocols to use : ipv4
4. WebMail
4.1. Squirrelmail
debian-server:~# apt-get install squirrelmail
debian-server:~# nano /etc/apache2/apache2.conf
Include “/etc/squirrelmail/apache.conf” #tambahkan di baris paling bawah
(klik Ctrl + O, untuk menyimpan klik Ctrl + X, untuk keluar)
debian-server:~# nano /etc/squirrelmail/apache.conf
Alias /squirrelmail /usr/share/squirrelmail
<Directory /usr/share/squirrelmail>
Options Indexes FollowSymLinks
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Directory>
# users will prefer a simple URL like http://webmail.example.com
<VirtualHost 192.168.14.3:80>
DocumentRoot /usr/share/squirrelmail #lokasi default web squirrelmail
ServerName mail.smkmuh2.sch.id
</VirtualHost>
#. . .
(klik Ctrl + O, untuk menyimpan klik Ctrl + X, untuk keluar)
4.2. Konfigurasi Virtual Host
debian-server:/etc/apache2/sites-available# nano wwww
NameVirtualHost 192.168.14.2:80
<VirtualHost 192.168.14.2:80>
ServerAdmin webmaster@smkmuh2.sch.id
ServerName www.smkmuh2.sch.id
DocumentRoot /var/www/mail/
#. . .
(klik Ctrl + O, untuk menyimpan klik Ctrl + X, untuk keluar)
5. LINKS
5.1. Installasi
5.2.
Konfigurasi
debian-server:~# links mail.smkmuh2.sch.id
0 Comments:
Subscribe to:
Posting Komentar (Atom)