Custom ACL rules in squid
-
Im trying to put custom rules in squid, in this case for a mac whitelist
When i put the code in custom options, this does not workacl xyz url_regex destino;
acl abc arp "/root/abc.acl";
acl payday arp "/root/arca.acl";
http_access allow xyz;
http_access allow abc;
http_access deny !payday;
deny_info ERR_SUSPENDIDO !payday;Even if i try to block an ip (to try if the squid its not compiled with arp support) does not work.
There is a way where i manually can edit a file and put my custom configs? because the squid.conf its generated automatically. -
Edit squid.inc - this is the file that builds squid.conf when the service starts.
-
That's /usr/local/pkg/squid.inc if you're having trouble locating the file.