Hi,

this is my first foray into linux. I've setup a squid proxy by following a guide and successfully managed to install squid into my vps.

The guide I followed allows access through the proxy when using a username/password. This all works perfectly.

I would like to change this so that squid automatically allows access through the proxy when the request originates from a few predefined IP addresses (no authentication username/password required) and refuses all others.

I believe this is possible using:
Code:
acl home_network src 192.168.1.0
but having tinkered with this for hours, I just cannot get the script to work. It either asks for a password, or just doesnt work.

I'd really appreciate any advice on what I need to change/tweak to make this work? Thanks in advance

Code:
logfile_rotate 5
emulate_httpd_log yes
server_persistent_connections off
forwarded_for off

http_port 3128 

auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/squid_passwd
acl ncsa_users proxy_auth REQUIRED
auth_param basic children 5
auth_param basic realm Unblock
auth_param basic credentialsttl 1 hours

acl user1 proxy_auth account1
acl user2 proxy_auth account2
acl user3 proxy_auth account3
acl user4 proxy_auth account4
acl user5 proxy_auth account5



tcp_outgoing_address 46.29.252.100 user1
tcp_outgoing_address 46.29.252.107 user2
tcp_outgoing_address 46.29.252.109 user3
tcp_outgoing_address 46.29.252.116 user4
tcp_outgoing_address 46.29.252.118 user5


acl manager proto cache_object

http_access allow ncsa_users
http_access allow user1 user2 user3 user4 user5
http_access allow all

request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access Proxy-Connection allow all
request_header_access User-Agent allow all
request_header_access Cookie allow all
request_header_access All deny all


miss_access allow ncsa_users
http_reply_access allow ncsa_users