Captive Portal and MAC Adressess



  • dear all,

    i have problem with captive portal. i am running pfsense 2.2.6 captive portal. and doing mac and voucher base authentication means i add first mac of device for static entry in DHCP and voucher for authentication. i face two problems.

    1. when i add static entry i have to restart the pfsense box. after restart the new device get IP.
    2. after restart the many time captive portal service didn't run and all the devices with static entry in DHCP get the internet service
    3. after restart i have to manually restart the captive portal many time.

    i am searching is there any way that without restart new static entry in dhcp for new device get the ip.



  • Hi,

    Try this :
    Add a MAC (and IP) to the "pfSEnse DHCP server". It will show up in the list "DHCP Static Mappings for this interface." and it will show up here also : "Status => DHCP Leases".
    DO NOT restart what so ever.
    BUT : on the the device that has this MAC address, disable it's interface - and re-enable it (or rip out the RJ45 cable - count to 10 - and it it back in).
    You will see in the DHCP server log that:
    The device asks for The Ip that had it before …
    pfSense will force it to the new IP when this MAC askes for an IP.

    I never had to reboot pfSense to do this.
    Actually, I nearly never reboot pfSense .....



  • @Gertjan:

    Hi,

    Try this :
    Add a MAC (and IP) to the "pfSEnse DHCP server". It will show up in the list "DHCP Static Mappings for this interface." and it will show up here also : "Status => DHCP Leases".
    DO NOT restart what so ever.
    BUT : on the the device that has this MAC address, disable it's interface - and re-enable it (or rip out the RJ45 cable - count to 10 - and it it back in).
    You will see in the DHCP server log that:
    The device asks for The Ip that had it before …
    pfSense will force it to the new IP when this MAC askes for an IP.

    I never had to reboot pfSense to do this.
    Actually, I nearly never reboot pfSense .....

    thank for reply Gertjan,  i will try and come back



  • dear i try your method in logs i found this

    Mar 24 11:01:38 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:01:42 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:01:49 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:02:06 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:02:10 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:02:14 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:02:22 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:02:38 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:02:43 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases
    Mar 24 11:02:47 dhcpd: DHCPDISCOVER from 10:30:47:31:fa:fd via re0: network 172.16.0.0/16: no free leases

    even i restart all services



  • Time to detail :
    Your network setup.
    DHCP server settings
    How many entries in dhcp leases file (here : /var/dhcpd/var/db )

    Use also all the https://www.google.fr/search?q=FreeBSD+dhcpd:+DHCPDISCOVER+no+free+leases&ie=utf-8&oe=utf-8&gws_rd=cr&ei=B6XzVtL1L4Pyav2Fr_gJ wisdom …..



  • @Gertjan:

    Time to detail :
    Your network setup.
    DHCP server settings
    How many entries in dhcp leases file (here : /var/dhcpd/var/db )

    Use also all the https://www.google.fr/search?q=FreeBSD+dhcpd:+DHCPDISCOVER+no+free+leases&ie=utf-8&oe=utf-8&gws_rd=cr&ei=B6XzVtL1L4Pyav2Fr_gJ wisdom …..

    i am running captvie portal with almost 220 device registered with us. i have 20 Mbps two links that i am using both by loadbalancing.


Log in to reply