Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Captive Portal also on NIC. How to configure DHCP?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Captive Portal also on NIC. How to configure DHCP? (Read 774 times)
WhiteTiger
Jr. Member
Posts: 73
Karma: 1
Captive Portal also on NIC. How to configure DHCP?
«
on:
December 15, 2023, 09:02:23 am »
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.
Logged
Seimus
Hero Member
Posts: 607
Karma: 59
Re: Captive Portal also on NIC. How to configure DHCP?
«
Reply #1 on:
December 15, 2023, 09:51:47 am »
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.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.
OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G -
VM HA(SOON)
N100 - i226-V | Crucial 16G 4800 DDR5 | S 980 500G -
PROD
WhiteTiger
Jr. Member
Posts: 73
Karma: 1
Re: Captive Portal also on NIC. How to configure DHCP?
«
Reply #2 on:
December 15, 2023, 07:25:06 pm »
I have already configured several VLANs, I was hoping not to have to create any more.
Thanks anyway.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Captive Portal also on NIC. How to configure DHCP?