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

    OpenVPN does not start on boot

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    9 Posts 2 Posters 2.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.
    • L
      ldpaniak
      last edited by

      I have tried several snapshots recently (May 9-16) and for each of them, OpenVPN does not start on (re)boot.

      If it is started manually by re-saving the config, then a link comes up without error.

      Snapshots from the end of April (23-24) did not have this problem.

      Is this related to Bug 449?

      How does one manually start openvpn on the command line in BSD/pfsense?ย  Or, rather, what is the mechanism for starting openvpn on boot in pfsense?ย  I get errors like "openvpn does not exist in /etc/rc.dโ€ฆ"

      Thanks!

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

        Yes, it is related to bug #449

        I just go into each of my openvpn client pages and click save and this kickstarts them.

        What type of WAN do you have?

        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
        • L
          ldpaniak
          last edited by

          The single WAN is static IP, so no complications there.

          The problem is that OpenVPN is my only access to the system.ย  Clicking "save" after a reboot is not going to be practical.

          It would seem that a simple cron job could mind the link and restart as necessary until a more elegant solution is found.

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

            Hopefully we can track down and fix the bug so it's a non-issue in the immediate future. :)

            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
            • L
              ldpaniak
              last edited by

              Certainly a permanent fix is better than a kludge.

              If you give me some hints on where to look, I'll put some effort into tracking down this bug.

              Thanks.

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

                I'm not sure where the problem is at the moment, but there might be some hints in that ticket.

                I'll probably be working on it a little today if I get some time.

                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

                  I believe I've found the fix. After you update to the next snapshot, you'll still have to edit/save your OpenVPN tunnels once, but it should be fixed then.

                  I might add a bit of upgrade code to fix that for existing 2.0 users.

                  EDIT: Maybe no upgrade code, there is no way to tell and old style active (disabled = "") from a new style disabled (disabled = "") except during the actual upgrade process.

                  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
                  • L
                    ldpaniak
                    last edited by

                    Sounds good.ย  I'll grab the next snapshot and give it a try.ย  I don't have a need for fixing existing installs - it is beta code after all.

                    Cheers!

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

                      I've tested the latest snapshot on a VM and a real system and OpenVPN now starts autonomously on reboot.

                      Thanks for the quick fix!

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