Setelah Instalasi Freebsd Sebagai Gateway......Laluuuuuuuuuu
1. Installing Squid
You can install Squid using Ports but you can't play with configure options, so I'll cover the steps to install from a tarball.
You can download the Squid source from http://www.squid-cache.org. The lastest version is squid-2.4.STABLE6-src.tar.gz. Run the following commands as root.
# cd /path/to/tarball
# tar zxvf squid-2.4.STABLE6-src.tar.gz
# cd squid-2.4.STABLE6
tinggal pilih
1. #./configure --enable-kqueue \
--prefix=/usr/local/squid \
--enable-storeio=diskd,ufs \
--enable-ipf-transparent \
--enable-dlmalloc
2. # ./configure --enable-delay-pools --enable-ipf-transparent \
--enable-storeio=diskd,ufs --enable-storeio=diskd,ufs \
--disable-ident-lookups --enable-snmp --enable-removal-policies
# make all
# make install
2. Edit Squid Configuration File /usr/local/squid/etc/squid.conf
Bisa juga kita download configurasi squid.conf dari source yang udah kita kenal, contohnya disini aq udah punya configurasi di server ku, jdi tinggal aq download aja,...heheheeee
#cd /usr/local/squid/etc/
#mv squid.conf squid.conf.asli
#wget http://mail.uns.ac.id/~oktobrima/proxy/squid.conf
tinggal diseting ipnya sesuai ip local kita,...oke broooo
3. Create cache dir and create swap
# mkdir /usr/local/squid/cache : disesuaikan dengn squid.conf terletak pada folder mana: chown artinya mengubah kepemilikan menjadi user dan groupnya apa
# chown nobody:nogroup cache : nobody:nogroup disesuaokan dengan squid.conf pada user effectiv kalo ngak ada coba buat lagi,...oke useradd and group
#pw useradd squidi -s /usr/sbin/nologin
#pw group add squid
membuat directori cache1 2 3 sesuai di squid.conf
#mkdir /usr/cache1
#mkdir /usr/cache2
#mkdir /usr/cache3
ubah kepemikian sesuai di user efektifenya di squid.conf
#chown squidi:squid cache1
#chown squidi:squid cache3
#chown squidi:squid cache2
#chown squidi:squid *squid
#touch /usr/local/squid/var/logs/cache.log
#touch /usr/local/squid/var/logs/access.log
#chown squidi:squid access.log
#chown squidi:squid access.log
#/usr/local/squid/sbin/squid -k parse
#/usr/local/squid/sbin/squid -z
#/usr/local/squid/sbin/squid -sYDF
biar langsung masuk ke star up caranya
buat file squid.sh di
#touch /usr/local/etc/rc.d/squid.sh
#ee /usr/local/etc/rc.d/squid.sh
kasih aplikasi runing squidnya,../usr/local/squid/bin/squid -sYDF
setelh itu
#chmod 755 squid.sh
#./squid.sh
menambah divert ip agar proses browsing bisa terekam di access.log
#ipfw add 350 fwd ipwan,8080 tcp from iplocal/netmask to any www
#ipfw add 350 fwd 222.124.162.300,808 tcp from 192.168.1.1/24 to any www
kalopingin jalan sendiri ketika reboot,...masukkan di
#ee /etc/rc.firewall
met coba aja deeh,....muach
peace from oktobrima :-)
Thursday, June 7, 2007
Instalasi Proxy di Freebsd...Gethoooo
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment