Captive portal is not working with gateway
-
I am a new of pfsense. so I might ask silly question.
I've been wondering it is possible or not.
I'm using a pfsense with DHCPserver,VLAN,CaptivePortal and policy base routing.client[10.200.200.50/24]–-pfsense opt1[VLAN131 10.200.200.10/24]–-router LAN [VLAN131 10.200.200.11/24]–-rouer wan
I set firewall gateway on opt1 to 10.200.200.11 (on DHCPserver config is default)
When I enable Captive portal on opt1 login portal show up but after authentication redirected but no internet connection.
When I disable Captive portal on opt1 I can connect to Internet.Is it possible using captive portal with firewall gateway(policy base routing) ?
-
Could anyone write anything on this thread ? I really want to know.
If my query is hard to understand, please let me know. -
Have you double checked your DNS? If assigning external DNS such as 8.8.8.8 to client and 8.8.8.8 is blocked in CP, users won't be able to browse. Can users ping external IP from behind CP, such as 8.8.8.8?
-
client[10.200.200.50/24]–-pfsense opt1[VLAN131 10.200.200.10/24]–-router LAN [VLAN131 10.200.200.11/24]–-rouer wan
All that is on the same subnet. The only possible way that might work is if pfSense was a transparent bridge and Captive Portal can't work on a transparent bridge.
client[10.200.200.50]–-[VLAN131 10.200.200.10/24]opt1 pfSense opt2[VLAN130 10.100.100.10/24]–-router LAN [VLAN130 10.100.100.11/24]–-router wan
client has default gateway 10.200.200.10
pfsense has default gateway 10.100.100.11
NAT should be disabled in pfSense
router has default gateway of WAN plus a route to 10.200.200.0/24 gateway 10.100.100.10
router must perform NAT for 10.100.100.0/24 and 10.200.200.0/24