Anda di halaman 1dari 9

DOKUMEN NEGARA Paket

PENYELESAIAN SOAL UJI KOMPETENSI KEAHLIAN


TAHUN PELAJARAN 2018/2019
OLEH WALID UMAR, S.SI (walidumar@gmail.com)

SOAL PRAKTIK KEJURUAN

Satuan Pendidikan : Sekolah Menengah Kejuruan


Kompetensi Keahlian : Teknik Komputer dan Jaringan
Kode : 2143
Alokasi Waktu : 8 Jam
Bentuk Soal : Penugasan Perorangan
Judul Tugas : Instalasi, Konfigurasi dan Routing Perangkat
jaringan Komputer

SOAL/TUGAS

Judul Tugas :
Instalasi, Konfigurasi dan Routing Perangkat jaringan Komputer Skenario
Dalam kegiatan uji kompetensi ini anda bertindak sebagai System Administrator, Anda
diminta untuk merancang bangun dan mengkonfigurasi sebuah PC Server yang
berfungsi sebagai Gateway Internet, DHCP, DNS, Web, Mail, Web Mail, SSH, NTP,
Proxy dan Monitoring (Cacti) Server.

Dengan opsi konfigurasi sebagai berikut :

Konfigurasi Server :
1. IP Internet = Sesuai dengan Network yang diberikan ISP
2. IP LAN = 192.168.20.17/29
3. Gateway = Sesuai dengan Network yang diberikan ISP
4. Sistem Operasi = Linux
# nano /etc/network/interfaces
auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.20.17
netmask 255.255.255.248
network 192.168.20.16
# /etc/init.d/networking restart

# nano /etc/apt/sources.list
deb http://192.168.xx.xxx/debian jessie main
deb-src http://192.168.xx.xxx/debian jessie main
# apt-get update

Konfigurasi Client :
1. IP LAN = DHCP Client
2. Sistem Operasi = Windows / Linux

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-1/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)
Konfigurasi DHCP Server
1. IP Pool = maksimal rentang IP
2. Lease Time = 6 Jam
3. Gateway = 192.168.20.17
4. DNS = 192.168.20.17

# apt-get install -y isc-dhcp-server


# nano /etc/dhcp/dhcpd.conf
subnet 192.168.20.16 netmask 255.255.255.248 {
range 192.168.20.18 192.168.20.22;
option domain-name-servers 192.168.20.17;
option domain-name "sekolah.sch.id";
option routers 192.168.20.17;
option broadcast-address 192.168.20.23;
default-lease-time 21600;
max-lease-time 21600;
}
# nano /etc/default/isc-dhcp-server
INTERFACE=”eth1”
# /etc/init.d/isc-dhcp-server restart

Konfigurasi DNS Server


1. Domain = sekolah.sch.id
2. Sub Domain = www → Untuk halaman website utama
mail → untuk web mail server

# apt-get install -y bind9


# cd /etc/bind
# nano named.conf.local
zone "sekolah.sch.id" {
type master;
file "/etc/bind/db.sekolah";
};

zone "20.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
# cp db.local db.sekolah
# cp db.127 db.192
# nano db.192
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sekolah.sch.id. root.sekolah.sch.id. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sekolah.sch.id.
@ IN MX 10 mail.sekolah.sch.id.
17 IN PTR sekolah.sch.id.
17 IN PTR www.sekolah.sch.id.
17 IN PTR mail.sekolah.sch.id.

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-2/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)
# nano db.sekolah
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA sekolah.sch.id. root.sekolah.sch.id. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sekolah.sch.id.
@ IN MX 10 mail.sekolah.sch.id.
@ IN A 192.168.20.17
www IN A 192.168.20.17
mail IN A 192.168.20.17
# nano /etc/bind/named.conf.options
options {
directory "/var/cache/bind";

forwarders {
8.8.8.8;
};

dnssec-validation no;
};
# /etc/init.d/bind9 restart
# nano /etc/resolv.conf
nameserver 192.168.20.17

# nslookup 192.168.20.17
Server: 192.168.20.17
Address: 192.168.20.17#53

17.20.168.192.in-addr.arpa name = sekolah.sch.id.


17.20.168.192.in-addr.arpa name = mail.sekolah.sch.id.
17.20.168.192.in-addr.arpa name = www.sekolah.sch.id.
# nslookup sekolah.sch.id
Server: 192.168.20.17
Address: 192.168.20.17#53

Name: sekolah.sch.id
Address: 192.168.20.17

Konfigurasi WEB Server


1. Server web = apache / nginx
2. Document Root = /home/site/www
3. Modul = PHP
4. Database = MySQL / PostgreSQL / MariaDB
# apt-get install -y apache2 php5 php5-mysql mysql-server
phpmyadmin
Konfigurasi paket
┌───────────────┤ Sedang mengonfigurasi mysql-server-5.5 ├────────────────┐
│ While not mandatory, it is highly recommended that you set a password │
│ for the MySQL administrative "root" user. │
│ │
│ If this field is left blank, the password will not be changed. │
│ │
│ New password for the MySQL "root" user: │
│ │
│ tkj____________________________________________________________________ │
│ │
│ <Ok> │
│ │
└─────────────────────────────────────────────────────────────────────────┘

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-3/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)
Konfigurasi paket
┌────┤ Sedang mengonfigurasi mysql-server-5.5 ├─────┐
│ │
│ │
│ Repeat password for the MySQL "root" user: │
│ │
│ tkj______________________________________________ │
│ │
│ <Ok> │
│ │
└───────────────────────────────────────────────────┘
Konfigurasi paket
┌───────────────────┤ Sedang mengonfigurasi phpmyadmin ├────────────────────┐
│ Please choose the web server that should be automatically configured to │
│ run phpMyAdmin. │
│ │
│ Web server to reconfigure automatically: │
│ │
│ [*] apache2 │
│ [ ] lighttpd │
│ │
│ │
│ <Ok> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌───────────────────┤ Sedang mengonfigurasi phpmyadmin ├────────────────────┐
│ │
│ The phpmyadmin package must have a database installed and configured │
│ before it can be used. This can be optionally handled with │
│ dbconfig-common. │
│ │
│ If you are an advanced database administrator and know that you want to │
│ perform this configuration manually, or if your database has already │
│ been installed and configured, you should refuse this option. Details │
│ on what needs to be done should most likely be provided in │
│ /usr/share/doc/phpmyadmin. │
│ │
│ Otherwise, you should probably choose this option. │
│ │
│ Configure database for phpmyadmin with dbconfig-common? │
│ │
│ <Ya> <Tidak> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌──────────────────┤ Sedang mengonfigurasi phpmyadmin ├───────────────────┐
│ Please provide the password for the administrative account with which │
│ this package should create its MySQL database and user. │
│ │
│ Password of the database's administrative user: │
│ │
│ tkj____________________________________________________________________ │
│ │
│ <Ok> <Batal> │
│ │
└─────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌───────────────────┤ Sedang mengonfigurasi phpmyadmin ├───────────────────┐
│ Please provide a password for phpmyadmin to register with the database │
│ server. If left blank, a random password will be generated. │
│ │
│ MySQL application password for phpmyadmin: │
│ │
│ tkj_____________________________________________________________________ │
│ │
│ <Ok> <Batal> │
│ │
└──────────────────────────────────────────────────────────────────────────┘

# mkdir -p /home/site/www
# nano /home/site/www/index.html
<html>
<head><title>Selamat Datang di WebServer smknegeri4-tkj</title>
<body>
<h1>Welcome to homepage – SMK Negeri 4 Gorontalo</h1>
<h2>by Nama Siswa – Kelas XII TKJ
</body>
</html>

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-4/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)
# nano /home/site/www/info.php
<?php
phpinfo();
?>
# nano /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerName sekolah.sch.id
ServerAdmin admin@sekolah.sch.id
DocumentRoot /home/site/www
</VirtualHost>
# nano /etc/apache2/apache2.conf
<Directory /home/site/www>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
# /etc/init.d/apache2 restart

Konfigurasi MAIL Server


1. Server Mail = postfix, courier, zimbra
2. User = user1 s.d. user4
# apt-get install -y postfix courier-pop courier-imap
squirrelmail
Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ │
│ Silahkan pilih tipe konfigurasi server mail yang sesuai kebutuhan Anda. │
│ │
│ Tanpa konfigurasi: │
│ Harusnya dipilih agar konfigurasi saat ini tak berubah. │
│ Situs internet: │
│ Surel dikirim dan diterima langsung melalui SMTP. │
│ Internet dengan smarthost: │
│ Email diterima langsung melalui SMTP atau dengan menjalankan utilitas │
│ seperti fetchmail. Surel keluar terkirim dengan menggunakan smarthost. │
│ Sistem satelit: │
│ Sebuah surel terkirim ke mesin lain, disebut sebuah 'smarthost', untuk │
│ pengiriman. │
│ Hanya lokal: │
│ Surel yang terkirim hanya untuk pengguna lokal. Tanpa jaringan. │
│ │
│ <Ok> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌─────┤ Postfix Configuration ├──────┐
│ Tipe umum konfigurasi email: │
│ │
│ Tanpa konfigurasi │
│ Situs Internet │
│ Internet dengan smarthost │
│ Sistem satelit │
│ Hanya lokal │
│ │
│ │
│ <Ok> <Batal> │
│ │
└────────────────────────────────────┘

Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ "mail name" adalah nama domain yang digunakan untuk "quality" _ALL_ │
│ alamat mail tanpa nama domain. Ini menyertakan mail ke dan dari <root>: │
│ tolong jangan buat mesin Anda mengirim mail ke luar dari │
│ root@example.org kecuali root@example.org mengatakan demikian. │
│ │
│ Nama ini juga akan digunakan oleh program lain. Seharusnya tunggal, nama │
│ domain yang memenuhi syarat (FQDN). │
│ │
│ Nah, jika alamat surel pada host lokal adalah foo@example.org, nilai │
│ yang benar untuk pilihan ini seharusnya example.org. │
│ │
│ Nama mail sistem: │
│ │
│ sekolah.sch.id___________________________________________________________ │
│ │
│ <Ok> <Batal> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-5/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)
Konfigurasi paket
┌──────────────────┤ Sedang mengonfigurasi courier-base ├───────────────────┐
│ │
│ Courier uses several configuration files in /etc/courier. Some of these │
│ files can be replaced by a subdirectory whose contents are concatenated │
│ and treated as a single, consolidated, configuration file. │
│ │
│ The web-based administration provided by the courier-webadmin package │
│ relies on configuration directories instead of configuration files. If │
│ you agree, any directories needed for the web-based administration tool │
│ will be created unless there is already a plain file in place. │
│ │
│ Create directories for web-based administration? │
│ │
│ <Ya> <Tidak> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

# maildirmake /etc/skel/Maildir
# nano /etc/postfix/main.cf
home_mailbox = Maildir/
# dpkg-reconfigure postfix
Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ │
│ Silahkan pilih tipe konfigurasi server mail yang sesuai kebutuhan Anda. │
│ │
│ Tanpa konfigurasi: │
│ Harusnya dipilih agar konfigurasi saat ini tak berubah. │
│ Situs internet: │
│ Surel dikirim dan diterima langsung melalui SMTP. │
│ Internet dengan smarthost: │
│ Email diterima langsung melalui SMTP atau dengan menjalankan utilitas │
│ seperti fetchmail. Surel keluar terkirim dengan menggunakan smarthost. │
│ Sistem satelit: │
│ Sebuah surel terkirim ke mesin lain, disebut sebuah 'smarthost', untuk │
│ pengiriman. │
│ Hanya lokal: │
│ Surel yang terkirim hanya untuk pengguna lokal. Tanpa jaringan. │
│ │
│ <Ok> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ "mail name" adalah nama domain yang digunakan untuk "quality" _ALL_ │
│ alamat mail tanpa nama domain. Ini menyertakan mail ke dan dari <root>: │
│ tolong jangan buat mesin Anda mengirim mail ke luar dari │
│ root@example.org kecuali root@example.org mengatakan demikian. │
│ │
│ Nama ini juga akan digunakan oleh program lain. Seharusnya tunggal, nama │
│ domain yang memenuhi syarat (FQDN). │
│ │
│ Nah, jika alamat surel pada host lokal adalah foo@example.org, nilai │
│ yang benar untuk pilihan ini seharusnya example.org. │
│ │
│ Nama mail sistem: │
│ │
│ sekolah.sch.id___________________________________________________________ │
│ │
│ <Ok> <Batal> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ Surel untuk 'postmaster', 'root', dan akun sistem lain perlu di │
│ dialihkan ke aku pengguna administrator sistem aktual. │
│ │
│ Jika nilai ini dibiarkan kosong, surel akan disimpan di │
│ /var/mail/nobody, sangat tidak disarankan. │
│ │
│ Surel tidak terkirim ke agen pengiriman eksternal sebagai root. │
│ │
│ Jika Anda telah memiliki berkas /etc/aliases dan tidak memiliki masukan │
│ untuk root, maka seharusnya Anda menambahkan masukan ini. Tinggalkan │
│ kosong untuk tidak menambahkan apapun. │
│ │
│ Penerima surel root dan postmaster: │
│ │
│ _________________________________________________________________________ │
│ │
│ <Ok> <Batal> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-6/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)
Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ Silahkan beri daftar dipisahkan dengan koma dari domain yang tujuan │
│ akhirnya dipertimbangkan pada mesin itu sendiri. Jika ini merupakan mail │
│ domain gateway, mungkin Anda ingin menyertakan top-level domainnya. │
│ │
│ Tujuan lain untuk menerima surel (kosongkan bila tak ada): │
│ │
│ sekolah.sch.id, ujian-xiitkj2, localhost.localdomain, localhost__________ │
│ │
│ <Ok> <Batal> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ │
│ Jika sinkronisasi pembaruan dipaksakan, maka surel diproses lebih │
│ lambat. Jika tidak, maka kecil kemungkinan kehilangan perubahan beberapa │
│ surel jika sistem crash pada saat yang tidak tepat, dan anda tidak │
│ menggunakan sistem berkas journal (seperti ext3). │
│ │
│ Paksa sinkronisasi pembaruan pada antrean surel? │
│ │
│ <Ya> <Tidak> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌────┤ Postfix Configuration ├─────┐
│ Jaringan lokal: │
│ │
│ 0.0.0.0/0 │
│ │
│ <Ok> <Batal> │
│ │
└──────────────────────────────────┘

Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ │
│ Silahkan pilih apakah Anda ingin menggunakan procmail untuk mengirimkan │
│ surel lokal. │
│ │
│ Catatan jika Anda menggunakan procmail untuk mengirimkan surel │
│ system-wide, Anda harus mengatur alias yang meneruskan surel untuk root │
│ ke pengguna nyata. │
│ │
│ Gunakan procmail untuk pengiriman lokal? │
│ │
│ <Ya> <Tidak> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ Silahkan tentukan batasan yang berkas harus ditempatkan pada mailbox │
│ Postfix untuk mencegal kerusakan jalannya perangkat lunak. Nilai nol (0) │
│ berarti tak terbatas. Bawaan hulu adalah 51200000. │
│ │
│ Batasan ukuran mailbox (bytes): │
│ │
│ 0________________________________________________________________________ │
│ │
│ <Ok> <Batal> │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Konfigurasi paket
┌────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ Silahkan pilih karakter yang akan digunakan untuk mendefinisi ekstensi │
│ alamat lokal. │
│ │
│ Agar tidak menggunakan ekstensi alamat, biarkan kosong. │
│ │
│ Karakter ekstensi alamat lokal: │
│ │
│ +_______________________________________________________________________ │
│ │
│ <Ok> <Batal> │
│ │
└──────────────────────────────────────────────────────────────────────────┘

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-7/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)
Konfigurasi paket
┌────────────────────────┤ Postfix Configuration ├─────────────────────────┐
│ Secara default, protokol Internet manapun yang diaktifkan pada waktu │
│ instalasi sistem akan digunakan. Anda boleh mengesampingkan defaultnya │
│ dengan yang dibawah ini: │
│ │
│ all : gunakan keduanya alamat IPv4 dan IPv6; │
│ ipv6: hanya dengarkan pada alamat IPv6; │
│ ipv4: hanya dengarkan pada alamat IPv4. │
│ │
│ Protokol internet yang digunakan: │
│ │
│ semua │
│ ipv6 │
│ ipv4 │
│ │
│ │
│ <Ok> <Batal> │
│ │
└──────────────────────────────────────────────────────────────────────────┘

# nano /etc/squirrelmail/apache.conf
<VirtualHost *:80>
DocumentRoot /usr/share/squirrelmail
ServerName mail.sekolah.sch.id
</VirtualHost>
# nano /etc/apache2/apache2.conf
Include /etc/squirrelmail/apache.conf
# /etc/init.d/apache2 restart
# adduser user1
………………………………………
# adduser user4
# tail /etc/passwd
user1:x:1002:1002:,,,:/home/user1:/bin/bash
user2:x:1003:1003:,,,:/home/user2:/bin/bash
user3:x:1004:1004:,,,:/home/user3:/bin/bash
user4:x:1005:1005:,,,:/home/user4:/bin/bash

Konfigurasi SSH Server


1. Disable root login= Yes
2. Port = 2222
# apt-get install -y ssh
# nano /etc/ssh/sshd_config
# What ports, IPs and protocols we listen for
Port 2222
# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
# /etc/init.d/ssh restart

Konfigurasi NTP Server


# apt-get install ntp ntpdate
# nano /etc/ntp.conf

#server 0.debian.pool.ntp.org iburst


#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst

server 127.127.1.0
fudge 127.127.1.0 stratum 1
restrict 192.168.20.16 255.255.255.248 nomodify notrap

# date --set 2019-08-07


# date --set 10:00:00
# /etc/init.d/ntp restart

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-8/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)
Konfigurasi PROXY Server

# apt-get install -y squid3


# nano /etc/squid3/squid.conf
http_port 3128 transparent
cache_mgr admin@sekolah.sch.id
cache_dir ufs /var/spool/squid3 100 16 256
cache_mem 256 MB
# http_access deny all
acl local src 192.168.20.16/29
acl blokir dstdomain "/etc/squid3/domain"
http_access deny blokir
http_access allow local
# nano /etc/squid3/domain
smkn4gorontalo.sch.id
www.smkn4gorontalo.sch.id
bsnp-indonesia.org
www.bsnp-indonesia.org
# /etc/init.d/squid3 restart
# squid3 -z

# nano /etc/rc.local
iptables -t nat -A PREROUTING -p tcp -i eth1 -s
192.168.20.16/29 --dport 80 -j REDIRECT --to-port 3128

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


exit 0
# nano /etc/sysctl.conf
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
# reboot

1. Port = 3128
2. Transparent = Yes
3. Blocking Site = Minimal 2 website
4. Cache manager = admin@sekolah.sch.id

Konfigurasi CACTI Server


3. Monitoring Device meliputi :
a. CPU
b. RAM
c. HDD
d. Ethernet
# apt-get install cacti snmp snmpd
# nano /etc/snmp/snmpd.conf
AgentAddress udp:161
# /etc/init.d/snmpd restart

III. GAMBAR KERJA

eth1 eth0
INTERNET

PC Client Server / Router

“SELAMAT & SUKSES”

2143-P1-18/19 Hak Cipta pada Kemdikbud SPK-9/9


Penyelesaian Soal UKK by Walid Umar, S.SI (walidumar@gmail.com)

Anda mungkin juga menyukai