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

    Want to edit squid.conf manually.

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 3 Posters 8.9k 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.
    • T
      thetzawko
      last edited by

      I want to edit squid.conf file manually bcoz I want to use time and rep_mime acls. There is no place to configure for those acls in WebGUI. I edit the file  /usr/local/etc/squid/squid.conf and then I apply the command squid - reconfigure. It's working fine until I reboot the PfSense. After reboot all configurations are gone. How can I add my acls manually and where? Help me please.

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        @thetzawko:

        I want to edit squid.conf file manually bcoz I want to use time and rep_mime acls. There is no place to configure for those acls in WebGUI.

        Did you tried custom_options field?

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 1
        • J
          jacob81286
          last edited by

          Pretty Simple… SCP Into pfSense and modify the file```
          /usr/local/pkg/squid.inc

          
          line 1424 change squid.conf to squid.old and save ie.```
          file_put_contents(SQUID_CONFBASE . '/squid.conf', $conf);
          ```to```
          file_put_contents(SQUID_CONFBASE . '/squid.orig', $conf);
          

          pfsense will build the config and save it to the new filename (squid.orig) this is ok because squid looks for the old one (squid.conf) so just edit squid.conf and save any changes that you want and you are good to go. only downside is you have to scp into and modify the file for any changes that you want to make…upside you get to see exactly what squid config you have...

          1 Reply Last reply Reply Quote 0
          • T
            thetzawko
            last edited by

            Hi jacob81286

            Your reply is very useful and valuable for me. Now, I can edit squid.conf file manually and I can use any acls and I can order acls to whatever order I want. Thank you very much. BTW, I found the line at line no 1434. I'm using pfSense 2.0.1. Anyway thanks a lot.

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              @thetzawko:

              Your reply is very useful and valuable for me.

              Why do you install package gui if you are not going to use it? ???

              Install squid via pkg_add on console this way you get squid without gui.

              Take a look on available package at http://files.pfsense.org/packages/

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • T
                thetzawko
                last edited by

                @marcelloc:

                @thetzawko:

                Your reply is very useful and valuable for me.

                Why do you install package gui if you are not going to use it? ???

                Install squid via pkg_add on console this way you get squid without gui.

                Take a look on available package at http://files.pfsense.org/packages/

                Thank you for your instruction. This is my first time experience on pfSense. I had a lot of experience on rpm based linux. But I have no idea to do so on pfSense. When I use squid GUI I can configure basic setup for my environment. After that I edit the config file manually. I think this is a little easy for me. Anyway thank you.

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