Redrirect appliance wifi to captiveportal
-
hello world,
I'm new with pfsense but I found it easy to configure, powerful and very flexible.
I created a captive portal with authentication through vouchers, I connected the pfsense server's Wan to my firewall and LAN to my switch (I tagged the port to correct VLAN).
If I connect with the cable in lan everything works perfectly, but I'm having problem with the wireless.I use layer2 accesspoint that communicate with an appliance (model meru) with which you can manage multiple ssid on different vlan.
If I connect with laptop or with smartphone I receive correctly an ip from pfsense's dhcp but when I open the browser I don't redirected to the captive portal page and I can not navigate.
In configurations of maru appliance should probably enter the URL of the login page of the captive portal, someone know the address?If the problem is not only that anyone has any suggestions?
Thanks to all
-PS- Sorry for my English :'(
-
Did you enable Captive Portal on the pfSense interface to the VLAN used by the external WiFi Access Point?
-
yes, in fact connecting to the VLAN used by wifi via cable works.
connecting with wifi not.the problem should be the appliance that controls the accesspoint in layer 2, is not able to intercept and redirect calls on the captive portal page.
assuming that the pfsense server's wan address is 192.168.100.1, the page of the captive portal is 192.168.100.1:8000?
-
the problem should be the appliance that controls the accesspoint in layer 2, is not able to intercept and redirect calls on the captive portal page.
What you describe is not normally considered a layer 2 function.
Is the AP acting as a router or bridge?
-
the AP are connected in layer2 to its controller in network 192.168.1.x
Only the controller (appliance) have an ip address 192.168.1.10, all the AP haven't ip because they operate in layer2 with the controller.
My pfsense server have the wan on 192.168.2.x, both the Vlan (192.168.2.x and 192.168.1.x) are routing and managed by a layer3 switch.
My pfsense server have the lan on 192.168.100.x and it is the DHCP for that lan.
When I connect smartphone/laptop to the wifi-guest vlan(192.168.2.x) the device obtain the correct configuration by the dhcp server of pfsense (192.168.100.x) but when i try to navigate the browser report "timeout".
When I connect laptop to the wifi-guest vlan with the cable the device obtain the correct configuration by the dhcp server of pfsense (192.168.100.x) and when I try to navigate the browser go to the captive portal page, I insert the voucher and the session start correctly
So, the problem is certainly due to the controller but I do not understand what's wrong, on the controller I activated a external captive portal and I insert 192.168.100.1 and 192.168.2.1 (the lan and wan ip of pfsense) but still not work.
ok guys, I resolved myself the problem.
In controller setup I change the network class and now works!!!!!!!! :)
I still have another little problem, when open the browser you are redirect on captive portal login page, but if your default browser's page is httpS:\xxx the browser don't redirect automatically, but if you enter an http://xxx web site the redirect works again.
anyone has any suggestions?