DHPC issue - discoverable, but won't connect from laptop

Hi!

I am experiencing issues with my DHCP server which is set up on my RBP.

Expected Behaviour:

Connect to WiFi from the laptop works with automatic settings, thanks to DHCP.

Actual Behaviour:

Cannot get address unless I set up IP, mask, gateway and DNS manually.

More info

  • LAN: 10.7.0.0/24;
  • Gateway is a Netgear RAX80 on 10.7.0.1;
  • RPB4 8 Gb with Raspberry Pi OS Lite (32 bit) is on 10.7.0.1;
  • Upstream DNS: cloudflared on 127.0.0.1:53000;
  • I have disabled DHCP on my router and activated it on Pihole;
  • It seems the DHCP is discoverable on the network when running nmap --script broadcast-dhcp-discover -e wlan0 on my laptop: see output below;
  • Firewall: nftables.

Config

  • Debug token: https://tricorder.pi-hole.net/4i39jsoc84
  • /etc/nftables.conf: pastebin.com/5Nrgbq4k
  • /etc/cloudflared/config.yml: pastebin.com/7b4n0Tre
  • /etc/pihole/setupVars.conf: pastebin.com/D8AqUNjf
  • /etc/dhcpcd.conf: pastebin.com/qAHHDYY3
  • nmap discover: pastebin.com/twFXi4Nr

Have a nice day!
hermesd

The debug log shows that DHCP is working:

*** [ DIAGNOSING ]: Discovering active DHCP servers (takes 10 seconds)
   Scanning all your interfaces for DHCP servers
   Timeout: 10 seconds
   
   WARN: Could not sendto() in send_dhcp_discover() (/root/project/src/dhcp-discover.c:223): Network is unreachable
   * Received 300 bytes from eth0:10.7.0.2
     Offered IP address: 10.7.0.153
     Server IP address: 10.7.0.2
     Relay-agent IP address: N/A
     BOOTP server: (empty)
     BOOTP file: (empty)
     DHCP options:
      Message type: DHCPOFFER (2)
      server-identifier: 10.7.0.2
      lease-time: 86400 ( 1d )
      renewal-time: 43200 ( 12h )
      rebinding-time: 75600 ( 21h )
      netmask: 255.255.255.0
      broadcast: 10.7.0.255
      dns-server: 10.7.0.2
      domain-name: "hermes"
      router: 10.7.0.1
      --- end of options ---
    
   DHCP packets received on interface lo: 0
   DHCP packets received on interface wlan0: 0
   DHCP packets received on interface eth0: 1

Hello, thank you for your reply.

I solved the issue by adding the following line /etc/nftables.conf:

udp sport bootpc udp dport bootps ip saddr 0.0.0.0 ip daddr 255.255.255.255 accept comment "Accept DHCPDISCOVER (for DHCP-Proxy)"

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.