I have two networks and would like to use two Captive Portals.
On Net1 I would like to use the C.P. for all those who connect to an Access Point.
On Net2 I would like everyone to use C.P. even if they are connected with an ethernet cable and not just with an Access Point.
How can I do?
The two networks have two DHCP, but can I configure them so that those who connect via Access Point have a different address range from those who connect via a cable?
In other words, 4 address ranges, 2 ranges for DHCP on Net1 and two more for DHCP on Net2.
Not sure you can do more then one Captive portal. The point of Captive portal is to provide a "simple" way to authenticate users into the network.
If you remove them CP from the request all what you want to achieve - e.g. splitting LAN can be done via VLAN and per VLAN specific Rules.
https://docs.opnsense.org/manual/other-interfaces.html#vlan
https://docs.opnsense.org/manual/dhcp.html
https://en.wikipedia.org/wiki/VLAN
https://youtu.be/GxTA0b1gAsU?si=DxqOV8dp2y6mMLAh
Keep in mind you are using a Switch on which you connect HOSTs and AP, you will need to have switch capable of VLANs.
Regards,
S.
I have already configured several VLANs, I was hoping not to have to create any more.
Thanks anyway.