squid di OpenBSD

ringkasan cara pakai squid di OpenBSD 4.8:

1. install squid:
pkg_add squid-2.7.STABLE9-snmp

2. edit squid.conf untuk menempatkan dir cache:
cache_dir ufs /var/squid/cache 1000 16 256

3. edit squid.conf untuk izinkan akses dari local network:
acl localnet src 192.168.0.0/24 # RFC1918 possible internal network
http_access allow localnet
http_access deny all

4. edit squid.conf untuk listen di 127.0.0.1 port 3128 dan transparan:
http_port 127.0.0.1:3128 transparent

5. buat direktori cache dan rubah kepemilikan nya ke _squid:
squid -z
chown -R _squid:_squid /var/squid

5. jalankan squid
squid

catatan: setiap perubahan setting di /etc/squid/squid.conf, restart squid:
squid -k reconfigure

6. untuk pf, belokkan paket dari localnet ke internet port 80 ke 127.0.0.1 port 3128

$int_if=”ste1″
$localnet=”192.168.0.0/24″
pass in quick on $int_if proto tcp from $localnet to any port 80 \

rdr-to lo0 port 3128

 

 

semoga bermanfaat.

Muhammad Muntaza bin Hatta
Dari Provinsi Kalimantan Selatan

One thought on “squid di OpenBSD

  1. I was studying this post and though I would let you know that your blog template alignment is off. I seen it on two of my monitors to verify it. Its OK with IE6, however not with IE3.

Leave a comment