Minggu, 03 Maret 2013

tutorial UKK tkj 2013 paket 2


TUTORIAL UJIKOMPETENSI TAHUN 2013
PAKET 2
1.       Pada saat menginstal masukkan hostname = sekolah.sch.id
2.       Ingat pada pengisian nama account nama pendek saja nanti berhubungan denga ftp server
3.       Setelah anda menginstall linux sampai muncul login: ketikkan
Login : root
Password :****
Konfigurasi Ethernetnya dengan mengetik perintah
#nano /etc/network/interfaces
                Auto lo eth0 eth0:1
                Iface lo inet loopback
                Iface eth0 inet static
                                Address 192.168.55.1
                                Netmask 255.255.255.0
                                Network 192.168.55.0
                                Broadcast 192.168.55.255
                Iface eth0:1 inet static
                                Address 192.168.55.2
                                Netmask 255.255.255.0
#/etc/init.d/networking restart
#ping 192.168.55.1
#ping 192.168.55.2
4.       Konfigurasi resolvnya :
#nano /etc/resolv.conf
                Search sekolah.sch.id
                Nameserver 192.168.55.1
                Search institusi.com
                Nameserver 192.168.55.2
5.       Instal bind9 dengan cara :
#apt-get install bind9
Konfigurasi bind9 nya dengan 3 file yaitu
-          #Nano named.conf
Tambahkan konfigurasi seperti berikut...
        Zone “sekolah.sch.id” {
                        Type master;
                        File “/etc/bind/db.sekolah”;
        };
        Zone “institusi.com” {
                        Type master;
                        File “/etc/bind/db.institusi”;
        };
        Zone “192.in-adrr.arpa” {
                        Type master;
                        File “/etc/bind/db.192”;
        };
-          Copy file db.localhost menjadi db.sekolah dan db.institusi
#cp db.localhost db.sekolah
#nano db.sekolah
        @            IN            SOA        localhost. Root.localhost. (
                                                                        .........
        @            IN            NS           localhost.
        @            IN            A             127.0.0.1
Rubah menjadi
        @            IN            SOA        sekolah.sch.id. Root.sekolah.sch.id. (
                                                                        .........
        @            IN            NS           sekolah.sch.id.
        @            IN            A             192.168.55.1
        www       IN            A             192.168.55.1
        ftp           IN            A             192.168.55.1
#cp db.localhost db.institusi
        #nano db.sekolah
        @            IN            SOA        localhost. Root.localhost. (
                                                                        .........
        @            IN            NS           localhost.
        @            IN            A             127.0.0.1
Rubah menjadi
        @            IN            SOA        institusi.com. Root.institusi.com. (
                                                                        .........
        @            IN            NS           institusi.com.
        @            IN            A             192.168.55.2
        www       IN            A             192.168.55.2       
-          Copy file db.127 menjadi db.192
#cp db.127 db.192
        #nano db.sekolah
        @            IN            SOA        localhost. Root.localhost. (
                                                                        .........
        @            IN            NS           localhost.
        @            IN            A             127.0.0.1
Rubah menjadi
        @            IN            SOA        sekolah.sch.id. Root.sekolah.sch.id. (
                                                                        .........
        @            IN            NS           sekolah.sch.id.
        1.55.168                IN            PTR         sekolah.sch.id.
        2.55.168                IN            PTR         institusi.com.
-          Restart bind
#/etc/init.d/bind9 restart
                Tes bind dengan nslookup
                         #nslookup www.sekolah.sch.id
                         #nslookup www.institusi.com
                         #nslookup ftp.sekolah.sch.id
6.       Instal web server :
#apt-get install apache2

7.       #cd /etc/apache2/
-          /etc/apache2#nano ports.conf
virtual
-          /etc/apache2/nano httpd.conf
Servername 192.168.55.1
-          /etc/apache2#cd sites-available
-          /etc/apache2/sites-available#cp default sekolah
-          /etc/apache2/sites-available#cp default institusi
-          /etc/apache2/sites-available#nano sekolah
<virtualhost  192.168.55.1:80>
                        Serveradmin webmaster@sekolah.sch.id
                        Servername www.sekolah.sch.id
                        Serveralias  sekolah.sch.id
                        DocumentRoot /var/www/sekolah/
                        <Directory/ >
                                        Options followsymlinks
                                        AllowOverride None
                        </Directory>
                        <Directory /var/www/sekolah/>

-          /etc/apache2/sites-available#nano institusi
-          <virtualhost  192.168.55.2:80>
                        Serveradmin webmaster@institusi.com
                        Servername www.institusi.com
                        Serveralias  institusi.com
                        DocumentRoot /var/www/institusi/
                        <Directory/ >
                                        Options followsymlinks
                                        AllowOverride None
                        </Directory>
                        <Directory /var/www/institusi/>
-          /etc/apache2/sites-available#cd /var/www/
-          /var/www#mkdir sekolah institusi
-          /var/www#cd sekolah
-          /var/www/sekolah#nano index.html
<html><center>www.sekolah.sch.id</center></html>
-          /var/www/sekolah#cd ..
-          /var/www/sekolah#cd institusi
-          /var/www/institusi#nano index.html
<html><center>www.institusi.com </center> </html>
-          Chmod 777 –R /var/www/sekolah/
-          Chmod 777 –R /var/www/institusi/
-          A2dissite default
-          A2ensite sekolah
-          A2ensite institusi
-          /etc/init.d/apache2 restart
8.       Apt-get install proftpd
-          /var/www/institusi#nano /etc/proftpd/proftpd.conf
-          Dibawah tulisan #</Anonymous> ketik sebagai berikut
<anonymous /var/www/>
User                nama_account
Useralias        anonymous           nama_account
</anonymous>
9.       Apt-get install squid
10.    /var/www/institusi#cd /etc/squid
11.    /etc/squid#nano squid.conf
-          Tekan CTRL+W
-          Ketik http_port 3128
-          Tambahkan skrip transparent di belakang http_port 3128
http_port 3128 transparent
-          Tambahkan skrip dibawah http_port 3128 transparent seperti dibawah
Cache_mem 16 mb
Visible_hostname proxy.sekolah.sch.id
-          Tekan CTRL+W
-          Ketik acl CONNECT
-          Tambahkan skrip dibawah acl CONNECT sebagai berikut
acl url dstdomain “/etc/squid/url”
http_access deny url
acl lan src 192.168.55.0/24
http_access allow lan
http_access allow all
-          Tekan CTRL+W
-          Ketik http_access deny all
-          Hilangkan tanda pagar di depan http_access deny all
-          #nano url
                        Institusi.com
                        192.168.55.2
-          Restart squid
-          /etc/init.d/squid restart             
- iptables -t nat -A PREROUTING -s 192.168.55.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128
12.    Penilaian :
-          ping dari server ke client
-          ping dari client ke server
-          nslookup ip dan domain
-          tes ftp.sekolah.sch.id di browser
-          tes squid dengan memblok ip 192.168.55.2, www.institusi.com dan institusi.com
13.    jangan lupa setting ip client
ip                     = 192.168.55.5
netmask         = 255.255.255.0
gateway         = 192.168.55.1
dns                  = 192.168.55.1
14.    jangan lupa non aktifkan firewall
15.    selamat memcoba