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

    OpenVPN fails to start

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 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.
    • M
      MathiasMa
      last edited by

      Hello

      I'm trying to set up the OpenVPN server, but after I configured everthing, the deamon fails to start. When I check the system logs it shows this:

      /vpn_openvpn_server.php: The command '/usr/local/sbin/openvpn --config '/var/etc/openvpn/server1.conf'' returned exit code '1', the output was '' 
      

      So, that output message is weird. Is there anything I can check why this is failing? A simple reboot didn't solve the issue.

      Thanks a bunch!

      V 1 Reply Last reply Reply Quote 0
      • emammadovE
        emammadov
        last edited by

        Attach screenshots of Openvpn server configuration.

        Elvin

        1 Reply Last reply Reply Quote 0
        • M
          MathiasMa
          last edited by

          Thanks for your reply.

          See the images attached, I altered as little as possible on the default configuration.
          firefox_NLsemRZSgs.png firefox_LI3JuVeckq.png firefox_AmKcrSoxCy.png firefox_6mhSleU7Mr.png firefox_2fQKGAc5S3.png firefox_0iQiByib5j.png

          1 Reply Last reply Reply Quote 0
          • V
            viragomann @MathiasMa
            last edited by

            @MathiasMa said in OpenVPN fails to start:

            When I check the system logs it shows this:
            /vpn_openvpn_server.php: The command '/usr/local/sbin/openvpn --config '/var/etc/openvpn/server1.conf'' returned exit code '1', the output was ''

            So, that output message is weird. Is there anything I can check why this is failing

            The OpenVPN log would give you a more detailed information.

            However, as your screenshot shows, you have a wrong tunnel network setting. Set it to 172.22.0.0/20 (if you really need a /20 = 4096 addresses 🙄 ).

            1 Reply Last reply Reply Quote 1
            • M
              MathiasMa
              last edited by

              Thanks @viragomann Your advice instafixed it.

              4096 is indeed rather exagerated. But does it really matter?

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @MathiasMa
                last edited by

                @MathiasMa said in OpenVPN fails to start:

                But does it really matter?

                No, as long as you keep it in mind and don't add another subnet to pfSense which overlaps it, it doesn't.

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