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

    CP and DHCPD Issue 2.6.0

    Scheduled Pinned Locked Moved Captive Portal
    6 Posts 4 Posters 861 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.
    • U
      Unreal516
      last edited by

      Configured my captive portal and for the past couple of days trying to figure out why my clients are unable to obtain an IP address. I keep recieving this error message in my Syslog for DHCPD:

      DHCPDISCOVER from xx:xx:xx:xx:xx:xx via vmx1
      DHCPOFFER on 192.168.40.21 to xx:xx:xx:xx:xx:xx via vmx1
      send_packet: Permission denied
      dhcp.c:4164: Failed to send 300 byte long packet over vmx1 interface.

      I have tried rebooting the CP service and the DHCPD service but not luck. The only work around is to reboot pfsense as a whole and then the system works as intended.

      The only issue is if I make a change with in captive portal ( Even making a slight change in the terms and conditions ) I would need to restart pfsense for the portal to work again.

      Also turning off the CP makes the DHCP service work.

      Hopefully someone else has this same issue.

      A GertjanG 2 Replies Last reply Reply Quote 0
      • F
        FSC830
        last edited by

        Just checked with my 2.6.0 virtual environment: no issues with DHCP service here.
        Client gets an IP without any problem.

        Regards

        1 Reply Last reply Reply Quote 0
        • A
          alimanzoor @Unreal516
          last edited by

          @unreal516
          I am also facing this problem, My all clients stoped DHCP IP obtain on all LAN sections whenever I active the captive portal. Moreover, all browsing stop on all LAN Sections.

          U 1 Reply Last reply Reply Quote 0
          • U
            Unreal516 @alimanzoor
            last edited by

            @alimanzoor Does rebooting Pfsense fix the issue?

            A 1 Reply Last reply Reply Quote 1
            • A
              alimanzoor @Unreal516
              last edited by

              @unreal516 i did not try i shall try it tomorrow. Will share result.

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

                @unreal516 said in CP and DHCPD Issue 2.6.0:

                I have tried rebooting the CP service

                The captive portal isn't a 'service'.
                A web server, a copy of nginx, is started and listens on port 'localhost' (127.0.0.1) using port 800x and 800x+ (if you are also using https).

                Because you want the DHCP server to work for your clients (static IP setup for not network aware clients) won't work ;) you have set up a DHCP server for your captive portal network.

                Normally, your "vmx1" should be your LAN.
                The captive portal interface should be ... vmx2, some "OPT1" second LAN type interface. As I advice you strongly to put your trusted devices on a LAN and the not trusted devices on another, OPTx network, dedicated for portal users, who are nontrusted by default.
                Otherwise : if you trust them, why bother : put an AP on your LAN network, give them your SSID password and you're done.

                Btw "vmx1" means : you are using a VM ?
                My advise : great ! But first make the portal work on a bare bone, and when it all works out very well, go add another layer of complexity.

                "dhcp.c:4164: Failed to send 300 byte long packet over vmx1 interface." means : there is an issue with the vmx1 interface itself. Not some firewall issue.

                Btw: the captive portal "ipfw" firewall rules, used by the captive portal, pass all DHCP (and DNS) traffic by default. You don't need to add "DHCP" type firewall rules on your vmx1 "pf" firewall
                rule tab.
                Also, firewall rules, pf and ipfw, filter incoming traffic. That is : traffic oming INTO the interface.
                Your error shows an issue with outgoing traffic, traffic generated by the dhcd (with a "d") server deamon.
                Your "dhcp" : is this an error from the dhcp client, typically running on the WAN interface ?

                Also : can't remember any more, wasn't there an issue (bug) 2.6.0. with "captive portal only accepts TCP" (and not UDP and ICMP) ? This would explain DHCP == UDP issues.
                What are your patches ?
                Using the pfSense System patches packages is not optional anymore ;)

                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.