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

    OpenVPN Client Specific Overrides ot updated until server restarted

    OpenVPN
    openvpn problem clientspecific openvpn
    3
    9
    174
    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.
    • L
      Lagan
      last edited by Lagan

      pfSense 2.4.4-RELEASE-p3 (amd64) built on Wed May 15 18:53:44 EDT 2019
      FreeBSD 11.2-RELEASE-p10

      I have an openvpn Remote Access (SSL/TLS) server that is working great.
      Each client has Client-specific override to assign an IP address and push some IPv4 Local Network/s. The clients are all running Ubuntu 20 and the openvpn service that comes with it - OpenVPN 2.4.7
      I now want to remove the Local Network that is being pushed to each client.

      1. edit the override, delete the contents of the IPv4 Local Network/s field and save it
      2. edit it again to confirm the change has been saved.
      3. restart the vpn connection at the client end

      I expect the new settings (i.e. no local network being pushed) to be applied but it is not.

      It only applies the updated override if I restart the server. This disconnects all the other clients as well which I would prefer not to do.

      I have tried updating the contents of the override to some other value, and even deletion/recreation but I always have to restart the vpn server to apply the new updates.

      • Is this expected behaviour?
      • Is there anything I can do to manually update something in the background?
      • I realise it's old software, and it's on the timelie to update it, just not yet.

      Many thanks

      GertjanG 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @Lagan
        last edited by

        @Lagan said in OpenVPN Client Specific Overrides ot updated until server restarted:

        Each client has Client-specific ....

        Do you have full control over these clients ?
        if your clients are using this, then they will receive a notification when an update is avaible, and clients can (could/ should/must ...) upgrade.

        Or, the pfSense admin decided to stay on an very ancient OpenVPN server version that comes with pfSense 2.4.4. To upgrade the OpenVPN : upgrade pfSense. Like 2.7.2 or even 2.8.0 beta.

        Btw :

        44b0a5b9-1b25-42d5-8099-8d9301b85af3-image.png

        where you declare Client Specific Overrides.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • L
          Lagan
          last edited by

          Hi @Lagan

          Yes, I have full control over the clients.
          No, not using the Windows openVPN client. I should have said - the clients are all running Ubuntu 20 and the openvpn service that comes with it - OpenVPN 2.4.7

          As I said, an upgrade is planned, but not until after I have finished the work I'm doing now.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @Lagan
            last edited by

            @Lagan

            Would love to give an OpenVPN Client override example, but the thing is : my version is "the one from last week" (25.03B2 - comparable to 2.8.2) so for you it would be an example of what might be possible after you upgrade ...

            From what I recall, the client specific overrides were already there, way back in the past. You tell me ;)

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            L 1 Reply Last reply Reply Quote 0
            • L
              Lagan @Gertjan
              last edited by

              @Gertjan - I'm not sureif I haven't explained myself correctly - the client specific overrides are already there and being used. This ticket is about when the new settings are actually sent to the clients

              1 Reply Last reply Reply Quote 0
              • RicoR
                Rico LAYER 8 Rebel Alliance
                last edited by

                AFAIK, the OpenVPN RAS pushes the networks defined in the server's 'IPv4 Local Network(s)' setting, regardless of the CSO.

                -Rico

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @Lagan
                  last edited by

                  @Lagan said in OpenVPN Client Specific Overrides ot updated until server restarted:

                  Each client has Client-specific override to assign an IP address

                  Normally, my OpenVPN tunnel is 192.168.3.1/24 so the OpenVPN server usd 192.168.3.1, and the connected clients start use 1292.168.3.2 etc.

                  I decide to give my phone the IP 192.168.3.30 :
                  To identify my phone :

                  4a68b415-4aef-4e89-a3bd-89a5d9fc2c1f-image.png

                  the rest stays empty, up until this :

                  4b2b2cbf-3fc3-42a0-971c-d9f2889b76e9-image.png

                  and how, when my phone connects, it gets 192.168.3.30 instead of the usual 192.168.3.2.

                  Btw : I didn't know that this was possible. Google gave me this : Openvpn Client Specific IP Address.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    Lagan @Gertjan
                    last edited by

                    Hi @Gertjan and @Rico -

                    Thanks for your help. To be clear - I am happy with how to configure the overrides - this isn't point of this ticket.

                    The issue I am experiencing is in getting the new override to take effect.

                    Restarting the vpn connection from the client end sees the "old" override details being served (as verified in the server log)
                    The only way to I'm able to get the new override settings into play is to restart the vpn service on the server.

                    I would like the new override to take effect when I restart the client.

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @Lagan
                      last edited by

                      @Lagan said in OpenVPN Client Specific Overrides ot updated until server restarted:

                      I would like the new override to take effect when I restart the client.

                      Hummm.

                      It's possible that a save on the "Client Specific Overrides" page doesn't restart the OpenVPN server - I doesn't seem to do that.
                      Maybe it isn't needed, as the server has a setting :

                      client-config-dir /var/etc/openvpn/server1/csc/
                      

                      that tells the server to look into that folder for client special settings, the "Client Specific Overrides".

                      Anyway, I did restart the server, then connected the client and it got the '.30' IP.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

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