Want to edit squid.conf manually.



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



  • @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?



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



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



  • @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/



  • @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.


Locked