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

[Openvpn-users] RV: 2 PCs in behind NAT fail to connect to VPN


  • Subject: [Openvpn-users] RV: 2 PCs in behind NAT fail to connect to VPN
  • From: "Damian Rivas" <damian@xxxxxxxxxx>
  • Date: Fri, 14 Dec 2007 15:11:40 -0300

Why are you using the two PC on your LAN as VPN Clients? Is it for
something in particular?

You can just use one PC as a VPN client.

To include your private subnet on the VPN, you can do this on the server
configuration file:

Add these lines:

client-config-dir ccd
route <LAN IP> <SUBNET MASK>

So if your LAN IP Addresses are like this: 192.168.200.x/24, then the
second line goes like this: 
route 192.168.200.0 255.255.255.0

Now in the same directory where your server configuration file is,
create the directory "ccd" and inside create a file with the following
line:

iroute 192.168.200.0 255.255.255.0

That's it, you now have your client's LAN connected to the VPN. Give it
a try.

Regards.-






-----Mensaje original-----
De: openvpn-users-bounces@xxxxxxxxxxxxxxxxxxxxx
[mailto:openvpn-users-bounces@xxxxxxxxxxxxxxxxxxxxx] En nombre de Pieter
Temmerman
Enviado el: Viernes, 14 de Diciembre de 2007 02:40 p.m.
Para: openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Asunto: [Openvpn-users] 2 PCs in behind NAT fail to connect to VPN


Hi All,

I got a private network with 2 pc's trying to connect to a VPN over the
internet.
The network has only 1 public IP, thus uses natting.

When I connect with one machine to the VPN, then everything works fine. 
But as soon as I connect with the 2nd machine to the same VPN, then one
of the 2 connections stalls.

This appears in my firewall stats on the VPN:

PR    DIR SRC                   DEST                  GW
STATE                AGE       EXP   PKTS  BYTES   RATE   PEAK    AVG RU

udp   In  85.56.1.1:60467     192.168.200.2:5000
MULTIPLE:MULTIPLE     00:02:23  00:00:51    174  16145      0     32
112 14 
udp   In  85.56.1.1:59979     192.168.200.2:5000
MULTIPLE:MULTIPLE     00:07:02  00:00:55    220  20398     16     16
48 14 

As you can see..2 machines are connected from the same up..but with
different source port.

Any ideas?

Thanks!
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users