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

    OpenVPN route deleted when assigning interfaces

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 3 Posters 3.6k 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.
    • V
      verwilst
      last edited by

      Hi,

      I noticed that, whenever I assign an interface to a network port, my OpenVPN route gets deleted. All VPN client connections are unable to access anything anymore until i manually restart the openvpn service through pfsense, which adds the route again. Any idea what this could be? Anyone experienced the same thing?

      A diff between before and after shows this:

      -10.253.0.0/16      10.253.0.2        UGS        0  4085384 ovpns1

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        does the problem occur even if you do not enable the interface ? Or does it occur when you enable the interface and assign an ip/dhcp/..?

        i've personally never noticed this before … but i've only added vlan interfaces when having ovpn's online ...

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

          That is expected the first time you assign an interface. It hasn't really been dug into because (a) assigning vpn interfaces isn't really necessary these days, so it happens rarely, and (b) it only happens the single time when assigning, and restarting the vpn fixes it.

          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
          • V
            verwilst
            last edited by

            Actually i'm just adding a new interface to a VLAN i just created before that. Nothing to do with the VPN server itself. If i have a VLAN per customer for example, every time I add a new customer VLAN, the route will be gone and i will have to restart the openvpn service. I guess that can't be normal? :)

            1 Reply Last reply Reply Quote 0
            • V
              verwilst
              last edited by

              Going to Interfaces -> assign, then deleting for example 'VLAN 123 on lagg0', then saving doesnt delete the route and openvpn is still working.

              Re-adding the same vlan to the interface removes the route and needs an openvpn restart.

              1 Reply Last reply Reply Quote 0
              • V
                verwilst
                last edited by

                Surely I can't be the only one experiencing this.. :)
                My guess is that it's a configuration issue?

                Anyone has any ideas what could make my openvpn route disappear?

                1 Reply Last reply Reply Quote 0
                • H
                  heper
                  last edited by

                  no clue … i've added tons of vlans while maintaining an openvpn connection without such issues

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