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

[Openvpn-users] Re: Re: For 3 LANs is required one more udp port and another one config file?


  • Subject: [Openvpn-users] Re: Re: For 3 LANs is required one more udp port and another one config file?
  • From: Charles Duffy <cduffy@xxxxxxxxxxx>
  • Date: Wed, 09 Mar 2005 18:48:15 -0600

On Thu, 10 Mar 2005 02:29:15 +0200, Alex Post wrote:

> I tried it first time
> 
> "server 10.1.0.0 255.255.255.0"
> client-config-dir ccd
> 
> and i give up because i saw that Gateway3 is getting other values then i
> specified in ccd/Client3

This is something to worry about...

> and not match with tun0 link from VPN server.

...but this isn't.

> Let me know, if "server 10.1.0.0 255.255.255.0" is used, ifconfig-push
> should be the same on all my clients or sould be missed?

You can't give multiple clients the same IP.

> Example:
> # cat ccd/Client2
> iroute 192.168.1.64 255.255.255.224
> ifconfig-push 10.1.0.2 10.1.0.1
> 
> # cat ccd/Client3
> iroute 192.168.3.96 255.255.255.224
> ifconfig-push 10.1.0.2 10.1.0.1

You're trying to give both of them 10.1.0.2? That won't work, both because
they can't share IPs and because 10.1.0.2 is special. Probably best if you
leave out the ifconfig-push and let OpenVPN assign IPs itself.

Also, per the man page entry on iroute, you need a --route directive such
that the kernel knows that routing to 192.168.1.64/27 and 192.168.1.64/27
should be routed through OpenVPN.


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