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

Captive Portal and MAC Adressess

Scheduled Pinned Locked Moved Captive Portal
6 Posts 2 Posters 1.9k 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.
  • I
    Iahmad
    last edited by Mar 23, 2016, 9:18 AM

    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.

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Mar 23, 2016, 1:16 PM

      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 .....

      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
      • I
        Iahmad
        last edited by Mar 24, 2016, 6:05 AM

        @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

        1 Reply Last reply Reply Quote 0
        • I
          Iahmad
          last edited by Mar 24, 2016, 8:06 AM

          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

          1 Reply Last reply Reply Quote 0
          • G
            Gertjan
            last edited by Mar 24, 2016, 8:33 AM

            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 …..

            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
            • I
              Iahmad
              last edited by Mar 24, 2016, 9:00 AM

              @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.

              1 Reply Last reply Reply Quote 0
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received