Captive portal in existing network, on server with single NIC
-
Hi,
I already have working network with DHCP server at 172.16.34.1. There are some computers and now I want to do following:
I want to put a WiFi router in the network, let's say it will have IP 172.16.34.10.
In the network, there will be server running pfSense, let's say it will have IP 172.16.34.11. The server has only one network interface.
This WiFi AP will be somehow connected to server with pfSense at 172.16.34.11. When user connects to WiFi, he will get IP from DHCP server running on pfSense and will be redirected to Captive portal on pfSense.
I'm not so good in networking, but I think it could work like this:
The pfSense has got only one NIC available, which is used as WAN. Theoretically, it might could work, if I will setup VLAN on pfSense and use it as a LAN. Then, I will connect the router to this LAN (the router supports also PPPoE, L2TP, PPTP). But I don't know how to set it up and if this will work. Is this possible to do?
Thanks. -
pfSense is not a server, it's a router firewall.
For the portal interface, pfSEnse msu hand out the IP's (it should be the DHCP server).
There can only be one DHCP server on your network.
Captive portal should run on its dedicated interface.The pfSense has got only one NIC available, which is used as WAN. Theoretically, it might could work, if I will setup VLAN on pfSense and use it as a LAN. Then, I will connect the router to this LAN (the router supports also PPPoE, L2TP, PPTP). But I don't know how to set it up and if this will work. Is this possible to do?
I'm not saying that that's not possible. But you better be a network expert (and pfSEnse) first ;)
Normally, you should respect this rule : keep it simple. -
I have this implemented in my network.
You will have WAN connected in your internal network and will have the same settings as any other pc in your network (DHCP or static).
Assign Wireless card to WLAN Interface (name it WLAN) & Configure WLAN Interface.
Create Captive portal for that interface.
Stop DNS Server and start DNS Forwarder.
Configure DHCP Server for WLAN Interface.
Connect device on wireless from Pfsense and see if the redirect works when trying to access a webpage.