Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What's my goal: know what employee are looking in Internet (what pages, how long etc; no caching).

What I did: install squid on openBSD

Problem: I see whole traffic (tcpdump), but I can't redirect it to squid

How I connected it:

         [ internet ]
[ switch with port mirroring ]  => [ squid server ]
           [ LAN ]

My squid server have two NIC: sis0 with IP address (management connection) and rl0 without IP address and with promisc mode (no bridge; whole traffic is going to that interface).

My pf.conf:

pass            # establish keep-state
block in on ! lo0 proto tcp to port 6000:6010
pass in on rl0 proto tcp from any to any port {80 443 3128 8080} rdr-to port 3128

I have nothing in /var/squid/log/access.log. nc -l 3128 print nothing.

My squid.conf:

cat /etc/squid/squid.conf | grep -v ^$ | grep -v ^#                                                                                                       
acl all src all
acl manager proto cache_object
acl localhost src
acl to_localhost dst
acl localnet src    # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
icp_access allow localnet
icp_access deny all
hierarchy_stoplist cgi-bin ?
cache_dir null /tmp
maximum_object_size 20480 KB
access_log /var/squid/logs/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
coredump_dir /var/squid/cache
share|improve this question

Your localnet in squid.conf is wrong: acl localnet src

Must be acl localnet src

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.