Page 1 of 1

Configure openVPN with 2 lans that have the same IP config

Posted: Fri Mar 25, 2011 6:06 pm
by supemm
Hi all,

I have installed several times VPNs with OpenVPN for files sharing.
Each times it were two lans with different lan Ip addresses and different gateways.

Example :
Lan 1 :
Ip address of the server : 192.168.0.5
Mask : 255.255.255.0
Gateway : 192.168.0.1

Lan 2 :
Ip address of the client : 192.168.1.20
Mask : 255.255.255.0
Gateway : 192.168.1.1


I have now to connect two lans which have the same lans configurations
Example :
Lan 1 :
PC server : Ip address of the server : 192.168.0.5
Mask : 255.255.255.0
Gateway : 192.168.0.1

Another PC : Ip address : 192.168.0.7
Mask : 255.255.255.0
Gateway : 192.168.0.1

Lan 2 :
PC1 : Ip address of the client A : 192.168.0.4
Mask : 255.255.255.0
Gateway : 192.168.0.1

PC1 : Ip address of the client A : 192.168.0.7
Mask : 255.255.255.0
Gateway : 192.168.0.1

I have read elsewhere that there will have problems (with routing) when the client B and A will want to access to data on a share folder on the server on lan 1.

How can I configure OpenVPN to avoid problems ?


Thank you for your Help.
(and sorry for my bad english!)

Emmanuel

Re: Configure openVPN with 2 lans that have the same IP conf

Posted: Fri Mar 25, 2011 6:18 pm
by gladiatr72
Hello,

There is nothing that I know of that you can do from the client side other than disconnecting from lan1 before connecting to lan2. Unless the operator of the vpn server for lan2 is willing to either change the subnet he uses or nat your client IP address, you are out of luck.

-S