Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add IP addresses to squid's whitelist

Tags:

I cannot find how to add IP addresses to squid's whitelist.

For example, I'd like to add address 130.125.110.20, or all addresses of network 130.125.110.*, or maybe only a defined port only 130.125.110.20:443.

So I'm expecting someting like acl whitelist IP xxx.xxx.xxx.xxx

How to do that?

like image 587
fralbo Avatar asked Aug 13 '16 15:08

fralbo


People also ask

How do I whitelist a range of IP addresses?

To whitelist, an IP or IP range provides the CIDR notation by open the 'Whitelisted IPs' tab and tap on the "Add IP" button then input the data. This will whitelist the entire IP addresses under that subnet or the IP CIDR and Port. For example:- 192.168. 0.0/24 will whitelist IP addresses 192.16.


1 Answers

You have to add the next line:

Acl your_network_name src xxx.xxx.xxx.xxx

Http_access allow your_network_name

You have to restart your squid server after adding a new acl entry, also you have to be carefull about which acls you are blocking and which you allow

like image 199
Vasile Adrian Brusturean Avatar answered Sep 25 '22 16:09

Vasile Adrian Brusturean