You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I had an issue that my configured WLAN was disappearing as soon as I would enable WPA2/AES on it.
After a lot of debugging, I found that the reason was this code in hostapd setup:
#!/bin/sh# wireless configuration script.
/sbin/ifconfig 'run0_wlan1' link '<mac>'
/usr/local/sbin/hostapd -B -P /var/run/hostapd_run0_wlan1.pid /var/etc/hostapd_run0_wlan1.conf
/sbin/ifconfig 'run0_wlan1' link '<mac>'
What I think is happening is because of -B flag, hostapd goes into background mode as soon as it starts, and the third line gets executed attempting to change mac address right away. Due to this interface gets into a non-functional state.
Note that this is happening even if I don't touch mac spoofing configuration at all and both macs from the script above are identical.
As soon as I comment out the code that generates ifconfig command and re-run the interface configuration, everything is working as expected.
To Reproduce
Steps to reproduce the behavior:
Create WLAN with no authentication
Confirm it's working as expected
Add WPA2/AES configuration (doesn't matter which options)
SSID disappears
Comment out the code generating the second ifconfig mac change
Save, apply config, reboot firewall
SSID appears as expected with WPA2 auth
Expected behavior
WLAN working with WPA2/AES enabled.
Describe alternatives you considered
Commenting out the part of the code that generates the second mac change fixes the problem.
I wonder if just removing the -B flag would also help since then the second mac change wouldn't happen right after hostapd is started but rather would ran after it's finished as intended. I haven't tested this solution.
Alternatively, I would be fine if those mac changing lines wouldn't generate at all if mac spoofing is not in use since it's just trying to change to the mac address it already has.
Additional context
WiFi module used: AW-NU706H / RT3070
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 24.7.9 (amd64).
The text was updated successfully, but these errors were encountered:
…d for #8079
All of this stuff looks really old, it seems to originate from pfsense/pfsense@864bf77, which might be an issue that doesn't actually exist anymore..
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
I had an issue that my configured WLAN was disappearing as soon as I would enable WPA2/AES on it.
After a lot of debugging, I found that the reason was this code in hostapd setup:
core/src/etc/inc/interfaces.inc
Lines 2093 to 2103 in f8e8969
The generated script looks like that:
What I think is happening is because of
-B
flag,hostapd
goes into background mode as soon as it starts, and the third line gets executed attempting to change mac address right away. Due to this interface gets into a non-functional state.Note that this is happening even if I don't touch mac spoofing configuration at all and both macs from the script above are identical.
As soon as I comment out the code that generates ifconfig command and re-run the interface configuration, everything is working as expected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
WLAN working with WPA2/AES enabled.
Describe alternatives you considered
Additional context
WiFi module used: AW-NU706H / RT3070
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 24.7.9 (amd64).
The text was updated successfully, but these errors were encountered: