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

    Assigning Static Ip or Pool of Static Ip's using DHCP

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 3 Posters 527 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.
    • A
      ahmed20n8
      last edited by

      How can I assign static Ip or Pool of static Ip's using dhcp to users authenticated through captive portal ?
      Lets say a user auth's on 3 of his devices using same user/pass, I want to assign this user a specific pool of ip addresses wherein the ip addresses will have specific firewall & trafic shaper rules
      I have installed FreeRadius and tried assign static ip through that too but didn't worked
      I want to do it without using any vlans/assigning multiple interfaces
      Any Idea ?

      F 1 Reply Last reply Reply Quote 0
      • F
        free4 Rebel Alliance @ahmed20n8
        last edited by

        @ahmed20n8 hi,

        Because DHCP process is made before connecting to the captive portal, it is not possible to assign specific IPs to users passing through the captive portal

        Dedicated vlans is normally the correct way to resolve this issue.

        GertjanG 1 Reply Last reply Reply Quote 0
        • A
          ahmed20n8
          last edited by

          Alryt Thankyou

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @free4
            last edited by Gertjan

            @ahmed20n8 said in Assigning Static Ip or Pool of Static Ip's using DHCP:

            I have installed FreeRadius and tried assign static ip through that too but didn't worked

            @free4 said in Assigning Static Ip or Pool of Static Ip's using DHCP:

            Because DHCP process is made before connecting to the captive portal, it is not possible to assign specific IPs to users passing through the captive portal

            Why not ?

            .... but assigning a "DHCP Static Mappings" for the IP on the captive portal's DHCP server page is possible.
            This way, the device will always obtain the same IP. That IP should be outside of the DHCP's server portal pool range.
            I just tried it : it works. My device obtained the static DHCP lease == always the same IP.

            I could now apply special "IP" conditional conditions with firewall rules .... didn't tied that.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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