OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: sens_ible on October 13, 2017, 07:53:25 pm

Title: [Solved] Captive portal for VLAN interface only?
Post by: sens_ible on October 13, 2017, 07:53:25 pm
I have read several posts in the OPNsense fora that people created a dedicated captive portal for one VLAN only, e.g. only for a Guest VLAN.

How can I do this? I have created a VLAN interface on the LAN interface. When I want to create a zone, the listbox for the interface only offers LAN. I can not find the VLAN interface I created before.
Title: [Solved] Captive portal for VLAN interface only?
Post by: sens_ible on October 14, 2017, 09:04:25 pm
Accidentally I found the solution:

1.) Create a new VLAN interface Interfaces/Other Types/VLAN

However, before you can use the new VLAN interface you have to assign and enable it.

2.) Go to Interfaces->Assignments and use the + to add a new interface.

I got stuck at this point before, because the new VLAN interface was not offered for assignment.

Actually it seems that I can only assign virtual interfaces after I have assigned all physical interfaces on my machine. After I had assigned all physical interfaces on my appliance, also the VLAN interface I had created before was offered for assignment.

After assigning and enabling the VLAN interface, this interface also appeared in the list of available interfaces for a new zone in the Captive Portal.