Debian Paket 3 UKK 2012
-
Upload
amroe-oemar -
Category
Documents
-
view
152 -
download
3
description
Transcript of Debian Paket 3 UKK 2012
Pembahasan Soal Uji Kompetensi Paket 3 Pembahasan berikut menggunakan Debian Server 5 Lenny (server) dan Windows 7 (client) khusus untuk persiapan Uji Kompetensi TKJ.
2012
Amroe SMK Tunas Pelita Binjai
3/5/2012
H a l | 1
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Tutorial berikut ini dibatasi hanya untuk membahas soal Uji Kompetensi 2011-2012 | Paket
3 yang dilaksanakan pada tahun 2012 ini. Pada kesempatan ini pada tutorial ini tidak akan
dibahas langkah-langkah Instalasi Debian Server 5 (Lenny) karena akan difokuskan pada
cara mengerjakan tugas dari soal saja.
Adapun tugas yang harus dikerjakan adalah sebagai berikut :
1. Membangun DNS dan Web Mail Server Opsi konfigurasi :
IP Address
1. ns.sekolah.sch.id = 202.100.4.65/27 2. www.sekolah.sch.id = 200.100.4.66/27 3. mail.sekolah.sch.id = 200.100.4.67/27 4. PC Client = 200.100.4.69/27
DNS Server
1. Sistem Operasi = OS Linux 2. Domain = sekolah.sch.id 3. Email Admin = [email protected] 4. Sub Domain = www.sekolah.sch.id
mail.sekolah.sch.id
Mail Server
1. Sistem Operasi = OS Linux 2. Port = 25
Webmail Server
1. Virtual Alias = mail.sekolah.sch.id 2. Metode = courier imap dan courier pop
H a l | 2
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Soal :
Implementasikan topologi diatas untuk melakukan pengujian fungsi Mail Server,
Webmail Server dan DNS Server, dengan ketentuan :
a. Membuat perencanaan sesuai dengan topologi jaringan yang disediakan b. Melakukan Perakitan dan Instalasi PC Client c. Melakukan konfigurasi DNS Server, Mail Server dan Web Mail Server d. Melakukan instalasi implementasi sesuai topologi e. Melakukan pengujian fungsi jaringan (sistem koneksi) dan pengujian aplikasi
server.
JAWABAN :
1. IP Address :
Untuk IP Address ini harus dilakukan pada Interface dan Binds (DNS Server). Sebagai
langkah awal kita setting Interface terlebih dahulu dengan mempersiapkan IP sesuai
permintaan soal.
a. Login :
user@Server:~$whoami
user
user@Server#su
Password: (masukkan password root)
Server:/home/user#whoami
root
b. Setting Ethernet :
Server:/home/user#ifconfig
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)
DNS Server
Mail Server
Webmail server
PC Client switch
H a l | 3
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Sebelumnya harus kita hitung terlebih dahulu IP Address, Netmask, Network,
Broadcast dan Host sebagai berikut :
Server:/home/user# apt-cdrom add
Server:/home/user# apt-get install ipcalc
Server:/home/user# ipcalc 202.100.4.65/27
Address: 202.100.4.65 11001010.01100100.00000100.010 00001
Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000
Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111
=>
Network: 202.100.4.64/27 11001010.01100100.00000100.010 00000
HostMin: 202.100.4.65 11001010.01100100.00000100.010 00001
HostMax: 202.100.4.94 11001010.01100100.00000100.010 11110
Broadcast: 202.100.4.95 11001010.01100100.00000100.010 11111
Hosts/Net: 30 Class C
Server:/home/user# ipcalc 200.100.4.66/27
Address: 200.100.4.66 11001000.01100100.00000100.010 00010
Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000
Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111
=>
Network: 200.100.4.64/27 11001000.01100100.00000100.010 00000
HostMin: 200.100.4.65 11001000.01100100.00000100.010 00001
HostMax: 200.100.4.94 11001000.01100100.00000100.010 11110
Broadcast: 200.100.4.95 11001000.01100100.00000100.010 11111
Hosts/Net: 30 Class C
Setelah itu kita isikan setting interface Ethernet sesuai dengan perhitungan diatas
untuk kedua interface eth0 dan eth1.
Server:/home/user# nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 202.100.4.65
netmask 255.255.255.224
network 202.100.4.64
broadcast 202.100.4.95
H a l | 4
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
auto eth1
iface eth1 inet static
address 200.100.4.66
netmask 255.255.255.224
network 200.100.4.64
auto eth1:0
iface eth1:0 inet static
address 200.100.4.67
netmask 255.255.255.224
Simpan dengan tekan tombol Ctrl+O dan tutup dengan Ctrl+X.
Server:/home/user# /etc/init.d/networking restart
Server:/home/user# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:1a:e1:53
inet addr:202.100.4.65 Bcast:202.100.4.95 Mask:255.255.255.224
inet6 addr: fe80::a00:27ff:fe1a:e153/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1480 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:138555 (135.3 KiB) TX bytes:1740 (1.6 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:8c:52:25
inet addr:200.100.4.66 Bcast:200.100.4.95 Mask:255.255.255.224
inet6 addr: fe80::a00:27ff:fe8c:5225/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3186 errors:0 dropped:0 overruns:0 frame:0
TX packets:869 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:303453 (296.3 KiB) TX bytes:107266 (104.7 KiB)
eth1:0 Link encap:Ethernet HWaddr 08:00:27:8c:52:25
inet addr:200.100.4.67 Bcast:200.100.4.95 Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Penjelasan :
- Eth0 digunakan untuk ns.sekolah.sch.id dengan IP 202.100.4.65
- Eth1 digunakan untuk www.sekolah.sch.id dengan IP 200.100.4.66
- Eth1:0 merupakan virtual IP untuk mail.sekolah.sch.id dengan IP 200.100.4.67
H a l | 5
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
c. Setting PC Client menggunakan IP Manual (contoh menggunakan Windows 7):
Pilih Icon Network pada Taskbar => Klik Open Network and Sharing Center
Klik Local Area Connection
H a l | 6
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Klik Properties
H a l | 7
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Double Klik Internet Protocol Version 4 (TCP/IPv4)
Ketik IP Address, Subnet Mask, Default gateway dan Preferred DNS Server.
Selanjutnya aktifkan Command Prompt dari Start Menu Windows.
H a l | 8
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Hasil Ping ke Server dari Client.
2. DNS Server
Untuk install DNS menggunakan bind :
Server:/home/user# apt-get install bind9
Berikut file-file penting yang akan kita konfigurasi dalam DNS Server;
a. /etc/bind/named.conf b. file forward c. file reverse d. /etc/resolv.conf
Server:/home/user# cd /etc/bind
Server:/etc/bind# nano named.conf
Tambahkan script kode berikut :
#...
zone "sekolah.sch.id" {
type master;
file "/etc/bind/sekolah.db";
};
zone "4.100.200.in-addr.arpa" {
type master;
file "/etc/bind/200.db";
};
Server:/etc/bind# cp db.local sekolah.db
H a l | 9
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Server:/etc/bind# nano sekolah.db
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA sekolah.sch.id. namasiswa.sekolah.sch.id. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sekolah.sch.id.
@ IN A 200.100.4.66
@ IN MX 1 mail.sekolah.sch.id
ns IN A 202.100.4.65
www IN A 200.100.4.66
mail IN A 200.100.4.67
Server:/etc/bind# cp db.127 200.db
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sekolah.sch.id. namasiswa.sekolah.sch.id. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sekolah.sch.id.
66 IN PTR sekolah.sch.id.
Server:/etc/bind# /etc/init.d/bind9 restart
Server:/etc/bind# nslookup sekolah.sch.id
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: sekolah.sch.id
Address: 200.100.4.66
H a l | 10
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Untuk merubah Server menjadi 200.100.4.66 edit file resolve.conf :
Server:/etc/bind# nano /etc/resolv.conf
nameserver 200.100.4.66
Server:/etc/bind# nslookup sekolah.sch.id
Server: 200.100.4.66
Address: 200.100.4.66#53
Name: sekolah.sch.id
Address: 200.100.4.66
Server:/etc/bind# nslookup ns.sekolah.sch.id
Server: 200.100.4.66
Address: 200.100.4.66#53
Name: ns.sekolah.sch.id
Address: 202.100.4.65
3. MAIL Server
Install Postfix dan dependensinya :
Server:/etc/bind# apt-get install postfix courier-imap courier-pop php5-imap
Kemudian akan muncul menu PopUp, dan sesuaikan dengan konfigurasi di bawah ini; a. General Type of Mail Configuration : Internet Site b. System Mail Name : sekolah.sch.id
Buat direktori untuk mailbox user :
Server:/var/lib# cd /etc/skel/
Server:/etc/skel# maildirmake Maildir
Setting main.cf :
Server:/etc/skel# nano /etc/postfix/main.cf
#...
myhostname = Server
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
home_mailbox = Maildir/ #tambahan
mydestination = sekolah.sch.id, localhost #edit
relayhost =
mynetworks = 127.0.0.0/8 200.100.4.64/27 #edit
H a l | 11
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
#mailbox_command = procmail -a "$EXTENSION" #edit
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
Restart service Mail Server :
Server:/etc/skel# /etc/init.d/postfix restart
Server:/etc/skel# /etc/init.d/courier-imap restart
Server:/etc/skel# /etc/init.d/courier-pop restart
Tambahkan 2 buah user untuk uji coba :
Server:/etc/skel# adduser email1
Adding user `email1' ...
Adding new group `email1' (1003) ...
Adding new user `email1' (1003) with group `email1' ...
Creating home directory `/home/email1' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for email1
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]
H a l | 12
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Server:/etc/skel# adduser email2
Adding user `email2' ...
Adding new group `email2' (1004) ...
Adding new user `email2' (1004) with group `email2' ...
Creating home directory `/home/email2' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for email2
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]
Testing Mail Server (Ms. Outlook Client):
Klik Start => All Programs => Microsoft Office => Microsoft Outlook 2010
H a l | 13
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Klik File => Add Account
Isikan sesuai dengan user yang telah ditambahkan, setelah itu Next
H a l | 14
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Jika dapat dideteksi secara otomatis akan muncul dialog seperti diatas.
Setting email Client secara manual.
H a l | 15
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Kotak Inbox jika email Client berhasil disetting.
Ulangi perintah diatas untuk memasukkan email yang berikutnya, sehingga tampilan
akhir menjadi seperti berikut :
Setting akun Inbox [email protected] dan [email protected]
H a l | 16
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Untuk menguji emailnya silahkan kirimkan email dari Email1 ke Email2 atau sebaliknya,
jika sudah dikirim silahkan cek di email penerima.
Hasil ujicoba pengiriman email antar client.
4. Webmail Server
Untuk menggunakan Webmail dibutuhkan Apache (Web Server) dan Squirrelmail
(Webmail).
a. Instalasi Apache
Server:/etc/skel# apt-get install apache2 php5-cli php5-common php5-imap links2
Server:/etc/bind# cd /var/www/
Server:/var/www# nano info.php
<?php
phpinfo();
?>
Untuk mengujinya (Server Debian) :
Server:/var/www# links2 sekolah.sch.id
Server:/var/www# links2 sekolah.sch.id/info.php
H a l | 17
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Client Windows/Linux (Browser Firefox/Opera/Chrome) :
http://www.sekolah.sch.id
http://www.sekolah.sch.id/info.php
H a l | 18
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
b. Instalasi Squirrelmail
Server:~# apt-get install squirrelmail
Server:~# squirrelmail-configure
Command >> 2
Command >> 1
[trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name')))]:
sekolah.sch.id
Command >> A
Command >> 4
[localhost]: sekolah.sch.id
Command >> 8
[other]: courier
Command >> B
Command >> 4
[localhost]: sekolah.sch.id
Command >> S
Command >> Q
Hasil akhir setting squirrelmail
H a l | 19
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Server:~# nano /etc/squirrelmail/apache.conf
Alias /mail /usr/share/squirrelmail # Boleh dirubah sesuai keinginan
#...
# users will prefer a simple URL like http://webmail.example.com
<VirtualHost 200.100.4.67:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.sekolah.sch.id
</VirtualHost>
#...
Server:~# nano /etc/apache2/apache2.conf
#...
Include /etc/squirrelmail/apache.conf
Server:~# /etc/init.d/apache2 restart
--00OO00--
H a l | 20
PEMBAHASAN SOAL UJI KOMPETENSI 2011-2012 | PAKET 3
Uji Webmail Server via browser (Client Windows/Linux) :
http://www.sekolah.sch.id/mail
http://mail.sekolah.sch.id
Demikian, semoga bermanfaat. Untuk informasi lebih lanjut silahkan hubungi
Amroe (087748944555 atau 081370489868)
Wasalam,
M. Amroe Oemar M.
Support Media Tunas Pelita