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

    Ensuring geting same IP for a client

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 597 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.
    • G
      gazoo
      last edited by

      I'm currently using remote access (SSL/TLS+User Auth) (TUN) with a cert. Is there a way to force a particular user client to always use the same IP address? My home LAN is on a 192.168.x.y/24 address system and the tunnel is on a 10.10.x.y/24. Everything is working perfect, but was curious if I could force user bob to the same IP on 10.10.x.y/24 address everytime he logs in.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Pretty sure you can do that by pushing an ifconfig command in a client-specific override.

        Can't remember the exact format.  I think the format depends on whether you're using topology subnet or topology net30.

        For net30 it's something like push "ifconfig 10.10.10.2 10.10.10.1" or something.

        Hopefully that's enough to get you going in the right direction.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          Unless it's already used. :P Make sure you create a big enough "pool", limit the number of connections as needed and use IPs from the end of the available range for this "static" assignment…

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