TinCanTech wrote
The correct gateway in openvpn is the remote endpoint to the --ifconfig option, from the clients side.
I have no idea what that means. There is no ifconfig option anywhere in my ovpn file. I didn't run openvpn from the command line, I used the windows openvpn connect client.
On the client side, if I do this:
route 192.168.1.0 255.255.255.0 10.8.0.1
it DOES NOT ADD THE ROUTE.
If I do this, on the client side
route 192.168.1.0 255.255.255.0
It does add the route. The windows route shows this
Network Destination Netmask Gateway Interface Metric
192.168.1.0 255.255.255.0 10.8.0.1 5 257
So exactly how you can come to the conclusion that I put in the wrong gateway I do not understand. The configuration does not work when you add the gateway.
The exact same behavior is seen when you put the route on the server and leave it out of the client config
push "route 192.168.1.0 255.255.255.0" works
push "route 192.168.1.0 255.255.255.0 10.8.0.1" does not work
OpenVPN server 2.4.7 on Debian 10
OpenVPN Connect for Windows version 3.1.0 (361)