I am in the process of building my own Linux-based router and have ran into an issue bridging the wifi and LAN networks. The box previously ran pfSense, but due to it's inability to use my internal wifi adapter, I decided to build my own router on top of CentOS 7.
The box only has one ethernet port, so I setup a managed switch to create two VLANs:
- enp3s0.10: LAN
- enp3s0.99: WAN
I setup hostapd, connected to the wifi access point, but noticed my device was unable to pull an IP from my DHCP server. The wifi devices connected to my network will need to be able to access other devices on the wired LAN, like my DHCP and DNS services.
I have tried bridging enp3s0.10 with the wifi adapter (wls4), but that only lead to my LAN port becoming inaccessible externally. Is it possible to bridge a VLAN with a wireless adapter, or is there a better way to accomplish this? How do the inexpensive consumer routers accomplish this?
As requested (thanks Damiano Verzulli), I have added a diagram of my network topology. Due to me having less than 10 reputation points, I was forced to provide a link.
- The router Linux box ("Router" in the diagram) has one ethernet port (enp3s0) and an internal wifi adapter (wls4)
- With the exception of enp3s0.99 (which receives it's address/subnet from my cable modem), all other devices on my LAN have an address in the 192.168.1.0/24 space