[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Connecting two LANs


  • Subject: Re: [Openvpn-users] Connecting two LANs
  • From: "Terje Christensen" <terchris@xxxxxxxxxxx>
  • Date: Tue, 06 Jun 2006 22:15:45 +0200

>>>Did you create a file for your client within ccd? If you want to access 
>>>its subnet from your VPN server/LAN A you need to create a file with the 
>>>following:
>>>iroute 192.168.0.0 255.255.255.0
>>
>>Thank you. I already had this file, but forgot to mention it in my 
>>original posting.
>>
>>>Also you need in your server.conf:
>>>route 192.168.0.0 255.255.255.0
>>>push "route 172.16.1.0 255.255.255.0"
>>
>>I added these lines to my server.conf file. But it did not help.
>
>Have you done echo 1 > /proc/sys/net/ipv4/ip_forward on your client?

Hi I have the echo 1 > /proc/sys/net/ipv4/ip_forward on my client.
The problem was that i had made a route from our firewall on LAN A routing 
all traffic to 192.168.0..0 mask 255.255.255.0 to 172.16.1.14

The 172.16.1.14 is the LAN A server running openvpn.

It started working when I made a route 10.1.0.0 mask 255.255.255.0 to 
10.1.0.1

The 10.1.0.1 is the openvpn ip address for the tunnel. It is displayed when 
you do ifconfig as tun0.

I don't know a lot about routing and this was the problem.

I hope that this can help other novice users.

terchris




_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-06/msg00059.html on line 210

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-06/msg00059.html on line 210