- #!/bin/bash
- #instalasi squid proxy in debian otomatis
- #code by samuderapase
- squid=instalasi squid proxy in debian
- echo $squid
- sleep 3
- sudo aptitude update #update repo
- sudo aptitude install squid #perintah menginstalasi squid
- aptitude install squid squidclient squid-cgi
- aptitude install ccze
- sleep 4
- squid=Membuat Directory cache
- echo =============================================================
- echo $squid
- mkdir /cache1 && mkdir /cache2 && mkdir /cache3 && mkdir /cache4
- touch /var/log/squid/access.log
- touch /var/log/squid/cache.log
- echo"Mengaktifkan directory cache"
- chown -R proxy.proxy /cache1
- chown -R proxy.proxy /cache2
- chown -R proxy.proxy /cache3
- chown -R proxy.proxy /cache4
- chown -R proxy.proxy /var/log/squid/access.log
- sleep 3
- echo"Edit Squid.conf"
- wget -c http://samuderapase.ucoz.de/succescrew/squid.conf >/etc/squid/ #(sesuaikan dengan jaringan,memory,hdd dari PC Proxy anda)
- sleep 4
- nano /etc/squid/squid.conf
- echo"Pengecekan file Squid.conf"
- squid -k parse
- echo"membuat direktori swap"
- squid -z
- squid -DFY
- echo"Reboot Squid Proxy"
- /etc/init.d/squid restart
- echo"cek squid apakah sudah berfungsi" sleep 3 "========================================================"
- ps -ax|grep squid
- echo"Terakhir jalankan perintah :" sleep 4
- iptables -t nat -A POSTROUTING -j MASQUERADE
- #thanks ^_^Source #http://pastebin.com/Y2fneUsa
Wednesday, 28 March 2012
Linux
0 Response to "install squid otomatis di Debian"
Post a Comment