You are not logged in.

#1 2022-11-29 18:19:45

gtf21
Member
Registered: 2020-06-28
Posts: 107
Website

DHCP "operation not permitted" with both iwd and dhcpcd

I would periodically be unable to connect to the internet and would have to disconnect then reconnect to the network to regain access. While I do have a VPN client installed (mullvad) this would happen whether it was connected or not. I discovered that this was because the DHCP lease would expire (on some networks far more frequently than others), and the `iwd` DHCP client would fail to obtain a new address. `journalctl -u iwd` would show the following log:

Nov 29 16:35:05 anaximander iwd[802]: [DHCPv4] dhcp_client_handle_offer:796 Entering state: DHCP_STATE_REQUESTING
Nov 29 16:35:05 anaximander iwd[802]: [DHCPv4] dhcp_client_rx_message:900 Entering state: DHCP_STATE_BOUND
Nov 29 16:35:05 anaximander iwd[802]: [DHCPv4] dhcp_client_rx_message:933 T1 expiring in 300361 ms
Nov 29 16:40:06 anaximander iwd[802]: [DHCPv4] dhcp_client_t1_expired:619 Entering state: DHCP_STATE_RENEWING
Nov 29 16:40:06 anaximander iwd[802]: [DHCPv4] dhcp_client_t1_expired:624 Sending request failed: Operation not permitted

I installed dhcpcd as an alternative, and seem to have a stable internet connection again, which is great, although it appears to exhibit a similar problem (with different symptoms -- I still have internet), as I have this in the log from `journalctl -u dhcpcd`:

Nov 29 18:09:37 anaximander dhcpcd[589198]: wlan0: leased 10.2.12.95 for 600 seconds
Nov 29 18:09:37 anaximander dhcpcd[589198]: wlan0: adding route to 10.2.12.0/24
Nov 29 18:09:37 anaximander dhcpcd[589198]: wlan0: adding default route via 10.2.12.1
Nov 29 18:09:37 anaximander dhcpcd[589198]: wg-mullvad: IAID 00:00:00:1b
Nov 29 18:09:37 anaximander dhcpcd[589198]: wg-mullvad: waiting for 3rd party to configure IP address
Nov 29 18:09:43 anaximander dhcpcd[589198]: wlan0: no IPv6 Routers available
Nov 29 18:14:37 anaximander dhcpcd[589198]: ps_root_recvmsg: Operation not permitted
Nov 29 18:14:41 anaximander dhcpcd[589198]: ps_root_recvmsg: Operation not permitted
Nov 29 18:14:48 anaximander dhcpcd[589198]: ps_root_recvmsg: Operation not permitted
Nov 29 18:15:05 anaximander dhcpcd[589198]: ps_root_recvmsg: Operation not permitted
Nov 29 18:15:36 anaximander dhcpcd[589198]: ps_root_recvmsg: Operation not permitted
Nov 29 18:16:39 anaximander dhcpcd[589198]: ps_root_recvmsg: Operation not permitted
Nov 29 18:17:44 anaximander dhcpcd[589198]: ps_root_recvmsg: Operation not permitted
Nov 29 18:18:22 anaximander dhcpcd[589198]: wlan0: failed to renew DHCP, rebinding
Nov 29 18:18:22 anaximander dhcpcd[589198]: wlan0: leased 10.2.12.95 for 600 seconds

The difference between iwd and dhcpcd is that iwd wouldn't rebind after failing to renew, I'd just lose connectivity entirely, so this situation is fine (for now), but I'm wondering if there's something I can fix here.

Offline

Board footer

Powered by FluxBB