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

    OpenVPN Peer to Peer issues with pfSense 2.7.0

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 477 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
      opoplawski
      last edited by

      I've noticed issues with our OpenVPN Peer to Peer client configurations with the pfSense 2.7.0 update. Previously we set the tunnel network in the client configuration and this seemed to work fine.

      OpenVPN 2.5.4 amd64-portbld-freebsd1 2.3 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] built on Jan 12 2022
      openvpn[3465]: /sbin/ifconfig ovpnc5 10.8.4.2 10.8.4.1 mtu 1500 netmask 255.255.255.255 up

      But with the latest update I see:

      openvpn[5814]: OpenVPN 2.6.4 amd64-portbld-freebsd1 4.0 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] [DCO]
      openvpn[6542]: WARNING: Since you are using --dev tun with a point-to-point topology, the second argument to --ifconfig must be an IP address. You a
      re using something (255.255.255.0) that looks more like a netmask. (silence this warning with --ifconfig-nowarn)
      openvpn[6542]: /sbin/ifconfig ovpnc2 10.8.4.2 255.255.255.0 mtu 1500 netmask 255.255.255.255 up

      The second IP address argument to ifconfig becomes 255.255.255.0 instead of 10.8.4.1.

      We've had to remove the tunnel address from the client config and manually add

      ifconfig 10.8.4.2 10.8.4.1

      to the client openvpn config options.

      If I simply remove the tunnel option from the client I get:

      openvpn[21632]: OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options

      Should I file a bug or ?

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

        It's almost certainly a problem with your configuration. Check one of the other many threads in this category where people also claimed to have issues, they have all turned out to be broken configurations that worked in the past by sheer luck/coincidence.

        As OpenVPN matures they deprecate certain behaviors or make things more strict which can be confusing at times. There are also sometimes changes in the base OS that come into play. But in each case so far it's been something wrong in the configuration.

        The other threads are full of suggestions of things to look for and adjust.

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.