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

    Assigning Specific IP's to OpenVPN Clients

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 373 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.
    • T
      tman222
      last edited by

      Hi all,

      How does one go about assigning specific IP's to clients connecting through OpenVPN? Let's say for instance I had setup a OpenVPN server with tunnel network 192.168.150.0/24, and for firewall rule purposes I wanted a certain connecting client to always obtain the IP address 192.168.150.150 out of that tunnel address pool when they are connecting to the server. Is it as simple as setting up a client override for that particular client and then under IPv4 Tunnel Network just specifying 192.168.150.150/24? Or is there a different way to accomplish it?

      Thanks in advance for your help, I really appreciate it.

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

        Hi,

        it works exactly as you described it.

        -Rico

        1 Reply Last reply Reply Quote 0
        • N
          netblues @tman222
          last edited by

          @tman222 Just make sure you have used a unique common name while creating the certificate, since it matches on that.

          1 Reply Last reply Reply Quote 0
          • T
            tman222
            last edited by

            Thank you @Rico and @netblues - I really appreciate the help.

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