Hello Eugene,
the error mean that packetfence is not able to contact the api.
Wrong username/password ?
Regards
Fabrice
Le 20-12-10 à 01 h 35, E.P. a écrit :
Thank you, Fabrice, as usual !
Yes, it looks like the maintenance patch was not applied (pf-maint.pl)
as it started pulling lots of packages when I started it.
But to my frustration it all ended up with nothing:
[root@pf conf]# /usr/local/pf/bin/pfcmd pfcron ubiquiti_ap_mac_to_ip
Died at /usr/local/pf/lib/pf/Switch/Ubiquiti/Unifi.pm line 204.
Once again, I’m a bit confused. If I decide to define all APs by IP
addresses (and I’d better do because there are many and they are all
in one 172.19.0.0/16 subnet) then I can have one entry in
switches.conf file
[172.19.0.0]
description=Ubiquiti APs
ExternalPortalEnforcement=Y
type=Ubiquiti::Unifi
controllerIp=172.16.0.XXX
wsTransport=HTTPS
wsUser=admin
wsPwd=XXXXX
But if I decide to have every individual AP added then I need to have
as many MAC based entries as I have all APs and all of them sharing
the section for Unifi controller IP ?
Eugene
*From:* Durand fabrice via PacketFence-users
<[email protected]>
*Sent:* Wednesday, December 09, 2020 5:45 PM
*To:* [email protected]
*Cc:* Durand fabrice <[email protected]>
*Subject:* Re: [PacketFence-users] Issues with Captive Portal and
Unifi Wireless
Hello Eugene,
the probable issue is because the switch is not defined on the
packetfence side. (18:e8:29:93:52:a8)
But you can add a switch range on pf (like 192.168.0.0/24 as switch
id, set the controller ip and set the http credential to connect to
the api) and there is pfcron task who will try to find all the bssid
of all the AP and will do a map between the mac and the ip of the AP.
First use the latest version + the maintenance patch (pf-maint.pl) and
to force the task do:
./sbin/pfcron ubiquiti_ap_mac_to_ip
to see what you have in the cache:
./bin/pfcmd cache switch_distributed list
You should be able to see Ubiquiti-18:e8:29:93:52:a8 in the cache.
Then retry to hit the portal
Regards
Fabrice
Le 20-12-08 à 23 h 23, ypefti--- via PacketFence-users a écrit :
Guys,
I’m resurrecting the old topic that I’ve never brought to a
conclusion and implementation.
Asking for a second opinion of those who could do it and for
Fabrice and Ludovic expertise.
Please help me! I do believe Inverse team tested their product
with Unifi WiFi.
I redirect a guest portal from Unifi to PF by using their option
called “use external portal server”
The endpoint normally associates to a guest SSID and web page
comes up showing this error.
pf.options.bc.ca resolves normally to the IP address of PF that
has captive portal listens on that IP address.
What drives me mad and is unknown to me is how this URL is formed
and why this URL contains the directory of Unifi controller, i.e.
q4b0wgkk.
Of course it doesn’t exist on PF and to me it is a reason I see
“Not implemented”.
What am I missing ? I can also attach captures done during this
connection attempt.
Eugene
_______________________________________________
PacketFence-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users