Proxmox vm internet not working

With the previous WiFi router, the Proxmox VM was able to connect to the Internet, but after changing to OpenWrt, the IP was not obtained by the VM and it could not connect to the Internet. The Proxmox host can connect if it has a fixed IP. Devices other than Proxmox are normal, but only the Proxmox VM cannot be assigned DHCP via WiFi.

Does your poxmox vm run OpenWrt?

Openwrt is installed on the lenovo computer, not on the proxmox.

I tried various things, but this is not a problem with dnsmasq compatibility, but rather the dhcp offer communication from openwrt is not passing. Even if I try installing kea instead of dnsmasq, the communication of dhcp 68 fails on proxmox.
kea logs

Thu Jan 30 03:24:52 2025 daemon.err kea-dhcp4[14920]: 2025-01-30 03:24:52.396 INFO  [kea-dhcp4.leases/14920.140663316650808] DHCP4_LEASE_OFFER [hwtype=1 bc:24:11:12:73:a5], cid=[ff:ca:53:09:5a:00:02:00:00:ab:11:4b:96:c9:42:47:77:97:60], tid=0x774edcc: lease 192.168.0.14 will be offered
Thu Jan 30 03:24:52 2025 daemon.err kea-dhcp4[14920]: 2025-01-30 03:24:52.396 INFO  [kea-dhcp4.packets/14920.140663316650808] DHCP4_PACKET_SEND [hwtype=1 bc:24:11:12:73:a5], cid=[ff:ca:53:09:5a:00:02:00:00:ab:11:4b:96:c9:42:47:77:97:60], tid=0x774edcc: trying to send packet DHCPOFFER (type 2) from 192.168.0.1:67 to 192.168.0.14:68 on interface phy0-ap0
Thu Jan 30 03:25:19 2025 daemon.err kea-dhcp4[14920]: 2025-01-30 03:25:19.274 INFO  [kea-dhcp4.dhcp4/14920.140663316794168] DHCP4_QUERY_LABEL received query: [hwtype=1 bc:24:11:e3:eb:ca], cid=[ff:ca:53:09:5a:00:02:00:00:ab:11:30:e2:8d:bc:00:58:a1:2b], tid=0x9632aa1b
Thu Jan 30 03:25:19 2025 daemon.err kea-dhcp4[14920]: 2025-01-30 03:25:19.275 INFO  [kea-dhcp4.packets/14920.140663316794168] DHCP4_PACKET_RECEIVED [hwtype=1 bc:24:11:e3:eb:ca], cid=[ff:ca:53:09:5a:00:02:00:00:ab:11:30:e2:8d:bc:00:58:a1:2b], tid=0x9632aa1b: DHCPDISCOVER (type 1) received from 0.0.0.0 to 255.255.255.255 on interface phy0-ap0
Thu Jan 30 03:25:19 2025 daemon.err kea-dhcp4[14920]: 2025-01-30 03:25:19.275 INFO  [kea-dhcp4.leases/14920.140663316794168] DHCP4_LEASE_OFFER [hwtype=1 bc:24:11:e3:eb:ca], cid=[ff:ca:53:09:5a:00:02:00:00:ab:11:30:e2:8d:bc:00:58:a1:2b], tid=0x9632aa1b: lease 192.168.0.35 will be offered
Thu Jan 30 03:25:19 2025 daemon.err kea-dhcp4[14920]: 2025-01-30 03:25:19.277 INFO  [kea-dhcp4.packets/14920.140663316794168] DHCP4_PACKET_SEND [hwtype=1 bc:24:11:e3:eb:ca], cid=[ff:ca:53:09:5a:00:02:00:00:ab:11:30:e2:8d:bc:00:58:a1:2b], tid=0x9632aa1b: trying to send packet DHCPOFFER (type 2) from 192.168.0.1:67 to 192.168.0.35:68 on interface phy0-ap0
root@OpenWrt:~#

So you need to run tcpdump / wireshark on dhcp client and on the (proxmox) ports in between.

This is a tcpdump of the hostapd port (phy0-ap0) of the wifi (wlan0) to which proxmox is connected

root@OpenWrt:~# tcpdump -i phy0-ap0 port 67 or port 68

tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on phy0-ap0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
22:46:53.684985 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:46:53.685316 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:47:57.571659 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:47:57.572020 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:49:02.029544 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:49:02.029895 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:50:06.686023 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:50:06.686334 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:51:11.600140 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:51:11.600463 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:52:15.479495 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:52:15.479836 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:53:20.466723 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:53:20.467079 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:54:25.323168 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:54:25.323525 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:55:28.887794 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:55:28.888137 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:56:32.297410 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:56:32.297769 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:57:36.243258 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:57:36.243592 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:58:40.581533 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:58:40.581964 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
22:59:44.671099 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
22:59:44.671449 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
23:00:48.963949 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
23:00:48.964302 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
23:01:52.004911 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
23:01:52.005282 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
23:02:55.939406 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
23:02:55.939782 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
23:03:59.527748 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
23:03:59.528067 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300
23:05:04.276828 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
23:05:04.277191 IP OpenWrt.lan.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300

proxmox port dumps

root@pve:~# tcpdump -i wlp129s0  port 67 or port 68
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on wlp129s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
17:23:56.533300 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from bc:24:11:e3:eb:ca (oui Unknown), length 296
17:23:57.195194 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from bc:24:11:6f:6d:fd (oui Unknown), length 300
17:23:57.961479 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from bc:24:11:12:73:a5 (oui Unknown), length 291
17:24:01.319091 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from bc:24:11:6f:6d:fd (oui Unknown), length 300
17:24:06.053240 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from bc:24:11:6f:6d:fd (oui Unknown), length 300
17:24:12.000167 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from bc:24:11:64:e4:6e (oui Unknown), length 317
17:24:14.928273 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from bc:24:11:6f:6d:fd (oui Unknown), length 300

So proxmox ate the packet?

No packets reach proxmox.