[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: Re: IP Allocation


  • Subject: [Openvpn-users] Re: Re: Re: IP Allocation
  • From: Charles Duffy <cduffy@xxxxxxxxxxx>
  • Date: Wed, 12 Jan 2005 13:30:26 -0600

On Wed, 12 Jan 2005 18:14:57 +0000, Helder Miguel Gaspar Rodrigues wrote:

> I got this line too:
> Jan 12 17:53:26 xpto openvpn-local[1517]: wifi.frew.org/192.168.1.11:5000
> client-connect command failed: could not execute shell command

It's probably what I was suggesting, then -- make sure the script is
executable and your config file contains a valid path relative to the
OpenVPN process's cwd.

Here's a hint: If you cd into /etc/openvpn (presuming that's the cwd of
your OpenVPN process -- if you're using the stock init scripts, it will
be) and run "ip.sh", does it Do The Right Thing? If you need to do
something else (say, running "./ip.sh"), change you client-connect
directive appropriately.

> The ip.sh have to be in the vpn server right? There is any problem if my
> vpn client is running in a windows xp?

The client-connect script is only on the server.

> I was thinking that ip.sh could generate an ip based on the $trusted_ip
> env var.

Yup.

> Supose that $trusted_ip was 192.168.1.11 Basicaly the script will do a
> ifconfig-push "192.168.3.11 255.255.255.0"

Exactly.

> The script can be in perl or python? If it yes, how can the perl script
> send the ifconfig-push "192.168.3.11 255.255.255.0" to openvpn?
> writing into the temporary filed passed to script, right?

Yes, you can use any language (scripting or otherwise) that functions on
your machine; yes, you pass commands to OpenVPN by writing them to the
temporary file passed on the command line.

> Do i have to have perl running in my xp machine?

No.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users