Posted by : Kira's Blog Jumat, 15 Februari 2013


Petunjuk Paket 1

*nano /etc/network/interfaces
Tambahkan IP eth1
*/etc/init.d/networking restart
*nano /etc/apt/sources.list
deb http://kambing.ui.ac.id/ubuntu/ oneiric main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ oneiric-backports main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ oneiric-security main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ oneiric-proposed main restricted universe multiverse
*apt-get update
*nano /etc/sysctl.conf
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
*iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
*iptables -t nat -n -L
*apt-get install squid -y
*cd /etc/squid
*cp squid.conf squid.confbu
*nano squid.conf
Tambahkan :
acl all src all
acl localnet src 192.168.55.0/24
acl situs url_regex -i "/etc/squid/diblokir"
http_access deny situs
http_access allow localnet
http_port 3128 transparent
cache_access_log /var/log/squid/access.log
visible_hostname www.sekolah.com
cache_mgr alfianurfidia
*nano /etc/squid/diblokir
yahoo
google
*mkdir /cahce
*chown -R proxy:proxy /cache
*chown -R proxy:proxy /etc/squid/diblokir
*/etc/init.d/squid stop
*squid -z
*/etc/init.d/squid start

*iptables -t nat -A PREROUTING -p tcp -j REDIRECT --dport 80 --to-port 3128
ATAU
*iptables -t nat -I PREROUTING -i eth1 -p tcp -m tcp -jd REDIRECT --dport 80 --to-ports 3128

*iptables -t nat -n -L
*iptables-save > /etc/iptablessave
*nano /etc/init.d/rc.local
iptables-restore < /etc/iptablessave
*/etc/init.d/squid restart
*reboot

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Select Your Language

English French German Spain Italian Dutch Russian Portuguese Japanese Korean Arabic Chinese Simplified

Total View Page

72,859

Visitors

free counters

Clock

Followers

Diberdayakan oleh Blogger.