wget http://swelltech.com/support/updates/squid/9/i386/squid-2.5.STABLE3-1rh.i386.rpm

rpm -ivh squid-2.5.STABLE3-1rh.i386.rpm

cd /etc/squid

mv squid.conf squid.conf.bak

vi /etc/squid/squid.conf    <<---isikan dengan squid.conf yanga telah dibuat

cd /

mkdir gambar

chown -R squid.squid /gambar

/etc/init.d/squid start

#untul selanjutnya 
/etc/ini.d/squid restart

#atau bisa juga 
/usr/sbin/squid -k reconfigure

setup

System services

run tool    <<<---pilih squid dan aktifkan


#transparant proxy diketik

vi /etc/rc.local



#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -s 192.168.168.0/255.255.255.0 -d 0/0 -j MASQUERADE

#transparant
/sbin/iptables -t nat -A PREROUTING -s 192.168.168.0/24 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/sbin/iptables -t nat -A PREROUTING -s 192.168.168.0/24 -p udp --dport 80 -j REDIRECT --to-ports 3128



#perintah drop port virus

tcsh
iptables -A FORWARD -p tcp --dport 135:139 -o eth0 -j DROP
iptables -A FORWARD -p udp --dport 135:139 -o eth0 -j DROP
iptables -A OUTPUT -p tcp --sport 135:139 -o eth0 -j DROP
/sbin/iptables -A OUTPUT -p tcp --sport 135:139 -o eth0 -j DROP
