Navigation

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

    One server, 2 client connecting and get the same IP

    OpenVPN
    3
    4
    147
    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.
    • S
      spencer99 last edited by

      HI guys,

      Having issues with my OpenVPN server in that when i connect any more than one client to it they all get the same IP, 10.0.0.2/24. The default gateway is 10.0.01/24. Ill paste the links to he screenshots of my server config. The clients all have separate certificates all under the same user. The VPN also has an interface configured for it, set to a static IPv4 10.0.01/24

      https://imgur.com/piYEAt4
      https://imgur.com/ACAHKDU
      https://imgur.com/9GV2BPk

      Note - The only change in the config from the above images is the gateway creation is IPv4 only and the logging level is 3

      Any ideas whats causing the issue, am I basically being an idiot

      Thanks

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

        If the clients have the same user names check "Duplicate connection" in the server settings.

        1 Reply Last reply Reply Quote 0
        • S
          spencer99 last edited by

          Thank you so much, i thought not to tick that as each cert had a unique common name, I didnt realise it was username specific too

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

            You should NOT give any IP Configuration to the assigned OpenVPN Inerface (check https://www.netgate.com/docs/pfsense/book/openvpn/assigning-openvpn-interfaces.html).
            Why don't you just hand out one separate pfSense local User for each of your real User? This will add more Security and you are able to give different access rights based on Firewall Rules.

            -Rico

            2x Netgate XG-7100 | 11x Netgate SG-5100 | 6x Netgate SG-3100 | 2x Netgate SG-1100

            1 Reply Last reply Reply Quote 0
            • First post
              Last post