- sudo
su ( Masukkan Passwd )
- apt-get
install squid ( Enter )
- gedit
/etc/sysctl.conf /etc/rc.local /proc/sys/net/ipv4/ip_forward
/etc/squid/squid.conf /blokir (
Enter )
- Hilangkan
# pada net.ipv4.ip_forward=1 ( di sysctl.conf )
- Tambahkan
iptables -t nat -A POSTROUTING -s 192.168.100.0/26 -j
MASQUERADE
iptables -t nat -A PREROUTING -s 192.168.100.0/26 -p tcp
--dport 80 -j REDIRECT --to-port 3128
( Pada rc.local )
- Ganti
Angka 0 menjadi 1 ( di ip_forward )
- Cari
http_port 3128 , tambahkan transparent di belakangnya .
- Ngisor
Poooollllllllllllllll scroll ng ngisor poolllllll , tambahkan
cache_mgr namapeserta@namasekolah.sch.id
visible_hostname www.namasekolah.sch.id
acl blok dstdomain "/blokir"
acl blokkata url_regex -i "/blokir"
http_access deny blok
http_access deny blokkata
acl jaringan src 192.168.100.0/26
http_access allow jaringan
http_access allow all
- Cari
“http_access deny all” -------
tambahkan # ( ingat ada 2 )
- tambah seng pak di blok ( ex :
facebook.com ------- di /blokir )
- squid
-z ( ge ngecekk )
- restart squid karo networking e carane :
restart squid : /etc/init.d/squid restart
restart networking : /etc/init.d/networking restart
luweh joss cabut kabel powere
kurang marem jeglekke prestone kurang marem meneh jeblokke PLN.e kurang
marem gantung WAEEEEEEEEE!!!!!!!!!!!!!!!!!!!!!!!!
TIPS MENGRJAKAN
UJIAN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1. MASUK
2.KERJAKAN
3.LUPAKAN
Sukses Ujian Praktek :D
Teriakan
CuCoOokkkkk........ :P
Setelah berhasil