[go: up one dir, main page]

0% found this document useful (0 votes)
76 views17 pages

Modul Debian & Mikrotik LSP

This document provides instructions for configuring a Debian 8 server including: 1. Installing Debian and configuring the network interface. 2. Installing packages from DVDs 2 and 3. 3. Configuring VLANs and IP addresses. 4. Configuring Bind9 for DNS. 5. Configuring the Squirrelmail webmail server. 6. Configuring the server as a router and firewall. 7. Customizing the web server content. It then provides directions for configuring a Mikrotik router board for the network.

Uploaded by

akun ambo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views17 pages

Modul Debian & Mikrotik LSP

This document provides instructions for configuring a Debian 8 server including: 1. Installing Debian and configuring the network interface. 2. Installing packages from DVDs 2 and 3. 3. Configuring VLANs and IP addresses. 4. Configuring Bind9 for DNS. 5. Configuring the Squirrelmail webmail server. 6. Configuring the server as a router and firewall. 7. Customizing the web server content. It then provides directions for configuring a Mikrotik router board for the network.

Uploaded by

akun ambo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

TUTORIAL KONFIGURASI

SERVER DEBIAN 8

1. INSTALL DEBIAN

Language = English
Country area = Other
Continent region = Asia
Country or area = Indonesia
Country to base = United states
Keymap to use = American english

Buat eth0 terlebih dahulu


Ip address a. eth0 = 192.168.100.137.2 Ip internet
= 255.255.255.0
Gateway = 192.168.137.1
Name server address = 192.168.137.1
Host name = debian
Domain name = nama siswa.sch.id
Root password = 123
Fullname for user = siswa
Password user = 123

Partitioning method = Guided – use entire disk


Partitioning scheme = All files in one partition
Finish partitioning = Enter
Write the changes to disk = yes

Scan another cd or dvd = No


Participate in the survey = No

Install = standart system (buang tanda bintang gunakan space)


Install the grub record = Yes
Insatall grub on a hard disk = /dev/sda
Finish installation = ENTER

2. PENGINSTALAN DVD 2 & 3


root@ranto:~# pico /etc/apt/sources.list (cek dvd yg telah terinstal)

root@ranto:~# apt-cdrom add (pastikan dvd sudah posisi dvd2)


root@ranto:~# apt-cdrom add (pastikan dvd sudah posisi dvd3)

root@ranto:~# pico /etc/apt/sources.list (cek dvd yg telah terinstal kembali)

3. KONVIGURASI VLAN ( Konfigurasi ip address )

root@ranto:~# apt-get install vlan ( masukkan dvd debian part 2 )

root@ranto:~# pico /etc/network/interfaces

# The primary network interface

allow-hotplug eth0
iface eth0 inet static
address 192.168.137.2
netmask 255.255.255.0
gateway 192.168.137.1
dns-nameserver 192.168.137.1

allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.224

pre-up modprobe 8021q


post-up vconfig add eth1 1

allow-hotplug eth1.1
iface eth1.1 inet static
address 192.168.10.2
netmask 255.255.255.224

untuk melakukan penyimpanan konfigurasi CTRL + O lalu Enter dan


CTRL + X untuk keluar dari konfigurasi

root@ranto:~# pico /etc/resolv.conf


isi bagian ini dengan konfigurasi dibawah ini

nameserver 192.168.10.1 (punya server kita)


nameserver 192.168.137.1 (punya internet yang kita gunakan)

root@ranto:~# reboot
maka server akan restart dan konfigurasi ip address selesai dan cek melalui

root@ranto:~# ifconfig eth0


root@ranto:~# ifconfig eth1
root@ranto:~# ifconfig eth1.1

4. KONVIGURASI DNS “Domain Name System” ( Konfigurasi Bind9 )


root@ranto:~# apt-get install bind9 ( masukkkan dvd debian part 1 )

root@ranto:~#cd /etc/bind/ (masuk ke directory bind)

root@ranto:/etc/bind# pico named.conf.local

// Do any local configuration here

zone nama.sch.id {
type master;
file "db.1";
};

SIMPAN

root@ranto:/etc/bind# cp db.local /var/cache/bind/db.1

root@ranto:/etc/bind# pico /var/cache/bind/db.1

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA nama.sch.id. root.nama.sch.id. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS nama.sch.id.
@ IN A 192.168.10.1
www IN A 192.168.10.1
mail IN A 192.168.10.2

SIMPAN

(jangan lupa restart bind9 nya)

root@ranto:/etc/bind# service bind9 restart

root@ranto:/etc/bind# nslookup sekolah.sch.id


root@ranto:/etc/bind# nslookup www.sekolah.sch.id
root@ranto:/etc/bind# nslookup mail.sekolah.sch.id

Lalu keluar dari directory bind

root@ranto:/etc/bind# cd

5. KONVIGURASI WEB MAIL SERVER ( Konfigurasi Squirrelmail )


root@ranto:~# apt-get install apache2 postfix courier-imap courier-pop
squirrelmail
( Perhatikan penggunaan dvd debian baik part 1,2 maupun part 3 )

root@ranto:~# postconf -e mynetworks=0.0.0.0/0


root@ranto:~# postconf -e home_mailbox=Maildir/
root@ranto:~# postconf -e mailbox_command=

root@ranto:~# pico /etc/apache2/sites-enabled/sqmail.conf


(isi file)
<VirtualHost 192.168.10.2>
DocumentRoot /usr/share/squirrelmail
ServerName mail.nama.sch.id
</VirtualHost>
(jangan lupa simpan)

root@ranto:~# squirrelmail-configure
tekan = d
ketik = courier
tekan = tekan enter
tekan = s
tekan = tekan enter
tekan = q
root@ranto:~# maildirmake /etc/skel/Maildir

root@ranto:~# adduser ayah


Enter new UNIX password:123
Enter hingga habis

root@ranto:~# adduser ibu


Enter new UNIX password:123
Enter hingga habis

root@ranto:~# reboot

CEK UNTUK MEMASTIKAN WEB DAN MAIL SUDAH SELESAI DAN TAMPIL...

root@ranto:~# w3m www.nama.sch.id (pastikan muncul tulisan apache)

root@ranto:~# w3m mail.nama.sch.id (pastikan muncul tulisan squirrelmail)

6. KONVIGURASI ROUTER
Pastikan server kamu sudah bisa ping ke google, jika belum cek kembali
ip address pada eth0 atau koneksi internet di laptop kamu (pastikan juga
eth0 sudah terarah ke vnet1, tempat ip sharing)

root@ranto:~# pico /etc/rc.local

isi konfigurasi dibawah kalimat ini

# By default this script does nothing.

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


jangan lupa simpan

root@ranto:~# pico /etc/sysctl.conf


cari kata
#net.ipv4.ip_forward=1
Lalu buang tanda pagarnya, dan jangan lupa simpan

root@ranto:~# reboot

7. Merubah isi web server dengan web profil pribadi

root@ranto:~# pico /var/www/html/index.html

hapus semua isinya lalu isi dengan profil kamu

8. Pastikan eth1 pada vmware sudah disetting ke bridge

9. Pastikan ethernet pada laptop fisik sudah terisi ip

Ip address : 192.168.10.3
Subnetmask : 255.255.255.224
Default Gateway : 192.168.10.1

Preferred DNS Server : 192.168.10.1

10. Pastikan server bisa ping google.com, jika sudah pekerjaan lanjut ke
mikrotik.

KONFIGURASI ROUTER BOARD MIKROTIK


1. Pastikan laptop client terhubung dengan mikrotik menggunakan port 2

2. Pastikan kita bisa masuk ke mikrotik dengan menggunakan winbox.

3.

4. Pastikan kita masuk di dalam konfigurasi mikrotik menggunakan winbox

5. Lakukan reset mikrotik, pilih system, reset configuration, centang hanya 3 item saja, lalu klik
Reset Configuration
6. Lakukan pembuatan nama pada masing masing interface, klik pada menu interface, klik di ether1,
lalu rubah namanya.

7. Buat ip pada menu, ip, address dan klik tanda tambah


8. Lakukan pembuatan DNS, klik IP, lalu klik DNS, isi bagian Servers

9. Lakukan pembuatan Route, klik IP, lalu klik Routes, klik tanda tambah, isi bagian gateway
10. Lakukan pembuatan Firewall, Klik IP lalu Firewall, klik NAT lalu klik tanda tambah, klik general lalu
isi di out interface nya : internet dan klik di Action : masquerade

11. Lakukan pembuatan ip dhcp, klik menu IP lalu DHCP Server, lalu klik DHCP, lalu DHCP Setup
12. Lakukan pembuatan Hotspot pada wifi, klik IP lalu Hotspot lalu Servers lalu Hotspot Setup
13. Lakukan pembuatan akun user untuk login di mikrotik, masih di menu Hotspot, klik menu Users
lalu klik tanda tambah, user : guru dan pasword : gurutkj

Lakukan kembali untuk pembuatan akun, user : siswa dan pasword : siswatkj
14. Lakukan pembuatan jumlah akun untuk guru sebanyak 5, dan akun siswa sebanyak 10, masih
dimenu Hotspot, lalu klik User Profiles

Lakukan hal yang sama untuk jumlah siswa sebanyak 15


15. Lakukan pembuatan management bandwith untuk siswa, upload 128 kbps dan download 128
kbps, klik Queues lalu klik Simple queues lalu klik tanda tambah.

16. Pasangkan kabel dari laptop server ke mikrotik port 1, lalu buka new terminal, lalu ping 8.8.8.8
dan ping google.com, pastikan aktif.

17. Buka browser di client lalu panggil


- www.google.com
- www.nama.sch.id (192.168.10.1)
- mail.nama.sch.id (192.168.10.2)

18. Hubungkan handphone android dengan wifi dari mikrotik kita, masukkan akun login, setelah
berhasil login buka browser dan panggil
- www.google.com
- www.nama.sch.id (192.168.10.1)
- mail.nama.sch.id (192.168.10.2)
1. ATURAN SETTINGAN JARINGAN DI VM WARE

VNET 1 BRIDGE

2. ATURAN SETTINGAN JARINGAN DI LAPTOP FISIK


INSYA ALLAH ANANDA SEMUA DIBERI KEMUDAHAN OLEH ALLAH SWT, AMIIIN

.....RANTO. S.T, M.Kom.....

You might also like