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

    Packages and XMLRPC Sync

    Scheduled Pinned Locked Moved pfSense Packages
    11 Posts 5 Posters 15.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.
    • marcellocM
      marcelloc
      last edited by

      Hi Jimp,

      The pfsense system settings enable only one host to sync and at least on packages I'm maintaining I need a list of hosts to sync and in some cases the host do not has the same password.

      I could add a checkbox to use the system sync settings user and password or a custom list of servers or password.

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

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Well the packages should really conform to the system design where possible.

        Overriding is fine in special cases, as long as there is a way to use the system settings.

        Multiple sync hosts could still be done by cascading, but if the package's sync code is being used separately from the firewall's built-in sync, then that would be a special case anyhow.

        Eventually it would be nice to support multiple sync hosts in the firewall directly, but that's a bit of a different issue. Hammer for another nail.

        I suspect more often than not, the built-in sync settings would be sufficient for people wanting to use them in an HA/CARP type setup.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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

          Good point. I'll update packages I'm maintaining.

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

          Help a community developer! ;D

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

            Take a look on squid3 new sync gui.  :)

            squid_sync.png
            squid_sync.png_thumb

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

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Looks great  ;D

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • N
                Nachtfalke
                last edited by

                Hi,

                the XMLRPC sync settings I did for freeradius2 and squidguard were simple copies of another package because I do not really know what happens exactly in the code.  ::)

                What seems to be usefull (request from users on forum) is the fact to sync to different hosts and the option to temporarily disable this host. (freeradius2).

                So if I could speak just for me I just need the ability to sync to different hosts with different passwords and to globally enable/disable syncing this package or not.

                If there is a "pfsense-way" to build XMLRPC pages I will try to do that for freeradius2 package and squidguard. :)

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  marcelloc seems to be the best.

                  Give the user the option to use the system settings if they wish, and if they'd prefer custom options, then they can use that instead.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    Bumping this and making it sticky to get some more attention. If you maintain a package that has sync code, please consider using the system's existing sync settings at least as an option.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • A
                      adam65535
                      last edited by

                      This thread was very informative.

                      I do wish the users/groups and certificates had the same option as these packages to sync to multiple ips with different passwords.  It would make setting up multiple sites owned by 1 company (without VPN, radius, ldap, connectivity) much easier.  The users, groups, certificates are mainly used for remote management by a groups of people using openvpn.

                      I wonder if it would be easy to do with a script using the built in sync code.

                      1 Reply Last reply Reply Quote 0
                      • D
                        doktornotor Banned
                        last edited by

                        @marcelloc: Ever considered splitting this to a separate inc and getting it included into core? I find your code in lots of packages, fixing the same comment typos and code style everywhere. It's most completely identical otherwise, except for some customized log messages… Sounds really like a waste of time to maintain the code in loads of places. In some packages, most of the PHP code is the copy-paste of XMLRPC sync. Example - 2/3 of the actual code are XMLRPC sync.

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