Bismillahirrohmanirrohim…
Langsung saja, pertama install freebsd dengan partisi seperti ini.
Setelah install freebsd trus langsung compile ulang. Caranya sbb
1. Masuk kesini
cgate# cd /usr/src/sys/i386/conf/
Copy file GENERIC dengan nama PROXY untuk dikokpile ulang. File generic ngga sah diapa-apin biar nanti buat backup kalo ada apa2 bisa compile lg.
cgate#cp GENERIC PROXY
2. Edit file PROXY
cgate#ee PROXY
Ganti kata GENERIC jadi PROXY
………..
ident PROXY
………..
Tambahkan ini di akhri file PROXY
………..
#pf
device pf
device pflog
device pfsync
#ipf direktory firewall /etc/sysconfig
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=10
options IPFIREWALL_DEFAULT_TO_ACCEPT
#untuk optimasi squid untuk dukungan diskd
#options MSGMNB=32768
#options MSGMNI=164
#options MSGSEG=8196
#options MSGSSZ=512
#options MSGTQL=2048
#optimasi coss dan diskd
options VFS_AIO
options MSGMNB=8192
options MSGMNI=40
options MSGSEG=512
options MSGSSZ=64
options MSGTQL=2048
options SHMSEG=16
options SHMMNI=32
options SHMMAX=2097152
options SHMALL=4096
#Untuk support altq cbq atau bandwidth shaping
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_PRIQ
options ALTQ_NOPCC
Kalau sudah silahkan disave.
3. Selanjtunya compile PROXY
cgate# config PROXY
Kernel build directory is ../compile/PROXY
Don’t forget to do “make cleandepend && make depend”
cgate# cd ../compile/PROXY/
proxy# pwd
/usr/src/sys/i386/compile/PROXY
cgate# make cleandepend && make depend && make&& make install && reboot
Setelah reboot silahkan dicek hasilnya
cgate# uname -a
FreeBSD cgate.cgatebsd.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Wed May 1915:33:08 UTC 2010 root@cgate.cgatebsd.net:/usr/src/sys/i386/compile/PROXY i386
Sampai tahap ini, Freebsd sudah selesai dikompile ulang. Selanjutnya yaitu install Squid. Caranya sbb:
1. Masuk kesini dulu,
cgate#cd /usr/local/etc
kemudian download squid
2. Setelah selesai download, extraxt filenya dan install
cgate# tar –zxvf squid-3.0.STABLE20.tar.gz
cgate# cd squid-3.0.STABLE20
cgate# ./configure -prefix=/usr/local/etc/squid -enable-gnuregex -enable-async-io=24 -with-aufs-threads=24 -with-pthreads -with-aio -with-dl -enable-storeio=ufs,diskd -enable-storeio=diskd,ufs -enable-removal-policies=heap -enable-removal-policies=lru
cgate# make && make install
cgate# pw groupadd squid
cgate# adduser squid -g squid -s /nonexistent
cgate# touch /usr/local/etc/squid/var/logs/access.log
cgate# touch /usr/local/etc/squid/var/logs/cache.log
cgate# chmod -R 777 /usr/local/etc/squid
cgate# chmod -R 777 /cache0/
cgate# chmod -R 777 /cache1/
cgate# ee /usr/local/etc/squid/etc/squid.conf
filenya silahkah klik dsini
buat direktory cache
cgate# /usr/local/etc/squid/sbin/squid –z
Jalankan Squid
cgate# /usr/local/etc/squid/sbin/squid –D
Cek apakah squid dah jalan.
cgate# top
Alhamdulillah squid dah jalan, selanjutnya install squid cache manager,, bersambung…
3 responses to “Install Squid freebsd”
zico
Juni 2nd, 2010 pukul 09:00
perbandingan antara UBUNTU dengan FreeBSD untuk squid itu sebenernya apa yah gan ? soale, kemaren sempet tanya² sama yang ngerti linux juga, katanya ndak ada bandingan nya. Tapi kenapa rata² semua yang pake Squid Linux, kok pada pake FreeBSD ?
Sekalian Gan, Request step by step dari awal install FreeBSD donk, kalo boleh mah, kirimin ke email aja, sampe selesai .. soale masih belajar full untuk squid FreeBSD.
Makasi Gan
jojo
Januari 24th, 2011 pukul 09:37
Gan aku ndah berhasil install squid dan udah jalan … gimana yah biar support “zph”
kalo bisa langkah2 nya gan
sebelumnya makasih yah…
Gunawan
Maret 7th, 2011 pukul 07:02
@jojo pake squid versi berapa dan di mesin apa ya ?