Close
Social profiles

Client Address (src)

If you want to restrict/Allow the internet access to a specific host you can use the following directives. If your Network is 192.168.1.0/24, Then you have to include the below directives in the squid.conf file,
acl aclname src ip-address[/netmask]
acl aclname src addr1-addr2/netmask
acl aclname src hostname

Example

acl net src 192.168.1.0/24
acl net src 192.168.1.0/255.255.255.0
acl net src 192.168.1.0

Proxy IP Address (myip)

This will be used to block the IP address of the Squid server where the client connected.

acl aclname myip ip-address[/netmask]
acl aclname myip addr1-addr2/netmask
acl aclname myip hostname

Example

acl dialup_ip 192.168.1.2

Web Server Address (dst)

This will be used to block the IP address of the destination server.

acl aclname dst ip-address[/netmask]
acl aclname dst addr1-addr2/netmask
acl aclname dst hostname

Example

acl TEC dst www.techwithguru.com

Related Articles:

Close