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

22.05 - DCO and OpenVPN problems?

Scheduled Pinned Locked Moved Plus 22.05 Development Snapshots (Retired)
8 Posts 2 Posters 4.2k 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.
  • O
    o3x3omasmc
    last edited by Jun 8, 2022, 11:48 AM

    Hello,

    I just updated to 22.05 and it seems to have broken my VPN to AirVPN as a client as well as my OpenVPN servers i connect to when travelling.
    Looking at the logs it appears to have to do with DCO.

    When i have DCO disabled, pfsense adds the "disable-dco" command, giving this error in the log:

    Jun 8 10:51:49 php-fpm 4315 /vpn_openvpn_client.php: The command '/usr/local/sbin/openvpn --config '/var/etc/openvpn/client1/config.ovpn'' returned exit code '1', the output was 'Options error: Unrecognized option or missing or extra parameter(s) in /var/etc/openvpn/client1/config.ovpn:2: disable-dco (2.5.4) Use --help for more information.'

    If i enable DCO it appears to connect/create the connection, but gets an ifconfig error. From the openvpn server log:

    Jun 8 13:16:48 openvpn 31427 /sbin/ifconfig ovpns6 192.168.99.1 192.168.99.2 mtu 1500 netmask 255.255.255.0 up
    Jun 8 13:16:48 openvpn 31427 FreeBSD ifconfig failed: external program exited with error status: 1

    The openvpn client log is similar, with different IPs, Naturally.

    Any tips?

    Everything worked fine before i upgraded, so I'm thinking it's on my end and not AirVPN.

    Thank you for any help!

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jun 8, 2022, 12:14 PM

      Your update must have failed in some way or did not fully complete. It isn't running the correct version of OpenVPN for 22.05-RC. It says it's OpenVPN 2.5.4 when it should be OpenVPN 2.6.0

      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!

      O 1 Reply Last reply Jun 8, 2022, 12:24 PM Reply Quote 0
      • J jimp moved this topic from OpenVPN on Jun 8, 2022, 12:15 PM
      • O
        o3x3omasmc @jimp
        last edited by Jun 8, 2022, 12:24 PM

        @jimp thank you. How's that possible? Is there a reinstall option?

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Jun 8, 2022, 12:27 PM

          It's not clear how that might have happened without seeing the upgrade log and console output. It could have been interrupted partway through, for example.

          If you go to the console and try running pfSense-upgrade -d it may pick up and complete the remaining items. You may also be able to run pkg update -f; pkg upgrade -y which would update the remaining items that are out of date.

          If you are running pfSense Plus software on Netgate hardware you can request installation media from TAC. If it's an installation you upgraded from CE to Plus you'd need to reinstall CE, upgrade to Plus 22.01, then upgrade to Plus 22.05 from there. Once 22.05 is officially released (and not an RC) then it will be possible to move from CE to Plus 22.05 directly.

          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!

          O 2 Replies Last reply Jun 8, 2022, 12:51 PM Reply Quote 2
          • O
            o3x3omasmc @jimp
            last edited by Jun 8, 2022, 12:51 PM

            @jimp Thank you. It is a Netgate SG4860 and i dont know if it was upgraded from CE. It is actually saying on the dash that there is a new version available and points to the same version i have. Strange. It also did that when i had 22.01 which is why i updated to 22.05. However clicking on system update says it up to date.

            The commands you list; i run them through SSH or is there a browser based command window in the gui? (Apologies for the somewhat basic question, i have ssh disabled for security purposes)

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Jun 8, 2022, 12:56 PM

              Ideally, run them from the serial console if you have access. SSH is OK if you don't have console access.

              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!

              O 1 Reply Last reply Jun 8, 2022, 1:00 PM Reply Quote 0
              • O
                o3x3omasmc @jimp
                last edited by Jun 8, 2022, 1:00 PM

                @jimp yes, i have console, i just dont remember all the settings. I used it once 3 years ago :)

                1 Reply Last reply Reply Quote 0
                • O
                  o3x3omasmc @jimp
                  last edited by Jun 8, 2022, 6:04 PM

                  @jimp said in 22.05 - DCO and OpenVPN problems?:

                  It's not clear how that might have happened without seeing the upgrade log and console output. It could have been interrupted partway through, for example.

                  If you go to the console and try running pfSense-upgrade -d it may pick up and complete the remaining items. You may also be able to run pkg update -f; pkg upgrade -y which would update the remaining items that are out of date.

                  If you are running pfSense Plus software on Netgate hardware you can request installation media from TAC. If it's an installation you upgraded from CE to Plus you'd need to reinstall CE, upgrade to Plus 22.01, then upgrade to Plus 22.05 from there. Once 22.05 is officially released (and not an RC) then it will be possible to move from CE to Plus 22.05 directly.

                  @jimp You absolute gem. The "pfSense-upgrade -d" via console did the trick and everything booted up just right. About 13 packages was updated. I have no idea why they were left in limbo during the last update via the GUI.

                  1 Reply Last reply Reply Quote 0
                  • I isewanus referenced this topic on Jun 28, 2022, 10:47 PM
                  • I isewanus referenced this topic on Jun 28, 2022, 10:57 PM
                  • B Bob.Dig referenced this topic on Jun 29, 2022, 10:01 AM
                  • W webdawg referenced this topic on Aug 4, 2022, 8:44 PM
                  • R randyway referenced this topic on Sep 26, 2022, 6:25 PM
                  5 out of 8
                  • First post
                    5/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received