Page 1 of 1

Configurar OpenVPN punto a punto + red LAN

Posted: Fri Sep 18, 2020 12:35 pm
by Ghostam
Buenos días,

No se si he abirrto el hilo en el lugar correcto, pido al administrador lo mueva a su ubicación correcta si asi fuera necesario.

Mi caso es el de querer hacer una VPN por software usando OPEN VPN entre dos máquinas Windows...

Una es un Servidor de dominio ubicado en Palma de Mallorca y otro otro servidor de dominio ubicado en Ibiza.

Estoy haciendo pruebas de la siguiente manera.


En la red Lan donde esta ubicado el servidor de Palma la red es la que da el.DHCP de este servidor de dominio que es 192.168.50... el servidor tiene 2 tarjeta de red una LAN y una WAN ... y un servidor RAS configurado que las comunica....
La tarjeta WAN recibe ip del router
192.168.1.200
Y la LAN tiene ip 192.168.50.200

Lo que he hecho es crear un windows 10 virtual en esa red Lan cuya tarjeta de red virtual recibe ip 192.168.50.5
255.255.255.0
Puerta de enlace y DNS 192.168.50.200

En este windows 10 he instalado OPENVPN y lo he configurado para que me haga el tunel VPN con ip 10.8.0....

En el router he abierto el puerto 1194 a la ip 192.168.1 .200 y en el.servidor con esta ip en su enrruramiento y acceso remoto he redirigido ese puerto 1194 hacia la ip de mi windows 10 virtual 192.168.50.5 en los firewall de ambos equipos este puerto esta abierto en entrada y salida.

La red VPN conecta y me da ip vpn 10.8.0.1 a este windows 10 virtual.

Cuando en un pc como un portatil fuera de esta oficina de palma configurado como cliente open VPN me conecta y me da ip 10.8.0.2 ....pero no puedo acceder a la ip 10.8.0.1 .no veo el windows virtual que me hace de servidor VPN..

En cambio desde este windows 10 virtual si puedo ver la ip 10.8.0.2 y conectar a esta maquina...

Sabeis porque??

Mi finalidad ultima es que un servidor de ibiza sea cliente de este windows 10 virtual y que ademas de verse las ips 10.8.0 1 a la 2 y viceversa ademas el servidor de ibiza vea la red 192.168.50.... donde esta el servidor 192.168.50.200 para poder acceder a sus carpetas en red y poder mapearlas o que cualquier otro equipo de esta red de ibiza ( cuya lan es 192.168.10.... puedan ver a la red 192.168.50 .. de Palma..

Donde ..en que lineas de fichero server o client del OPEN VPN debo añadir estos parámetros?

Re: Configurar OpenVPN punto a punto + red LAN

Posted: Fri Sep 18, 2020 12:53 pm
by Pippin
Hi, try English please.

Thanks.

Re: Configurar OpenVPN punto a punto + red LAN

Posted: Fri Sep 18, 2020 1:41 pm
by Ghostam
Good Morning,

I do not know if I have opened the thread in the correct place, I ask the administrator to move it to its correct location if necessary.

My case is that of wanting to do a software VPN using OPEN VPN between two Windows machines ...

One is a Domain Server located in Palma de Mallorca and another is a Domain Server located in Ibiza.

I am testing as follows.


In the Lan network where the Palma server is located, the network is the one that gives the DHCP of this domain server which is 192.168.50 ... the server has 2 network cards, a LAN and a WAN ... and a RAS server configured that communicates them ...
WAN card receives ip from router
192.168.1.200
And the LAN has ip 192.168.50.200

What I have done is create a virtual windows 10 in that Lan network whose virtual network card receives ip 192.168.50.5
255.255.255.0
Gateway and DNS 192.168.50.200

In this windows 10 I have installed OPENVPN and I have configured it to make me the VPN tunnel with ip 10.8.0 ...

In the router I have opened port 1194 to ip 192.168.1 .200 and in the server with this ip in its routing and remote access I have redirected that port 1194 to the ip of my virtual windows 10 192.168.50.5 in the firewall of both teams this port is open in input and output.

The VPN network connects and gives me ip vpn 10.8.0.1 to this virtual windows 10.

When on a pc like a laptop outside this palm office configured as an open VPN client it connects me and gives me ip 10.8.0.2 .... but I cannot access the ip 10.8.0.1. I do not see the virtual windows that makes me VPN server ..

On the other hand, from this virtual windows 10 if I can see the ip 10.8.0.2 and connect to this machine ...

Do you know why?

My ultimate goal is for an ibiza server to be a client of this virtual windows 10 and that in addition to seeing the ips 10.8.0 1 to 2 and vice versa, the ibiza server also sees the 192.168.50 network .... where is the server 192.168.50.200 to be able to access your folders on the network and be able to map them or that any other computer on this ibiza network (whose lan is 192.168.10 .... can see the 192.168.50 network .. from Palma ..

Where .. in which server or client file lines of the OPEN VPN should I add these parameters?