Wednesday, September 19, 2018

konfigurasi

MATERI LENGKAP UJIKOM
URUTAN Penginstalan LINUX
1. Hidupkan pc server lalu masukkan cd linuxnya lalu Restart
2. Setelah pc server hidup masuklah ke Bios dan setting storage optionnya menjadi AHCI
3. Lakukan penginstalan pilih INSTALL lalu Enter. Selanjutnya enter2 saja tak perlu ada yg di rubah  seperti bahasa dan negara
4. Pilih ETHO lalu enter                                                                                                                                                         Lalu isikan IP:                                                                                                                                                                              IP Addres 192.168.1.1                                                                                                                                                    Netmast 255.255.255.0                                                                                                                                              Gateway 192.168.1.1
5. Jika ada pertanyaan isikan dengan catatan di bawah ini:                                                                                                                                                
A. Name Server : smkpijar                                                                                                                                                    B. Hostname : smkbisa                                                                                                                                                          C. Domain Name : smkpijaralam                                                                                                                                                                                               D. Full Name : namasiswa                                                                                                                                               E. Password : 123                                                                                                                                                                     F. User Name : namasiswa                                                                                                                                                                                       G. Password : 123                                                                                                                                                                            H. Gunakanlah entired disk jadi tidak perlu buat partisi                                                                                                                                                                                             I. Jika ada pertanyaan.                                                                                                                                                   Jawablah NO kecuali pertanyaannya…...Scan cd,……miror dan grup kita jawab YES                                                                                                           J. Jika ada pertanyaan apakah http yg digunakan di kosongkan saja lalu enter kemudian tekan ESC. Dan dilanjut dengan pilih YES
6. Jika selesai, CD Linux akan keluar dengan sendirinya                                                                                                                                                  Setelah itu dilanjut dengan konfigurasi. Lakukan login dengan user dan password seperti yg tertera pada tutorial no.5 diatas. Barulah kita lanjut dengan konfigurasi






Konfiguration PROXY                                                                                                                                                                          Setelah install LINUX DEBIAN

1. Buat network interfaces PERINTAHNYA:                                                                                                                                                                           nano/etc/network/x                                                                                                                                                                                                                 TUGASNYA ketiklah IP seperti dibawah ini
auto eth0                                                                                                                                                                                                                                iface eth0 inet static                                                                                                                                                                                                                                           address 192.168.1.1                                                                                                                                                                                                                                                                              netmask 255.255.255.0                                                                                                                                                                  network 192.168.1.0                                                                                                                                                                                                                                                     broadcast 192.168.1.255                                                                                                                                                                                             gateway 192.168.1.1                                                                                                                                                                                                                            
auto eth1                                                                                                                                                                                                                                               iface eth1 inet static                                                                                                                                                                                                                                                                                                           address 192.168.2.1                                                                                                                                                                                                                           netmask 255.255.255.0                                                                                                                                                                                                   network 192.168.2.0                                                                                                                                                                                                         broadcast 192.168.2.255
lalu SAVE caranya:                                                                                                                                                                                                                                                                                                                                                                                 Ctrl X lalu tekan y, lalu tekan ENTER
2. Lalu RESTART dengan perintahnya:                                                                                                                                                                                                                                                    etc/init.d/networking restart    (lalu Enter)
3. Cek IP: Tugasnya                                                                                                                                                                                   ketik :ifconfig eth0 lalu ENTER                                                                                                                                                                                                                                                                                                                                     ketik :ifconfig eth1 lalu ENTER
4. Membuat domain server : Perintahnya                                                                                                                                                                                                                                                                                                                                     nano /etc/resoly.conf
Tugasnya ketik:                                                                                                                                                                                                                                                nameserver/192.168.1.1                                                                                                                                                                                                                                                                             lalu SAVE
5. Mengaktifkan IP forward : perintahnya nano /etc/sysctl.conf                                                                                                                                                                                                                                                                       Tugasnya hilangkan tanda # di net.ipv4.ip_forward=1                                                                                                                                                                                                                                                         lalu SAVE                                                             
6. rc.lokal: perintahnya:                                                                                                                                                                                                                                                                                                                                                            /nano /etc/rc.lokal/                                                                                                                                                                                                                                              Tugasnya tambahkan tulisan dibawah sebelum exit:                                                                                                                                                                                                                                                                                                                                                                                            echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUNTING -j MAQUERADE                                                                                                            ----------lalu SAVE
7. Lalu aktifkan NATnya, perintahnya:                                                                                                                                                                                                                                                                    iptables –t nat –L ----------------lalu ENTER
8. Lalu RESTART JARINGAN Perintahnya:                                                                                                                                                                                                            /etc/int.d/networking restart
9. cek routing perintahnya ketik : route lalu enter maka akan tampil seperti dibawah ini:                                                                                                                                                    client------------->router<-------------Server                                                                                                                                                                                                                                                                                                                                                                      192.168.10.2 eth1 eth0 eth0                                                                                                                                                                                                                                                                                     192.168.10.1 192.168.11.2 192.168.11.1
10. Masukkan cd linux dan tunggu beberapa saat sampai cdnya berputar                                                                                                                                                                                   Installkan paket software squid dengan perintah:                                                                                                                                                                                                                                                                                                      apt-get install squid                                                                                                                                                                                                                                                                                                                                                                                                                     Jika ada pertanyaan ketik: y---------- lalu ENTER.
Dan tunggu sampai proses working 100%
11. Edit file squid dengan perintah:                                                                                                                                                                                                                                                                                    nano /etc/squid/squid.conf                                                                                                                                                                                                                  Tugasnya:                                                                                                                                                                                              -cari http_port 3128 kemudian tambahkan tulisan ‘’transparent’’ dibelakangnya sehingga menjadi                                                                                    http_prt 3128 transparent
Cari tulisan acl CONNECT kemudian tambahkan tulisan dibawahnya:                                                                                                                                      acl blocksitus dstdomain .facebook.com .youtube.com                                                                                                                                                                                                   http_access deny blocksitus                                                                                                                                                                                     acl lokal src 192.168.1.0/27                                                                                                                                                                                                                                                                                                                                                                   http_access allow local                                                                                                                                                                                                                                                           cache_mgr namasiswa@smkpijaralam.sch.id                                                                                                                                                                                                                                                                                                          visible_ smkbisa www.smkpijaralam.sch.id                                                                                                                                                                                                                                                                        lalu save
12. Masukkan nama situs yg akan di blok dengan perintah:                                                                                                                                                                                                                     /nano /etc/squid/situs.txt   (lalu enter)                                                                                                                                                                                                                                                 masukkan situs yg diblok, misal www.youtube.com , www.faceboo.com                                    
13 Restart squid dengan perintah : etc/init.d/squid restart (lalu enter)
14. Cek apakah konfigurasi sudah benar perintahnya:    Squid -z   (lalu enter)                                                                                     Kalau muncul tulisan Creating Swap Directory berarti settingannya benar                                                                                                                 Jika Running, ketik perintah:   /etc/init.d/squid stop          
Ketik kembali   :Squid -z   (lalu enter)                                                                                                                                                     maka hasilnya pasti akan Creating Swap
15. Serta edit file rc.local dengan mengetikkan perintah:    nano /etc/rc.local
16. Aktifkan ip_forwarding                                                                                                                                                                                                                                                                           Perintahnya:                                                                                                                                                                            iptables –t nat –A PREROUTING –s 192.168.1.0/27 –p-tep –dport 80 –j REDIRECT –to-port 3128 lalu ENTER
17. Lalu edit tulisan HTML situs yg diblokir yg akan tampil pada browser Internet Explorer                                                                                                                                       Perintahnya:                                                                                                                                                                                         cd /usr/share/squid/errors/English         ------- lalu ENTER                                                                                                                                                                            Perintah ke-2:                                                                                                                                                                                                                                     nano_ERR_ACCESS_DENIED                  --------- lalu ENTER                                                                                                                                                 Tugasnya:                                                                                                                                                                                                                                      Edit tulisan pd HTMLnya menjadi       ‘’maaf situs ini sudah diblokir’’     setelah selesai lalu SAVE dan Reboot  (jangan lupa cd linux dikeluarkan terlebih dahulu)
18. Setelah hidup kembali ping ke PC CLIENT perintahnya:                                                                                                                                    ping 192.168.1.5   -------- lalu ENTER












LANGKAH terakhir
Setting PC CLIENT
1. Gunakalha PC CLIENT yg menggunakan OS WINDOWS 7, Alasannya:                                                                                                                                                                                                                                                                                                                                                                     tidak terlalu lama proses penginstalannya jadi lebih hemat waktu pada saat UJIKOM berlangsung
2. Install APP yg hanya dibutuhkan saja:                                                                                                                                                                                - Winrar                                                                                                                                                                                                                          - Adobe Reader                                                                                                                                                                                                                            - Office 2007                                                                                                                                                                                                       - Flash Player                                                                                                                                                                                                                - Codex 321                                                                                                                                                                                                                                                                                                                                                                     Nb;                                                                                                                                                                                                                                                                                                                                           - Jangan pernah menginstall VIRTUAL BOX karena aplikasi ini membuat error pada saat pengujian Proxy                                                                                                                                                                                                                                                                                                                                                - Tidak perlu menginstall Firefox/ Modzilla karena kita akan melakukan pengujian dengan INTERNET EXPLORER
3. Lakukan penginstalan DRIVER ETHERNET jika LAN connectionnya tidak tampil setelah kabel dipasang
4. Jika LAN connection sudah tampil pada pojok kanan bawah PC, lakukanlah penginstalan IP sebagai berikut:                                                                                                                                                                                                                                                   - IP Address 192.168.1.5                                                                                                                                                                                                                       - Subnet 255.255.255.0                                                                                                                                                                                                                    - Gateway 192.168.1.1
Dns. 8.8.8.8                                                                                                                                                                                                                                                                  Dns Secoundary. 8.8.4.4
5. Lakukanlah ping dari PC CLIENT ke PC SERVER dengan CMD (Ping 192.168.1.1)                                                                                                                                                                                           Jika ping tidak berhasil, lakukanlah restart pada PC SERVER lalu ulangi proses ping dari PC CLIENT
6. Jika ping sudah berhasil, lakukan setting pada INTERNET EXPLORER                                                                                                         Caranya:                                                                                                                                                                                                                                              - Klik TOOLS pada IE                                                                                                                                                                                                                                                         - Klik INTERNET OPTIONS                                                                                                                                                                                                                                                      - Klik CONNECTIONS                                                                                                                                                                                                        - Klik LAN SETTINGS                                                                                                                                                                                                                                                                                    - Klik ceklis BOX PROXY SERVER                                                                                                                                                                 - Isilah IP PADA KOLOM Address 192.168.1.1 dan kolom port 3128 lalu ok dan ok

Langkah pengujian
7. Ketiklah www.facebook.com pada toolbar lalu enter                                                                                                                                                      Jika berhasil, akan ada tulisan:
‘’Maaf situs ini sudah diblokir’’           
Atau seperti yg tertulis pada konfigurasi  edit HTMLnya
Maka tugas selesai.                                                                                                                                                                                                                                                           SELAMAT mencoba.

No comments:

Post a Comment

cara sharing data di jaringan lokal

Cara Transfer File Antar Komputer Tanpa Kabel Transfer File A...