I am using the following hardware:
pfSense with 2 ports
TP-Link TL-SG801E switch with 8 ports
TP-Link TL-MR3420 with OpenWRT
My main idea is to create a guest wifi network with captive portal which is managed and issued by pfsense. Currently my setup is setting the wifi router into AP mode and let pfSense do all the work.
I tried to create a new SSID, a VLAN interface and tie it together on the OpenWRT router. (VLAN 20) I have created VLAN 20 with a subnet of 22.214.171.124/24 on pfSense and configured DHCP for the VLAN 20 interface.
However, when I connect to the guest SSID, I am not getting an IP address. I suspect that I had to do some configuration at my switch but I can't figure it out as I thought VLAN tags are supposed to just travel through the switch.
Here is a diagram of my setup. (Currently there is only one port going to and from pfSense and OpenWRT router:
Here are the additional screenshots for all the settings I've made for reference: