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

Re: [Openvpn-users] static IP


  • Subject: Re: [Openvpn-users] static IP
  • From: Mathias Sundman <mathias@xxxxxxxxxx>
  • Date: Tue, 2 Nov 2004 15:34:54 +0100 (CET)

On Tue, 2 Nov 2004, Sébastien V wrote:

Hi again,

There is no way for me to give fixed IP to each client
it doesn't work.

here is my config:


server 10.1.0.0 255.255.255.0 client-config-dir /etc/vpn/CA-DB/ccd route 10.1.0.0 255.255.255.252

then in the directory ccd, i created a file named vpnclient1
touch vpnclient1

in the file i wrote
ifconfig-push 10.1.0.17 10.1.0.18

i opened the certificate of my client and the CN is "vpnclient1".

However when i connect to the server ,i always get the IP 10.1.0.6

how can i make it work?

Is that your complete server config? You are not using --chroot, --user, --group or something else that could create a permission problem?


What version of OpenVPN are you using? Recent versions should show a log message if it accually reads a ccd file.

You can also try using strace on the running openvpn process, to monitor file openings to see what happends.

--
_____________________________________________________________
Mathias Sundman                  (^)   ASCII Ribbon Campaign
OpenVPN GUI for Windows           X    NO HTML/RTF in e-mail
http://www.nilings.se/openvpn    / \   NO Word docs in e-mail

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/2004-11/msg00036.html on line 196

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/2004-11/msg00036.html on line 196