I have an anonymous squid proxy server running and I would like it to drop requests from any non-approved IP.
I've limited access already via acl's in the squid config. However, if someone tries to access the proxy they get a default squid page advising access is denied. I'd like to remove that step and just have any requests to the proxy port dropped completely to obfuscate it further.
I have fail2ban setup to restrict ssh access. Would this be the best way to go by adding an additional rule for squid or is there a iptables command I could use instead?
Thanks!