I have some devices I only want to reach the internet via VPN (e.g. Mullvad). I can run software on those devices to put them onto a VPN, but it’s cumbersome. It depends on the quality of the client to ensure traffic doesn’t go over my plain Internet connection.
Can I have an AP that routes all traffic it gets through the VPN?
Preferably, my topology would be:
[ISP modem] - [router] - [switch] - [normal AP]
................................. \ [VPN AP + sub-router]
I want a clean design where the client devices don’t have to care about the VPN. The wifi AP / sub-router should enforce VPN and just not connect if the VPN is unreachable.
I found pbr / policy based routing. Is that the best way to do this? Is Openwrt a good tool for the job? I’ve been running Openwrt about 6 years.