I am using OpenVPN v2.4.6 on Windows Server 2008 R2.
I have the following problem.
After starting OpenVPN on the server the following route is wrong:
Code: Select all
Target Networkmask Gateway Interface Metrik
10.8.0.0 255.255.255.0 10.8.0.2 192.168.2.10 20
The interface should be 10.8.0.1 and not 192.168.2.10 because that is the ip address of the lan adapter and not the TAP Windows Adapter.
And with this wrong route nobody can reach the server.
On my other Windows Server 2016 I could solve this problem by restarting the openvpnservice with a script. But on Windows Server 2008 R2 this does not help.
The only solution is to deactivate and reactivate the OpenVPN Adapter in Windows. Unfortunately this cannot be done by a script. There are serveral scripts to to this but they do not work with the TAP-Adapter.
Does anybody has a tip ?
The correct route should be:
Code: Select all
Target Networkmask Gateway Interface Metrik
10.8.0.0 255.255.255.0 10.8.0.2 10.8.0.1 20
I also tried to set a static route and so on but with no luck.
Thank You!
Greetings, Andreas.