OPNsense Forum
Archive => 16.7 Legacy Series => Topic started by: QuentinC on December 23, 2016, 01:17:27 pm
-
Hello,
I've juste set-up my opnSense box.
I have one bridged connection between my LAN and my WLAN for the local network, one LAN for the internet access and I'm trying to setup a guest WLAN.
The wireless network works, but I'm unable to use the captive portal function.
It seems that the way to get the mac address have changed, in the logs, I get: "h0_wlan2 expires in 1005 sec" instead of the mac address.
This causes the clients to be disconnected immediately, and they cannot have internet access...
How can I fix this ?
Thanks,
Quentin
-
I'm replying to myself, the problem is solved for me by changing this line:
mac = line.split('at')[-1].split('on')[0].strip()
by this one:
mac = line.split('at')[1].split('on')[0].strip()
in arp.py ( https://github.com/opnsense/core/blob/master/src/opnsense/scripts/OPNsense/CaptivePortal/lib/arp.py#L64 )
Have a nice Christmas day !