Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Custom ACL rules in squid

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 5.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      danesco
      last edited by

      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 work

      acl 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.

      1 Reply Last reply Reply Quote 0
      • M
        mhab12
        last edited by

        Edit squid.inc - this is the file that builds squid.conf when the service starts.

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          That's /usr/local/pkg/squid.inc if you're having trouble locating the file.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.