freebsd Squid

Posted: December 4, 2009 in Freebsd

Install squid

cd /usr/ports/www/squid21

make install

You need to build the Cache directory first.  The default is 100MB so if you don’t have that much room, or want more, modify /usr/local/etc/squid/squid.conf appropriately

# /usr/local/sbin/squid -z

after build the cache directory test the squid

# /usr/local/sbin/squid -NCd1

(Type Control C – to exit the squid)

after that put squid to rc.conf

squid_enable=”yes”

One more thing if you using squid as a proxy than dont let anyone by pass you proxy ;p

edo = your lan

ipfw add 220 deny tcp from any to any 80 via ed0

ipfw add 230 deny udp from any to any 80 via ed0

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s