shofy

shofy
manis banget...

Senin, 04 April 2011

squid

# Apt –get install squid
# y
# pico /etc/squid/squid.conf

# http_port 3128
# http_port 3128 di tambah transparent
# aclname dstdomain
# pd acl cadname arcdon_regex.
Trus buat acl blokweb dstdomain .facebook.com .youtube.com
# localnet
Pd localnet scr 192.168.0.0/16
Di ganti dgn sekolah scr 192.168.0/24
# http_access
Pd http-access yg ke 2allow local host entr,kemudian pd http_access allow yg ke 1 di hpus tanda # setelah itu localhostname di hapus kemudian dig anti dengan sekolah.kemudia naik keatas buat http_access deny blokweb
# cache_mgr
Pada cache-mgr entr kemudian buat
Cache_mgr admin@sekolah.lan
# visible_hostname
Di bawah none,buat visible_hostname www.sekolah.lan
# ctrl+x
# save ktk Y
# clear
# squid –z
# squid –k reconfigure
# clear
# iptables –t nat –A PREROUTING –p tcp –dport 80 –j REDIRECT –to-ports 3128
# clear
# iptables-save > /etc/routing.txt
# clear
# tail –f /var/log/squid/access.log

Please wait

Tidak ada komentar:

Posting Komentar