[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 22:31:06 +0100 (CET)

On Tue, 2 Nov 2004, Remus wrote:

I know that, verything is OK with CN and file name, they are the same ones.

Also I have have no permision problems.

Try to run strace on the process like:

strace -e open -p PID

where PID is the process id of the running openvpn daemon. You should then see a line like this when you connect:

open("/etc/openvpn/clients-config/Mathias.Sundman", O_RDONLY) = 7

If you don't get any such line then OpenVPN is not trying to open the file at all, and then you need to go back to your config file and start changing things until it starts trying to open the file!

If you do get such a line, then you should be able to tell that it is either looking in the wrong place, or that it fails for some other reason by the code at the end of the line.

/Mathias

PS: Please don't top-post.


----- Original Message ----- From: "Doug Lytle" <support@xxxxxxxxxx>
To: <openvpn-users@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 02, 2004 3:23 PM
Subject: Re: [Openvpn-users] static IP


Remus,

The name of the file in the ccd directory has to match the CN of your client's certificate.

I have my laptop's CN as d.lytle.laptop.01 so, I create a file called the same thing. In that file I have:

   --ifconfig-push 192.168.200.70 255.255.255.0

When I connect with my laptop, I get the 192.168.200.70 address

Hope this helps,

Doug

Remus wrote:

Hi folks,

I have exactly the same problem.

Thanks

Remus

----- Original Message ----- From: "Sébastien V" <soloturku@xxxxxxxxxxx>
To: <openvpn-users@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 02, 2004 12:05 PM
Subject: [Openvpn-users] static IP


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?

thanks a lot

sebastienb





-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&opÌk
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users





-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users


-- _____________________________________________________________ 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/msg00047.html on line 270

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/msg00047.html on line 270