2. Kemudian masukan konfigurasi di bawah ini :
#The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.3.11
netmask 255.255.255.0
gateway 192.168.1.1
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
3. Setelah itu simpan konfigurasi tersebut dengan perintah : Ctrl + O(Enter) dan Ctrl + X (Enter)
#apt-get install squid3
#nano /etc/squid3/squid.conf
Ctrl + W ((hapus tanda #)http_port 3128 transparent)
Ctrl + W (acl CONNECT method CONNECT)
acl CONNECT method CONNECT
acl porno dstdomain "/etc/squid3/porno.txt"
acl kunci url_regex -1 "/etc/squid3/kunci.txt"
no_cache deny porno
http_access deny porno
http_access deny porno kunci
acl lan src 192.168.50.0/24
http_access allow lan
http_access allow all
cache_mgr irsyadul@pgri13.com
visible_hostname www.smkpgri13.com
#nano /etc/squid3/porno.txt
Ketik domain yang di blokir.
www.facebook.com
www.google.com
www.yahoo.com
Ketik kata kunci yang di blokir.
yahoo
#/etc/init.d/squid3 restart
# reboot
setting client
address 192.168.10.2
netmask 255.255.255.0
gateway 192.168.1.1

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
0 komentar:
Posting Komentar