Configure openVPN with 2 lans that have the same IP config

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
supemm
OpenVpn Newbie
Posts: 1
Joined: Fri Mar 25, 2011 5:48 pm

Configure openVPN with 2 lans that have the same IP config

Post by supemm » Fri Mar 25, 2011 6:06 pm

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

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

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

Post by gladiatr72 » Fri Mar 25, 2011 6:18 pm

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
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

Post Reply