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

    Need help on understanding squid cli

    Scheduled Pinned Locked Moved webGUI
    4 Posts 2 Posters 1.2k 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.
    • R
      rookiecoder
      last edited by

      I am stuck in the following issues:
      How can I edit the squid.conf file via the pfsense shell?
      I tried type in /usr/local/pkg/squid/squid.inc but the shell said that no such file or directory exists. so I executed ls command and found out that no usr directory even exist.

      Isn't it should be created automatically when I first installed the squid package?
      Also I noticed that logdir and dbhome for my squid package does not exist when I use the pfsense cli. Is it because I didn't enable logging in squid package??

      I know the alternate solution is to edit the file via web config gui… but I want to know if I ever edit it that way, will it be saved after the squid service restarted?
      because I navigate to proxy filter squidguard: log page and I saw several options like blocked, filtergui log, filter log, where I can see that the files are editable but there was no any option to save (no save button) the changes.

      Please help and thanks.

      Living in another part of the world makes it hard for me to catch up to your time…

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        I suspect that you're making this harder than it needs to be.  What is it specifically that you're trying to do?

        1 Reply Last reply Reply Quote 0
        • R
          rookiecoder
          last edited by

          @KOM I want to modify the squid.conf because my access to the internet is denied and I read somewhere else that I have to modify the squid configuration file manually to access it but the thing is my pfsense said there were no such directories exist. And also after pfsense bootup, there is warning about my squidguard package that I want to change.

          as root, when I tried to enter /usr directory and it said that permission is denied.

          For additional info, I attached my squid access to internet error.

          squid.JPG
          squid.JPG_thumb

          Living in another part of the world makes it hard for me to catch up to your time…

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            First off, changes you make via are saved and will persist through a reboot. It would be kind of silly to do otherwise.  Edits via shell are likely to be overwritten by the GUI, depending on the package and config.

            Is this a brand new installation of pfSense?  Your problems appear to be deeper than Squid and SquidGuard.

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