# Update & upgrade repositor #
==============================
apt-get update apt-get upgrade -y apt-get dist-upgrade -y apt-get install squid -y apt-get install squid squidclient squid-cgi -y apt-get install gcc -y apt-get install build-essential -y apt-get install sharutils -y apt-get install ccze -y apt-get install libzip-dev -y apt-get install automake1.9 -y apt-get install acpid apt-get install multitail
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
wget http://squidmon.googlecode.com/svn/trunk/squidmon.py
sudo chmod +x squidmon.py
wget http://www.pixelbeat.org/scripts/ps_mem.py
sudo chmod +x ps_mem.py
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
wget http://proxy-ku.googlecode.com/files/LUSCA_FMI.tar.gz
tar xzvf LUSCA_FMI.tar.gz
cd LUSCA_FMI/
./bootstrap.sh
mkdir /usr/local/etc/local
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
make distclean
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-http-gzip --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536
make
make install
cd /
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
mkdir cache
squid stop
squid start
chmod +x /etc/init.d/squid
/etc/init.d/squid stop
chmod +x /etc/init.d/squid
chown proxy:proxy /etc/squid/squid.conf
sudo chown proxy:proxy /etc/squid/storeurl.pl
sudo chown proxy:proxy /var/log/squid/access.log
sudo chown proxy:proxy /var/log/squid/cache.log
sudo chmod 777 /etc/squid/storeurl.pl
chown proxy:proxy /cache1
chown proxy:proxy /cache2
sudo chmod 777 /cache1
sudo chmod 777 /cache2
sudo squid -k parse
squid -f /etc/squid/squid.conf -z
sudo update-rc.d squid defaults
sudo squid restart
reboot
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
sudo nano /etc/rc.local
Ketikan skrip berikut sebelum baris exit 0
iptables –t nat –A PREROUTING –p tcp –s 192.168.88.0/24 – -dport 80 –j REDIRECT – -to-port 3128
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
http://www.whatismyip.com/
sudo squid -k reconfigure
squid -N -d 1 -D
tail -f /var/log/squid/access.log | ccze
/ip firewall nat add chain=dstnat src-address=!192.168.100.0/24 protocol=tcp dst-port=80 action=dst-nat to-address=192.168.100.100 to-ports=3128
/ip firewall nat add action=dst-nat chain=dstnat comment="REDIRECT KE PROXY" disabled=no dst-port=80,8080,3128 in-interface=ether2-master-local protocol=tcp dst-address=!192.168.100.1 to-addresses=192.168.100.1 to-ports=3128
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+ INSTALL UNBOUND =+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
apt-get install unbound -y cd /etc/unbound wget ftp://FTP.INTERNIC.NET/domain/named.cache unbound-control-setup chown unbound:root unbound_* chmod 440 unbound_*
File "unbound.conf" ke /etc/unbound/
unbound-control status
unbound-control stats
/etc/init.d/unbound restart
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+= MENGHAPUS CACHE +=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
/etc/init.d/squid stop
rm -rf /cache1/*
rm -rf /cache2/*
squid -z
service squid start
squid -N -d 1 -D
squid -f /etc/squid/squid.conf -z /etc/init.d/squid restart
tail -f /var/log/squid/access.log | ccze
Matikan atau stop service squid : service squid stop
Hapus cache squid : rm -fdR /var/spool/squid/*
Aktifkan kembali direktori squid : squid -z
Jalankan squid : service squid start
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+= MENGHAPUS CACHE +=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
squid -N -d 1 -D
commBind: Cannot bind socket FD 16 family 2 to 0.0.0.0 port 3128: (98) Address already in use
ps ax | grep squid atau ps ax | grep 3128 , kill no_pid
atau
killall -9 squid
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+= MENGHAPUS CACHE +=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
==============================
apt-get update apt-get upgrade -y apt-get dist-upgrade -y apt-get install squid -y apt-get install squid squidclient squid-cgi -y apt-get install gcc -y apt-get install build-essential -y apt-get install sharutils -y apt-get install ccze -y apt-get install libzip-dev -y apt-get install automake1.9 -y apt-get install acpid apt-get install multitail
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
wget http://squidmon.googlecode.com/svn/trunk/squidmon.py
sudo chmod +x squidmon.py
wget http://www.pixelbeat.org/scripts/ps_mem.py
sudo chmod +x ps_mem.py
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
wget http://proxy-ku.googlecode.com/files/LUSCA_FMI.tar.gz
tar xzvf LUSCA_FMI.tar.gz
cd LUSCA_FMI/
./bootstrap.sh
mkdir /usr/local/etc/local
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
make distclean
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-http-gzip --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536
make
make install
cd /
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
mkdir cache
squid stop
squid start
chmod +x /etc/init.d/squid
/etc/init.d/squid stop
chmod +x /etc/init.d/squid
chown proxy:proxy /etc/squid/squid.conf
sudo chown proxy:proxy /etc/squid/storeurl.pl
sudo chown proxy:proxy /var/log/squid/access.log
sudo chown proxy:proxy /var/log/squid/cache.log
sudo chmod 777 /etc/squid/storeurl.pl
chown proxy:proxy /cache1
chown proxy:proxy /cache2
sudo chmod 777 /cache1
sudo chmod 777 /cache2
sudo squid -k parse
squid -f /etc/squid/squid.conf -z
sudo update-rc.d squid defaults
sudo squid restart
reboot
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
sudo nano /etc/rc.local
Ketikan skrip berikut sebelum baris exit 0
iptables –t nat –A PREROUTING –p tcp –s 192.168.88.0/24 – -dport 80 –j REDIRECT – -to-port 3128
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
http://www.whatismyip.com/
sudo squid -k reconfigure
squid -N -d 1 -D
tail -f /var/log/squid/access.log | ccze
/ip firewall nat add chain=dstnat src-address=!192.168.100.0/24 protocol=tcp dst-port=80 action=dst-nat to-address=192.168.100.100 to-ports=3128
/ip firewall nat add action=dst-nat chain=dstnat comment="REDIRECT KE PROXY" disabled=no dst-port=80,8080,3128 in-interface=ether2-master-local protocol=tcp dst-address=!192.168.100.1 to-addresses=192.168.100.1 to-ports=3128
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+ INSTALL UNBOUND =+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
apt-get install unbound -y cd /etc/unbound wget ftp://FTP.INTERNIC.NET/domain/named.cache unbound-control-setup chown unbound:root unbound_* chmod 440 unbound_*
File "unbound.conf" ke /etc/unbound/
unbound-control status
unbound-control stats
/etc/init.d/unbound restart
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+= MENGHAPUS CACHE +=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
/etc/init.d/squid stop
rm -rf /cache1/*
rm -rf /cache2/*
squid -z
service squid start
squid -N -d 1 -D
squid -f /etc/squid/squid.conf -z /etc/init.d/squid restart
tail -f /var/log/squid/access.log | ccze
Matikan atau stop service squid : service squid stop
Hapus cache squid : rm -fdR /var/spool/squid/*
Aktifkan kembali direktori squid : squid -z
Jalankan squid : service squid start
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+= MENGHAPUS CACHE +=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
squid -N -d 1 -D
commBind: Cannot bind socket FD 16 family 2 to 0.0.0.0 port 3128: (98) Address already in use
ps ax | grep squid atau ps ax | grep 3128 , kill no_pid
atau
killall -9 squid
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+= MENGHAPUS CACHE +=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Tidak ada komentar:
Posting Komentar