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 # RFC1918 possible internal network
http_access allow localnet
http_access deny all

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

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

5. jalankan 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 port 3128

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s