Time for action – testing our access control example with squidclient
We now need to run the squidclient
to fetch http://malware.example.com/
to check if we get an access denied error or not. If we are running the squidclient
on the production server, then we don't need to use the -h
option to specify the hostname. In this scenario, we can run the squidclient
with the -p
option to specify the port.
./squidclient -p 8080 http://malware.example.com
However, if we are running the squidclient
on a different machine, we will have to use the -h
option to specify the hostname of the proxy server. In this scenario, we can run the squidclient
with the following configuration:
./squidclient -h proxy.example.com -p 8080 http://malware.example.com
If our access ...
Get Squid Proxy Server 3.1 Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.