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

    2.8.0 config.xml wont apply with /etc/rc.reload_all

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 135 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.
    • B
      bergerf
      last edited by

      Hi all,

      to inject new routes to OpenVPN nightly we do following in 2.7.2

      • update /conf/config.xml
      • run /etc/rc.reload_all

      This is not working anymore with 2.8.0.
      A reboot after updating /conf/config.xml works, but I would avoid this.
      The OpenVPN Server config is not up to date after running /etc/rc.reload_all
      (/var/etc/openvpn/server1/config.ovpn)

      Is there another way of preparing the OpenVPN Server configuration? The WebGUI is no solution, the "save" button is also restarting the OpenVON service which leads to disconnects...

      thx

      stephenw10S 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Hmm. What routes are you adding that don't require restarting OpenVPN? Just local routes in the firewall?

        B 1 Reply Last reply Reply Quote 0
        • B
          bergerf @stephenw10
          last edited by bergerf

          @stephenw10

          Hello,

          we add some client target routes (custom option "push route <ip> <mask>") to modify the VPN "content".

          In 2.7.2
          The /etc/rc.reload_all was triggering the update of /var/etc/openvpn/server1/config.ovpn with the changes from /conf/config.xml)
          Afterwards the OpenVPN service was restarted

          • same like the "save" button in the WebGUI/OpenVPN menu.

          in 2.8.0 the config.ovpn stays unchanged if I execute /etc/rc.reload_all

          If I do a "reboot" the changes in config.xml will be applied to config.ovpn and OpenVPN service.

          Hope this is clearer now.

          BR

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator @bergerf
            last edited by

            @bergerf said in 2.8.0 config.xml wont apply with /etc/rc.reload_all:

            The WebGUI is no solution, the "save" button is also restarting the OpenVON service which leads to disconnects...

            This confused me since there's no way to update the running ovpn server config without restarting it and disconnecting users.

            But I would have expected that to be the same in 2.8. 🤔

            Are you clearing the cached config file (/tmp/config.cache) after making changes?

            B 1 Reply Last reply Reply Quote 0
            • B
              bergerf @stephenw10
              last edited by bergerf

              @stephenw10 said in 2.8.0 config.xml wont apply with /etc/rc.reload_all:

              his confused me since there's no way to update the running ovpn server config without restarting it and disconnecting users.

              right, so I modify the /conf/config.xml and a cronjob ( 3 am) is only executing /etc/rc.reload_all
              This was working in 2.7.2

              In 2.8.0 this is not working anymore.
              The changes in /conf/config.xml will not be applied.

              deleting /tmp/config.cache was not changing the behavior

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                What gets logged when you run that in 2.8?

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