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

    Configpath

    Scheduled Pinned Locked Moved pfSense Packages
    3 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.
    • L
      laleger
      last edited by

      I'm working on my first package and I'm having problems when I specify a configpath in xml files.

      For example, my xml file is named syslogng_advanced.xml but I have a configpath defined to store config in: ['installedpackages']['syslogngobjects']['config']

      When I add configuration via this xml file, pfsense writes the data under <syslogngadvanced>instead of <syslogngobjects>Is my understanding of the usage of configpath incorrect?</syslogngobjects></syslogngadvanced>

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

        take a look on a small package like ipguard, maybe it can help you.

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • L
          laleger
          last edited by

          Thanks marcelloc, I've looked at the ipguard xml in addition to squid and spamd.

          In the ipguard xml, the only difference appears to be the format (I've seen both formats out there so I assume both are valid).

          <configpath>['installedpackages']['syslogngobjects']['config']</configpath>

          VS.

          <configpath>installedpackages->package->ipguard</configpath>

          Is my understanding correct, that I can provide a custom configpath (one that differs from the name of the syslogng_advanced.xml file) and expect pfSense to put the config in the respective area of the config.xml file?

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