I am on Debian Buster.
I have two network devices in my server. Wifi which is connected to the internet, and a ethernet card which is connected to a small intranet at home.
I have installed dnsmasq, which works as DHCP server for the intranet through the Ethernet card.
Other PCs connected to the same ethernet switch get an IP number as defined by dnsmasq. I can transfer files, etc no problems.
If the firewall ufw is enabled, then client PCs do not get IP numbers. As soon I disable de ufw, all the client PC get the IP number.
I allowed ports 53, 67, 68,... I am not sure how many ports I tried from different forums.
Currently, my ufw status is:
:~$ sudo ufw status: Status: active
To Action From
22/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
443/udp ALLOW Anywhere
DNS ALLOW Anywhere
67/udp ALLOW Anywhere
68/udp ALLOW Anywhere
53 ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/udp (v6) ALLOW Anywhere (v6)
67/udp (v6) ALLOW Anywhere (v6)
68/udp (v6) ALLOW Anywhere (v6)
53 ALLOW OUT Anywhere
I went over stack forums. They suggested port 67, udp, proto, etc nothing worked
Any idea?
EDIT I run tcpdump -i mydev Then I disable ufw, and the tcp log was:
23:00:18.939873 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:11:71:56:18:q6 (oui Unknown), length 286
23:00:21.788245 IP PersonalCloud.local.57586 > all-systems.mcast.net.4448: UDP, length 116
23:00:21.788333 IP PersonalCloud.local.57586 > 224.0.0.249.4448: UDP, length 116
23:00:21.941823 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 01:11:71:51:18:a6 (oui Unknown), length 286
23:00:22.780809 IP dnsmasq.netbios-dgm > 192.168.2.255.netbios-dgm: UDP, length 219
23:00:24.192421 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 14:01:6a:1c:1c:we (oui Unknown), length 300
23:00:24.945175 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 01:11:15:56:18:a6 (oui Unknown), length 286
23:00:27.211282 IP dnsmasq.17500 > 192.168.2.255.17500: UDP, length 449
23:00:27.211701 IP dnsmasq.17500 > 192.168.2.255.17500: UDP, length 445
23:00:28.927026 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 61:51:31:91:e3:4a (oui Unknown), length 300
23:00:29.127449 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 61:01:61:51:d1:31 (oui Unknown), length 300
23:00:30.808357 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 61:51:31:91:e1:41 (oui Unknown), length 300
23:00:33.551227 IP > 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 61:51:31:91:e1:41 (oui Unknown), length 300
23:00:35.618172 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 61:01:61:51:d1:31 (oui Unknown), length 300
23:00:37.899922 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 68:51:31:91:e1:41 (oui Unknown), length 300
23:00:42.752985 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 6a:01:61:51:dc:3e (oui Unknown), length 300
23:00:46.392675 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 61:51:31:91:e1:41 (oui Unknown), length 300
23:00:46.405925 IP dnsmasq.bootps > Mac-mini.bootpc: BOOTP/DHCP, Reply, length 300
I just copied-paste from I disabled ufw until I got IP numbers in the MAc-mini PC.
So, what is the port?
iptables-save
;ufw logging medium
orhigh
;tcpdump -i eth123 udp port 67 or port 68
; dnsmasq logging (you find how what can be logged and how; it's probably in the systemd journal).