• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 668 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 Sep 26, 2022, 6:00 PM

    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.'

    B 1 Reply Last reply Sep 26, 2022, 6:09 PM Reply Quote 0
    • B
      bingo600 @randyway
      last edited by bingo600 Sep 26, 2022, 6:18 PM Sep 26, 2022, 6:09 PM

      @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 Sep 26, 2022, 6:25 PM

        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
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received