set up squid proxy on fedora core 4 box to go to specified websites ------------------------------------------------------------------- [root@igloo squid]# chmod u+s /usr/lib/squid/pam_auth [root@igloo squid]# ls -al /usr/lib/squid/pam_auth -rwsr-xr-x 1 root root 9960 Sep 6 18:03 /usr/lib/squid/pam_auth in squid.conf file: ... debug_options ALL,1 33,2 28,9 # enable debug info in cache.log ... auth_param basic program /usr/lib/squid/pam_auth # enable pam authentication auth_param basic children 5 auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours auth_param basic casesensitive off ... acl passwordcheck proxy_auth REQUIRED deny_info ERR_ACCESS_DENIED passwordcheck # error page in "/usr/share/squid/errors/English/ERR_ACCESS_DENIED" ... acl to_unimacq dst 137.111.0.0/16 http_access allow to_unimacq passwordcheck # And finally deny all other access to this proxy http_access allow localhost http_access deny !passwordcheck # to display error page, you have enable this!!! http_access deny all |