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

    How to specify a pool of IPs to use in client specific overrides?

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 1.1k 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.
    • K
      Kei
      last edited by

      Hello,
      I am using OpenVPN with success, assigning a static IP for each user that I allow into my network, so I can manage the policies with more ease.
      For example, this is what my config looks like when it comes to the client specific overrides:

      USER_A
      ifconfig-push 192.168.8.2 255.255.255.0; push "route 192.168.5.0 255.255.255.0"

      USER_B
      ifconfig-push 192.168.8.3 255.255.255.0; push "route 192.168.6.0 255.255.255.0"

      However, the problem is that I now need to allow, let's say USER_C, to connect from three different devices, often all three at the same time.
      I assume that they can't possibily have the same IP, otherwise pfsense will not know how to treat the connections differently, so I belive I'm supposed to assign a pool of addresses, for example:

      USER_B
      ifconfig-push 192.168.8.4 255.255.255.0; ifconfig-push 192.168.8.5 255.255.255.0; ifconfig-push 192.168.8.6 255.255.255.0; push "route 192.168.7.0 255.255.255.0"

      However this does not seem to work.
      Could someone suggest a working solution for this problem?

      Thank you

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        @Kei:

        Could someone suggest a working solution for this problem?

        The correct answer is: Three different machine accounts or certificates.

        There isn't a good way (or perhaps any way) to accommodate one client with three static addresses in the way you describe. It's far easier and far more secure to configure them one account per device if they must use them simultaneously.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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