If you don't know what is squid, please don't think that it's a normal squid that live in the sea!
Squid is a web proxy / web caching for your gateway/router.
The purpose is to cache image,css,js etc that can reduce your router's workload by supplying to the browser directly from your proxy. This can reduce waiting time and make your browsing more fast.
Installing
# pkg_add -i squid
Ambiguous: choose package for squid
a 0:
1: squid-2.7.STABLE9p15
2: squid-2.7.STABLE9p15-ldap
3: squid-2.7.STABLE9p15-ldap-snmp
4: squid-2.7.STABLE9p15-ntlm
5: squid-2.7.STABLE9p15-snmp
Your choice: 1
squid-2.7.STABLE9p15: ok
The following new rcscripts were installed: /etc/rc.d/squid
See rc.d(8) for details.
Look in /usr/local/share/doc/pkg-readmes for extra documentation.
# /etc/rc.d/squid
usage: /etc/rc.d/squid [-df] {start|check|reload|restart|stop}
Yey, now your OpenBSD box will serve as a web proxy :)
Configuration file:
/etc/squid/squid.conf
Transparent Proxy:
http_port 127.0.0.1:3128 transparent
Squid with pf:
pass in quick log inet proto tcp to port 80 divert-to 127.0.0.1 port 3128
Squid is a web proxy / web caching for your gateway/router.
The purpose is to cache image,css,js etc that can reduce your router's workload by supplying to the browser directly from your proxy. This can reduce waiting time and make your browsing more fast.
Installing
# pkg_add -i squid
Ambiguous: choose package for squid
a 0:
1: squid-2.7.STABLE9p15
2: squid-2.7.STABLE9p15-ldap
3: squid-2.7.STABLE9p15-ldap-snmp
4: squid-2.7.STABLE9p15-ntlm
5: squid-2.7.STABLE9p15-snmp
Your choice: 1
squid-2.7.STABLE9p15: ok
The following new rcscripts were installed: /etc/rc.d/squid
See rc.d(8) for details.
Look in /usr/local/share/doc/pkg-readmes for extra documentation.
# /etc/rc.d/squid
usage: /etc/rc.d/squid [-df] {start|check|reload|restart|stop}
Yey, now your OpenBSD box will serve as a web proxy :)
Configuration file:
/etc/squid/squid.conf
Transparent Proxy:
http_port 127.0.0.1:3128 transparent
Squid with pf:
pass in quick log inet proto tcp to port 80 divert-to 127.0.0.1 port 3128
Comments