1/ I've "fixed" the ID/PWD required by OpenVPN GUI in Windows as I usually do it with Linux machines (as root):
Now, ID and PWD are no more asked by OpenVPN GUI:
For that, in xxx.ovpn file, I've replaced :
auth-user-pass
with
auth-user-pass "D:\\path-to-config-file\\login.txt"
Be careful: \ in the Windows path must be replaced by \\
* Possible conclusion : ID and PWD required by OpenVPN GUI ARE _OpenVPN user_ ID and PWD but are not sent to the OpenVPN server.
2/ As the log file says :
"WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this", I added the following directive in xxx.ovpn file (just before the auth-user-pass directive) :
auth-nocache
* Anyway, it was jus a warning.
3/ As the log file says :
"There is a problem in your selection of --ifconfig endpoints [local=192.168.27.65, remote=212.27.38.253]. The local and remote VPN endpoints must exist within the same 255.255.255.252 subnet. This is a limitation of --dev tun when used with the TAP-WIN32 driver. Try 'openvpn --show-valid-subnets' option for more info."
I remember this problem when dealing with a Windows7 machine...
Let's search a solution about this "TAP-WIN32 driver" limitation...
C:\Windows\system32>"C:\Program Files\OpenVPN\bin\openvpn" --show-valid-subnets
On Windows, point-to-point IP support (i.e. --dev tun)
is emulated by the TAP-Windows driver. The major limitation
imposed by this approach is that the --ifconfig local and
remote endpoints must be part of the same 255.255.255.252
subnet. The following list shows examples of endpoint
pairs which satisfy this requirement. Only the final
component of the IP address pairs is at issue.
As an example, the following option would be correct:
--ifconfig 10.7.0.5 10.7.0.6 (on host A)
--ifconfig 10.7.0.6 10.7.0.5 (on host B)
because [5,6] is part of the below list.
[ 1, 2] [ 5, 6] [ 9, 10] [ 13, 14] [ 17, 18]
[ 21, 22] [ 25, 26] [ 29, 30] [ 33, 34] [ 37, 38]
[ 41, 42] [ 45, 46] [ 49, 50] [ 53, 54] [ 57, 58]
[ 61, 62] [ 65, 66] [ 69, 70] [ 73, 74] [ 77, 78]
[ 81, 82] [ 85, 86] [ 89, 90] [ 93, 94] [ 97, 98]
[101,102] [105,106] [109,110] [113,114] [117,118]
[121,122] [125,126] [129,130] [133,134] [137,138]
[141,142] [145,146] [149,150] [153,154] [157,158]
[161,162] [165,166] [169,170] [173,174] [177,178]
[181,182] [185,186] [189,190] [193,194] [197,198]
[201,202] [205,206] [209,210] [213,214] [217,218]
[221,222] [225,226] [229,230] [233,234] [237,238]
[241,242] [245,246] [249,250] [253,254]
It suggests the akward turnaround to select the IP address for the Windows client so it fulfills that rule compared to server IP (?).
Unfortunately, the available range from the OpenVPN server is [65:93] for the "final component of the IP address" (the firmware locks that...).
Can you pls. lend a hand to fix that Windows issue that so many Windows users have obviously encountered?
(I read that an OpenVPN bridged router instead of a routed one in the present case is supposed to make things easier. Not yet tested.
Anyway, I'm more and more motivated to run my own OpenVPN server without any of such limitations decided by an internet operator...!).
The following information suggests that the installation of a TUN/TAP kernel driver is done, but says nothing about additional requirements:
https://openvpn.net/index.php/open-source/documentation/install.html?start=1
(...)
TUN/TAP Driver Configuration:
(...)
* Windows XP/2003/Vista/7:
OpenVPN on Windows needs a TUN/TAP kernel driver to work. OpenVPN installers
include this driver, so installing it separately is not usually required.
The driver source code is available here:
https://github.com/OpenVPN/tap-windows
Thanks