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

    How to trigger squidGuard package to export squidguard config?

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 1.3k 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.
    • J
      jeanmarieclement
      last edited by

      Hi,

      I want to have the SquidGuard package export its settings to the squidguard config (i mean, write the /usr/local/etc/squidGuard/squidGuard.conf and update the destinations in the db).

      On the webgui, I have to press the 'Apply' button on the 'General Setting' tab for this.

      How can I trigger this outside of the webgui? Shall I call the sg_reconfigure() function in the squidguard_configurator.inc? Or are there other, more recommended ways?

      Thanks,

      Jean-Marie.

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        PHP

        
        require_once('squidguard.inc');
        sg_reconfigure();
        
        

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

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