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

Squidguard - manually rebuild databases

Scheduled Pinned Locked Moved pfSense Packages
8 Posts 3 Posters 10.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.
  • S
    SourceFinder
    last edited by Nov 26, 2008, 2:10 PM

    I'm using pfsense 1.2.1 with squid 2.6.21_07, squidguard 1.3-1 and the shallalist. In the directory /var/db/squidguard I can see the config files for each destination. My own destination 'test' has got a domains and a domains.db file.

    When I want to modify these files directly (without using the GUI), I have to do this in the file domains. Next I have to rebuild the databases. According to the documentation on squidguard.org I have to type the next commands in the shell:

    squidguard -C all
    chown -R <squiduser>/var/db/squidguard/*
    Where <squiduser>should me my 'squid uid'

    I can't get this chown -R command get to work. What is my squiduser name? How can I find out? I tried to insert the IP-adress of the pfsense (chown -R 192.168.xx.1 /var/db/squidguard), but this didn't help. Error message: chown: No match. Done.

    Does anyone know the right method to update the databases in te shell? Thanks in advance!</squiduser></squiduser>

    1 Reply Last reply Reply Quote 0
    • M
      Monoecus
      last edited by Nov 26, 2008, 3:16 PM

      Why do you want to do this? It is more sensible to do it with the web interface as all your modifications will be saved in the config file.

      1 Reply Last reply Reply Quote 0
      • S
        SourceFinder
        last edited by Nov 26, 2008, 3:22 PM

        You're right, thats easier. But when I want to add a lot of sites and for example distribute them, for example to a new install, the manual way could work better.

        1 Reply Last reply Reply Quote 0
        • M
          Monoecus
          last edited by Nov 26, 2008, 3:26 PM

          No. You are much better off, when you do it over the web interface. Because you can then easily backup your config and copy paste it to the configs of your other pfSense boxes.

          1 Reply Last reply Reply Quote 0
          • M
            Monoecus
            last edited by Nov 26, 2008, 3:29 PM

            If you want to add really many sites, why don't you download your latest config.xml and manually add all the sites and then restore your pfsense box?

            1 Reply Last reply Reply Quote 0
            • S
              SourceFinder
              last edited by Nov 26, 2008, 3:52 PM

              Thank for your answer. Think you mean the squidguard_conf.xml in usr/local/etc/squidguard? I've opened it. As far as I can see, it's just putting the domains between the right lines. Have to admit, that looks a lot easier indeed! After your solution I added a domain. This had no direct effect, so I saved an applied in the general settings tab of squidguard. As soon as I save, the new added domain dissapeares out of this squidquard_conf.xml. Do I use the wrong file?

              1 Reply Last reply Reply Quote 0
              • M
                Monoecus
                last edited by Nov 26, 2008, 6:18 PM

                I was thinking about the config.xml file that you can get from a backup of your configs. You can also find it under /config/… The reason for changing that is that with every reboot, pfSense will load the configurations from this file into the system. So, just backup your pfSense and open and modify the file. Then, restore the config to your box and everything should be up and running.

                1 Reply Last reply Reply Quote 0
                • D
                  dvserg
                  last edited by Nov 29, 2008, 7:40 AM

                  Think you mean the squidguard_conf.xml in usr/local/etc/squidguard?
                  

                  Information file for debug.

                  SquidGuardDoc EN  RU Tutorial
                  Localization ru_PFSense

                  1 Reply Last reply Reply Quote 0
                  8 out of 8
                  • First post
                    8/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received