I'm using a VPN connection provided by a commercial company. This provides me with a static IP.
There's an external database server I want to connect. The db server is configured to allow connections from whitelisted IP addresses. The VPN's IP Address is whitelisted.
I run a local IIS webserver and it must connect to an external database. However, the connection is blocked because Windows is not using the VPN connection for IIS.
I don't have access to db server configuration or VPN server configuration.
As an experiment, I created a virtual machine, installed a copy of the iis site. The virtual machine uses the host vpn connection. This way, the new iis website connects correctly to the database. This is why I assume the host's iis is not using the vpn connection.
How can I force all traffic to go through OpenVPN connection in windows 10?