Problem TAP not maintance correct IP
Posted: Mon Oct 02, 2017 1:14 pm
I have configured an OPENVPN server on a server with windows server 2012 R2.
The server configuration is:
port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh5464.pem"
server 10.9.0.0 255.255.255.0
push "dhcp-option DNS 8.8.4.4"
cipher AES-256-CBC
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 0
duplicate-cn
keepalive 10 300
persist-key
persist-tun
status openvpn-status.log
verb 3
I have tried connecting with several machines (windows and android) and through the router and directly on the same lan and the tunel connects well.
The problem is that it does not respond to ping or shared files.
Investigating further I discovered that ipconfig shows an ip that is not the same as the OPENVPN, The openvpn assign 10.9.0.1 in the GUI-OpenVPN and the log.
Adaptador de Ethernet Conexion de rea local:
Sufijo DNS especifico para la conexion. . :
V¡nculo: direcci¢n IPv6 local. . . : fe80::98c9:f7bc:7e29:f420%22
Direccion IPv4 de configuracion automatica: 169.254.244.32
M scara de subred . . . . . . . . . . . . : 255.255.0.0
Puerta de enlace predeterminada . . . . . :
The same configuration tested in another pc if it works well.
I have tried to install the 2 TAP drivers see ndis 5 and 6 and still fail
If I manually set the ip on the TAP adapter every time I start the switch by the one shown.
Does anyone know how to fix it ? Thank you very much
The server configuration is:
port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh5464.pem"
server 10.9.0.0 255.255.255.0
push "dhcp-option DNS 8.8.4.4"
cipher AES-256-CBC
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 0
duplicate-cn
keepalive 10 300
persist-key
persist-tun
status openvpn-status.log
verb 3
I have tried connecting with several machines (windows and android) and through the router and directly on the same lan and the tunel connects well.
The problem is that it does not respond to ping or shared files.
Investigating further I discovered that ipconfig shows an ip that is not the same as the OPENVPN, The openvpn assign 10.9.0.1 in the GUI-OpenVPN and the log.
Adaptador de Ethernet Conexion de rea local:
Sufijo DNS especifico para la conexion. . :
V¡nculo: direcci¢n IPv6 local. . . : fe80::98c9:f7bc:7e29:f420%22
Direccion IPv4 de configuracion automatica: 169.254.244.32
M scara de subred . . . . . . . . . . . . : 255.255.0.0
Puerta de enlace predeterminada . . . . . :
The same configuration tested in another pc if it works well.
I have tried to install the 2 TAP drivers see ndis 5 and 6 and still fail
If I manually set the ip on the TAP adapter every time I start the switch by the one shown.
Does anyone know how to fix it ? Thank you very much