Below is my configuration:-
Its not working as expected as I am able to access whitelist.txt URLs from IPs in 10.0.8.0/24.
acl allowed_http_sites dstdomain “/etc/squid/whitelist.txt” acl allowed_http_sites dstdomain “/etc/squid/whitelist2.txt” http_access allow allowed_http_sites acl “/etc/squid/whitelist.txt” src 10.0.1.8/32 acl “/etc/squid/whitelist.txt” src 10.0.2.9/32 acl “/etc/squid/whitelist.txt” src 10.0.3.10/32 acl “/etc/squid/whitelist.txt” src 10.0.4.11/32 acl “/etc/squid/whitelist.txt” src 10.0.5.12/32 acl “/etc/squid/whitelist.txt” src 10.0.6.13/32 acl “/etc/squid/whitelist.txt” src 10.0.7.14/32 acl “/etc/squid/whitelist2.txt” src 10.0.8.0/24
Can someone help me in verifying the same and let me know what’s wrong with the config?
]]>Thanks for the great tutorial. I’m able to have 1 user with a password on the subnet but was wondering what the command is to activate more users at the same time.
So for example, from IP 20 to 40 have s1:s2 for user 1 and then 41 to 250 have d1:d2 for user 2.
I hope this makes sense.
]]>Yes, it is possible.
acl user1port myport 3128 acl user2port myport 3129 acl user1ip src 192.168.1.2/32 acl user2ip src 192.168.1.3/32 http_access allow user1ip user1port http_access allow user2ip user2port]]>
ex: user1 can only connect to port 3128 and user2 can only connect to port 3129.
Is this possible ?
Thank you so much in advance.
]]>