Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Assigning tunnels, hostnames, and IPs to clients in OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 575 Views 1 Watching
    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.
    • H
      hockeyfreak
      last edited by hockeyfreak

      When assigning users to the OpenVPN, I'm using a tunnel network of 192.168.60.0/24. All my other traffic subnets are .20, .30, .40, and .50. Do I have to use a separate subnet? It's just me or my family, not a business environment. Can I just assign the tunnel network as the .40? If I have to use .60, should I create an interface and enable DHCP over it so I can see it in my status list?

      If I use .40 as tunnel, and if I already have a static IP for my phone on that network, can I assign the same IP, or can the same MAC address device even be on that network?

      Lastly, how do I assign a hostname to the device that logs into OpenVPN? There's no interface for .60, and none of the IP's show up in the DHCP list. I can't find any client overrides to assign a hostname. It makes it easier when searching through Pihole query log.

      1 Reply Last reply
      Reply Quote 0
      • H
        hockeyfreak
        last edited by

        After playing around, I can assign the .40 tunnel, but can't assign the same IP that I normally reserve for my phone on that subnet or I get no internet service. I get randomly assigned IP of .40.2. That IP has no hostname in the Pihole query list and does not show up in the DHCP status so I can assign a static IP and give it a hostname.

        I'm at a loss how to assign a hostname. I know it's trivial, but if I was running it with several hundred VPN users, I would think there's a way to assign hostnames when they log on. I've googled and searched, and I can't find how.

        Thanks for any help.

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy