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
Configure openVPN with 2 lans that have the same IP config
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Fri Mar 25, 2011 5:48 pm
- 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
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
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