Ujian Kompetensi Paket 2

# nano /etc/network/interfaces

————————————————–

auto eth0

iface eth0 inet static

address 192.168.100.25

netmask 255.255.255.192

network 192.168.100.0

broadcast 192.168.100.63

————————————————–

# /etc/int.d/networking restart

# nano /etc/sysctl.conf

net.ip4.ip_forward=1

# nano /etc/rc.local

————————————————–

iptables –t nat –A POSTROUTING –s 192.168.100.0/24 –j MASQUERADE

exit 0

————————————————–

# reboot

# apt-get install bind9

# cd /etc/bind/

# nano named.conf

————————————————–

include “/etc/bind/named.conf.local”;

zone ”smkn12.sch.id” {

type master;

file “/etc/bind/forward”;

};

zone “profilku.com” {

type master;

file “/etc/bind/profilku”;

};

zone “100.168.192.in-addr.arpa” {

type master;

file “/etc/bind/reverse”;

};

————————————————–

# cp db.local forward

# nano forward

————————————————–

$TTL 604800

@ IN SOA smkn12.sch.id. root.smkn12.sch.id (

  1. ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

604800 ) ; Negative Cache TTL

;

@ IN NS smkn12.sch.id.

@ in a 192.168.100.25.

www in a 192.168.100.25.

————————————————–

# cp forward profilku

# cp db.127 reverse

# nano reverse

————————————————–

….

;

@ IN NS smkn12.sch.id.

25 in ptr http://www.smkn12.sch.id.

25 in ptr http://www.profilku.com.

————————————————–

# nano /etc/resolv.conf

search smkn12.sch.id

nameserver 192.168.100.25

# /etc/init.d/bind restart

# nslookup 192.168.100.25

Server: 192.168.100.25

Address: 192.168.100.25#53

25.100.168.192.in-addr.arpa name = smkn12.sch.id.

25.100.168.192.in-addr.arpa name = http://www.smkn12.sch.id.

25.100.168.192.in-addr.arpa name = http://www.profilku.com.

# apt-get install apache2 php5

# cd /etc/apache2/sites-available/

# cp default smkn12

# nano smkn12

————————————————–

<VirtualHost *:80>

ServerAdmin rizki@smkn12.sch.id

ServerName http://www.smkn12.sch.id

DocumentRoot /home/rizki/public_html/

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

<Directory /home/rizki/public_html/>

……

————————————————–

# cp smkn12 profilku

# nano profilku

————————————————–

<VirtualHost *:80>

ServerAdmin rizki@profilku.com

ServerName http://www.profilku.com

DocumentRoot /home/rizki/public_html/profilku/

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

<Directory /home/rizki/public_html/ profilku/>

……

————————————————–

# mkdir /home/rizki/public_html

# mkdir /home/rizki/public_html/profilku/

# chmod 777 /home/rizki/public_html

# chmod 777 /home/rizki/public_html/profilku/

# nano /home/rizki/public_html/index.html

————————————————–

<html><body><h1>www.smkn12.sch.id</h1></body></html>

————————————————–

# nano /home/rizki/public_html/profilku/index.html

————————————————–

<html><body><h1>www.profilku.com</h1></body></html>

————————————————–

# a2ensite smkn12

# a2ensite profilku

# a2dissite default

# a2enmod userdir

# nano /etc/apache2/mods-enabled/userdir.conf

….

# UserDir disabled root

….

# adduser usersiswa

(isi password)

# mkdir /home/usersiswa/public_html

# nano /home/usersiswa/public_html/index.html

————————————————–

<html><body><h1>User Siswa</h1></body></html>

————————————————–

# /etc/init.d/apache2 restart

# w3m http://www.smkn12.sch.id/~usersiswa

User Siswa

# w3m http://www.smkn12.sch.id

http://www.smkn12.sch.id

# w3m http://www.profilku.com

http://www.profilku.com

# apt-get install proftpd

# nano /etc/proftpd/proftpd.conf

# Use this to jail all usersin their homes

DefaultRoot ~

# /etc/init.d/proftpd restart

# apt-get install squid

# nano /etc/squid/squid.conf

————————————————–

….

#

cache_mgr rizki@smkn12.sch.id

….

#

visible_hostname http://www.smkn12.sch.id

….

# INSERT YOUR OWN RULE (S) HERE TO ALLOW …

acl lan src 192.168.100.0/26

acl block dstdomain .profilku.com

http_access deny block

http_access allow lan

————————————————–

# http_access deny all

# /etc/init.d/squid restart

Setting manual proxy pada browser client (Mozilla Firefox)

1. Buka browser client

2. Klik “Tools”

3. Klik “Options”

4. Pada Advace “Advaced”.

5. Klik Klik tab “Network”, klik “Setting”

5. Pilih opsi “Manual Proxy Configuration”

6. Isi IP Address server pada “HTTP Proxy”, dan masukkan port proxy server pada

kolom port

Keterangan:

Kata kunci

Tambah

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s