Captive Portal PfSense Network
-
Hello everybody,
I have to install a captive portal for an entreprise. But I didn't know very well PfSense and i'm wondering myself about network. I explain you the problem, this is my network :
Network : 172.20.33.128/25
Clients (Range 172.20.33.130 - 198) / 25 –-----> AP Extender Mode : 172.20.33.129 ----------> 172.20.33.199 :: Pf Sense :: DHCP --------> Internet
the AP Extender is TP Link WA730RE in AP Mode. I don't know if it can do routing processus (if it works in Layer 2 or 3) and I don't which gateway I have to give it : The Lan PfSense or nothing ?
I don't really know too where i have to install the DHCP server : In the AP, in the PfSense LAN...
What i thinked to do :
AP : Extender Mode Gateway : 172.20.33.199 and IP fixed
DHCP in PfSense Server (for clients behind the AP) :
Gateway : 172.20.33.129
DNS : 172.20.33.99 (with DNS Forward activated)But it doesn't work, the redirection to the captive portal's not here. I precise the captive portal is activated too.
If you can help me, would be great :)
Thank you very much.
-
how abt your pf info?
-
About my PF server :
Two interfaces : LAN (clients), fixed IP : 172.20.33.199 & WAN (Internet) : DHCP
DHCP Server activated on the lan, DNS Server distributed is the IP's interface LAN with DNS Forwarder activated.
Portal captive is activated in the Lan interface and use, for the moment, the user manager.
-
Hi guys, didn't know how but the captive portal is working now. I just set up the configuration I explained before and it works, maybe there was an error in the DNS.
Unfortunately, Internet doesn't work anymore. I have the authentification page, i fill in the form and the page stays exactly the same, without any sign of redirection. The browser seems searching for 1 sec and then stay in the form page. My WAN interface is connected and configured for DHCP so the gateway is written. For the Firewall and NAT, the rules are the rules per default, I didn"t change anything.
Another thing, my Wan connection is in fact in a Lan, so it means there are a firewall, different servers again… Do i set up specific rules in this case ?
-
Yes your DNS was wrong. Use pfSense as DNS server for your clients.
For your current problem check your firewall logs.