Configure openVPN with 2 lans that have the same IP config
Posted: 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
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