Problem TAP not maintance correct IP

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
IMLL
OpenVpn Newbie
Posts: 3
Joined: Mon Oct 02, 2017 12:54 pm

Problem TAP not maintance correct IP

Post by IMLL » 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

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Problem TAP not maintance correct IP

Post by TinCanTech » Mon Oct 02, 2017 1:56 pm

You must enable Windows DHCPClientService ..

IMLL
OpenVpn Newbie
Posts: 3
Joined: Mon Oct 02, 2017 12:54 pm

Re: Problem TAP not maintance correct IP

Post by IMLL » Mon Oct 02, 2017 2:53 pm

The service was already running

NOMBRE_SERVICIO: Dhcp
NOMBRE_MOSTRAR : Cliente DHCP
TIPO : 20 WIN32_SHARE_PROCESS
ESTADO : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
CÓD_SALIDA_WIN32 : 0 (0x0)
CÓD_SALIDA_SERVICIO: 0 (0x0)
PUNTO_COMPROB. : 0x0
INDICACIÓN_INICIO : 0x0

Some other idea of how to solve it.

Thank you

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Problem TAP not maintance correct IP

Post by TinCanTech » Mon Oct 02, 2017 5:11 pm


IMLL
OpenVpn Newbie
Posts: 3
Joined: Mon Oct 02, 2017 12:54 pm

Re: Problem TAP not maintance correct IP

Post by IMLL » Wed Oct 04, 2017 5:48 pm

In the end solve it by adding this instruction:

ip-win32 manual

in the server.ovpn of the server and configuring the ip manually.

thank you very much

Post Reply