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

    IP collisions when using client overrides

    OpenVPN
    2
    2
    439
    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.
    • K
      kromek
      last edited by kromek

      We use client-specific overrides for some OpenVPN users to set a static IP (the IPv4 Tunnel Network option). Others by default get a random IP each time they connect. However, sometimes someone happens to get assigned an IP that is set as an override for another user, and we get IP collision, which results in major problems like no working DNS until I kill the random-person's connection.

      Is there something that can be done to prevent random IP pool from ever choosing IPs used in overrides, aside from assigning an IP override for every single user?

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

        @kromek
        The server assigns the pool IPs sequentially from the from the lowest up.
        So the CSO you should begin with the highest down. Ensure that your tunnel pool is large enough for all users.

        Also you may consider to uncheck "Duplicate Connection", so that a single client cannot grab multiple IPs.

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