Minggu, 17 Februari 2013

Sukses Ujikom 2013 TKJ



·         Sudo su
·         Ifconfig
·         Cd  /
·         Nano /etc/network/interfaces
Ø  Auto lo
Ø  Iface inet loopback

Ø  Auto eth0
Ø  Iface eth0 inet dhcp

Ø  Auto eth1
Ø  Iface eth1 inet static
Ø  Address 192.168.50.1
Ø  Netmask 255.255.255.0
Ø  Network 192.168.50.0
Ctrl+o (enter) ctrl+x

·         /etc/init.d/networking restart
·         Ping 192.168.50.1 atau Ping google.com
·         Iptables –t nat –A POSTROUTING –-jump MASQUERADE -–source 192.168.50.0/24
            
Masukin cd ke cdrom
·         Apt-cdrom add (tunggu)
·         Apt-get install squid
·         Nano /etc/squid/squid.conf
Ctrl+w
v  http_3128
jika sudah ketemu tambahkan transparent jadi
v  http_3128 trasparent
Ctrl+w
v  cache_mgr
jika sudah ketemu tambahkan Nama Masing-masing jadi contoh

ctrl+w

v  acl connect
Ø  acl situs dstdomain “/etc/squid/situs”
Ø  no_cache deny situs
Ø  http_access deny situs
Ø  acl jaringan src 192.168.50.0/24
Ø  http_access deny allow jaringan
Ø  visible_hostname www.smktignc.sch.id

Ctrl+w
v  #http_access deny all
Ctrl+o (enter) ctrl+x
·         Nano /etc/squid/situs
Ctrl+o (enter) ctrl+x
·         Iptables –t nat –nat –A PREROUTING –p tcp –dport 80 –j REDIRECT -–to-port 3128
·         Squid –k reconfigure
Kalo muncul LISTEN tandanya BERHASIL






0 komentar:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | hostgator reviews