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

    OpenVPN service doesn't start

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 641 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.
    • R
      randyway
      last edited by

      I'm not entirely sure, but I upgraded from CE to + over the weekend, and it seems that the OpenVPN service won't start since that upgrade. It may be unrelated, but it was working before that.

      In the system log, I have the below entry after I attempt to start the OpenVPN service. Any ideas what might be going on?

      Sep 26 12:46:31 php-fpm 377 /status_services.php: The command '/usr/local/sbin/openvpn --config '/var/etc/openvpn/server1/config.ovpn'' returned exit code '1', the output was 'Options error: Unrecognized option or missing or extra parameter(s) in /var/etc/openvpn/server1/config.ovpn:2: disable-dco (2.5.4) Use --help for more information.'

      bingo600B 1 Reply Last reply Reply Quote 0
      • bingo600B
        bingo600 @randyway
        last edited by bingo600

        @randyway said in OpenVPN service doesn't start:

        /var/etc/openvpn/server1/config.ovpn:2: disable-dco

        To me it seems like openVPN doesn't like the parameter on line two, in the config file : /var/etc/openvpn/server1/config.ovpn

        /var/etc/openvpn/server1/config.ovpn:2: disable-dco

        Edit:

        cat /var/etc/openvpn/server1/config.ovpn
        dev ovpns1
        disable-dco
        
        

        I'm on 22.05 , and have that in my config too , i have no isues starting my "server"

        My openVPN version on 22.05 is:

        openvpn --version
        OpenVPN 2.6_git amd64-portbld-freebsd12.3 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] [DCO] built on Jun  4 2022
        

        Wonder if this is your version ?
        /var/etc/openvpn/server1/config.ovpn:2: disable-dco (2.5.4)

        What version of pfSense+ are you running ?
        Did the update complete wo issues ?

        /Bingo

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

        1 Reply Last reply Reply Quote 1
        • R
          randyway
          last edited by

          I am on 22.05. It seems the upgrade didn't complete correctly. I found this post and tried the solution of running pfSense-upgrade -d. That showed 1 package to be installed and 40 to be upgraded. After completing the upgrades and rebooting, the OpenVPN service started and I am able to connect again.

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