DOKUMEN NEGARA 1
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.
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
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.
# 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
Name: sekolah.sch.id
Address: 192.168.20.17
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>
│ │
│ │
└─────────────────────────────────────────────────────────────────────────┘
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>
# 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 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> │
│ │
└───────────────────────────────────────────────────────────────────────────┘ │