Route app traffic through a VPN or second NIC?

Hi there! I’m running a an App in SCALE where I want to pass the traffic through a VPN. I also have a second router which routes all traffic through a VPN connected to TrueNAS as a second NIC. Is it easier to route traffic like this with a VPN in the same container as the app or by somehow making the app use a second NIC? I have tried to use VLANs to get the app to send traffic through the second NIC but I’ve so far been unsuccessful. Could anyone help? I’m running SCALE Fangtooth 25.04.

Thanks!

Official apps don’t have vpn support because you can’t add a vpn network to those docker container. You’d have to look into deploying the app via custom compose file with an inlcuded vpn containre like gluetun.
For apps to use your routers vpn network you’d have to bind the docker service to that nic which may prevent local access to them.
I’d say go the custom container + gluetun route…