Membuat Proxy dengan Squid
Squid sangat berjalan baik pada Linux maupun Unix, untuk windows saya belum pernah menggunakan squid sebagai proxynya. Berikut adalah langkah2 membuat Webproxy dengan Squid:
1). Download squid di url berikut
http://www.squid-cache.org/Download/
2). Extract dan install squid
root@localhost:/# tar zxvf squid-3.0.STABLE4.tar.gz
root@localhost:/# cd squid-3.0.STABLE4
root@localhost:/# ./configure ‘–prefix=/usr/local/squid’ \
‘–enable-removal-policies=lru heap’ \
‘–enable-digest-auth-helpers=password’ \
‘–enable-async-io’ \
‘–with-pthreads’ \
‘–with-aio’ \
‘–enable-storeio=ufs diskd null aufs coss’ \
‘–enable-delay-pools’ \
‘–enable-snmp’ \
‘–enable-icmp’ \
‘–enable-htcp’ \
‘–enable-cache-digests’ \
‘–disable-wccp’ \
‘–enable-underscores’ \
‘–enable-useragent-log’ \
‘–enable-arp-acl’ \
‘–enable-pf-transparent’ \
‘–enable-ipf-transparent’ \
‘–enable-follow-x-forwarded-for’ \
‘–with-large-files’ \
‘–enable-large-cache-files’ \
‘–enable-default-err-language=English’
root@localhost:/# make && make install
4). Konfigurasi squid.conf
edit beberapa baris berikut untuk konfigurasi yang minimalis :
http_port 192.168.0.1:8080 transparent //jika ip kita 192.168.0.1
cache_dir ufs /squid/cache 10240 64 1024 // Direktory untuk cache disesuaikan
acl intranet src 192.168.0.0/24
http_access allow intranet
http_access deny all
icp_access allow intranet
icp_access deny all
5). Menjalankan squid
membuat cache dan menjalankan squid
root@localhost:/# /usr/local/squid/sbin/squid -z
root@localhost:/# /usr/local/squid/sbin/squid -sYD
Jika melakukan konfigurasi kembali pada squid.conf, berikut cara mereload nya :
root@localhost:/# /usr/local/squid/sbin/squid -k reconfigure

Kalau mac address gimana ya bro?
Comment by milanisti — March 6, 2009 @ 11:17 am
Bisa mas. tinggal ganti src menjadi arp saja . contoh
acl macallow arp [mac-address]
Comment by Administrator — March 6, 2009 @ 11:58 am