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

    OpenVPN has a pool of only 1 IP for clients

    Scheduled Pinned Locked Moved OpenVPN
    8 Posts 3 Posters 797 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.
    • P
      pweb
      last edited by

      Currently I have 2 clients configured, 1 on Windows 10 and 1 on Linux system. If I access from any system I get IP address 192.168.10.2 which is right. If I don't logout and login from other system too I get same IP address 192.168.10.2
      After a long time of searching I was not able to figure out where I have a mistake in my configuration, hope that someone can give me a hint.

      Regards
      Rene

      1 Reply Last reply Reply Quote 0
      • C
        conor
        last edited by

        You can run OpenVPN in site to site (/30) or with a pool (/24), looks like you are using the site to site settings,.

        200+ pfSense installs - best firewall ever.

        1 Reply Last reply Reply Quote 0
        • C
          conor
          last edited by conor

          72b72019-28b4-483c-a8d9-75bf5fe53b6d-image.png

          This setting allows me to have multiple connections.

          Also make sure if you are using certificate auth that each device has their own certs. Same certs would result in stealing IP addresses from the other connection or just break it.

          200+ pfSense installs - best firewall ever.

          1 Reply Last reply Reply Quote 0
          • P
            pweb
            last edited by

            My IPv4 Tunnel Network is set to 192.168.10.0/24 I hope you talk about this configuration

            C 1 Reply Last reply Reply Quote 0
            • C
              conor @pweb
              last edited by

              @pweb said in OpenVPN has a pool of only 1 IP for clients:

              My IPv4 Tunnel Network is set to 192.168.10.0/24 I hope you talk about this configuration

              The topology also needs to be set to subnet is it?

              200+ pfSense installs - best firewall ever.

              1 Reply Last reply Reply Quote 0
              • P
                pweb
                last edited by

                I think the hint with certificate per device is the important one. Currently both devices have same certificate. I have to change this then I hope it will work.
                Thank you very much for the quick response

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

                  @pweb said in OpenVPN has a pool of only 1 IP for clients:

                  Currently both devices have same certificate

                  See the Certificate as the user ID : if the same user logs in a second time, the other connection is stopped. The ID rests the same, so is the IP.

                  For every connection : when you create a User in the local user manager, a unique certificate will be created.
                  Exporting ans using the same VPN-client connection information on two PC's is no good ;)

                  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
                  • P
                    pweb
                    last edited by

                    Now I have second user with separate certificate and it works as it should.

                    Many thanks again for the great support

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