But if you really want to do this, I would suggest using authpf. You
can set up squid to do the proxying without authentication, set up pf
to deny all traffic to the squid instance and set up authpf rules to
allow all authenticated users passage to squid. http://www.openbsd.org/faq/pf/authpf.html