Cu 163 - backup restore: Addon hostapd: Devices can not connect: "Waiting for IP Address"

Multiple W-LAN devices had been confirmed
and their temporary DHCP addresses been moved to static IPs,
working reliably for years:
. . . Network → DHCP server: “Current fixed leases”
. . . Firewall → Blue Access: “Devices on BLUE”

Following the advice, I restored “hostapd.ipf” in a second go.
Afterwards, none of them could connect, re-trying again and again, until giving up finally.

Deleting the connection on one of them and trying to set it up a-new
results into waiting for “IP Addresse wird abgerufen”,
re-trying again until finally giving up.

Logs → Firewall logs:

DROP Wirelessinput blue0 UDP
… [0.0.0.0] …68(BOOTPC)
… [255.255.255.255]…67(BOOTPS)
nn:nn:nn:nn:nn:nn

iterated 7 x

WORKAROUND:

A) @ IPFire → DHCP configuration:
. Disable your wireless-related current fixed leases
. Do not delete them - keep them

B) @ DEVICE:
. Delete your current saved connection
. Re-connect a-new:
. . Android’s crazy “autonomy”:
. . . Nowadays, sending a “random” MAC “for security” (!)
. . . In my case, this was “5e:5e:9e:79:03:60”
. . . . . ehm - randomly ? No, always exactly the same, again and again!
. . . . . Great security improvement. Really!
. . . Change that extended configuration option to “use HW MAC” of your device!
. this will lead you to a current dynamic lease
. dis-connect your device
. . this will leave behind an expired lease containing your correct HW MAC Address.

C) @ IPFire → DHCP configuration:
. RE-enable your fixed lease
. . this will implicitly re-start dhcp

D) @ DEVICE:
. Re-connect a-new again
. . Now your configured fixed IP should be assigned to your device again.

No, the prospect of iterating this over all W-LAN members is NOT funny …
“We are not amused”.

Anybody with a better Idea? . . . Would be really welcome, indeed!

1 Like

WORKAROUND:

Completely re-installed and NOT restored “backup”.
Manually configured the usual basics.

Manually imported selective:

< /usr/ipfire/main/hosts

< /etc/hostapd.conf ← vim
? /etc/dhcp/dhcpd.conf: “empty-out” all "host fix{i} leases
< var/ipfire/dhcp/fixleases
< var/ipfire/dhcp/dhcpd.conf
? var/state/dhcp/dhcp.leases: “empty-out” all dynamic leases
< var/ipfire/wireless/config

H.t.h. some :slight_smile:

CONFIRMATION:
After this “clean-up”,
another backup → re-install → restore cycle rendered W-Lan devices access.
Note: you have to patch first:
. . . /usr/local/bin/backupctrl : Bug 12811
. . . /var/ipfire/backup/include : Bug 12817
. . . . . . Cu 163, 164, 165_RC : backup restore : DynDns entry missing - #10 by bonnietwin

1 Like