Hi you could also use the openvpn option in the interface configuration: auto eth0 iface eth0 inet dhcp openvpn gamma
There should be no need to remove the rc2.d link, as long as you have: AUTOSTART="none" In /etc/default/openvpn. Regards, Alberto On Fri, Sep 21, 2007 at 03:12:28PM +0200, David Balazic wrote: > Hi! > It seem sI can post to debian-user now, so here a few details : > > The machine is a vmware virtual (guest) and is running debian 4.0 fully up to > date. > > rc2.d has following nonstandard items : > K08vmware-tools > S19vmware-tools > K19hplip > K20bittorrent > K21gdm > > openvpn is version 2.0.9-4 > > Regards, > David > > ________________________________ > > From: [EMAIL PROTECTED] on behalf of David Balazic > Sent: Fri 21-Sep-07 11:51 > To: debian-user@lists.debian.org; [EMAIL PROTECTED] > Subject: Re: [Openvpn-users] /etc/init.d/openvpn does not work, manual is OK > > > OK, solved. > > What happened was, that the network was not set up correctly at the time when > openvpn was started. > > I appears the DHCP on ethernet is really slow. > > So I removed the /etc/rc2.d/S??openvpn file and set up the > /etc/network/if-up.d/openvpn file (it was > already there, I just added a few lines) : > > #!/bin/sh > if [ "$IFACE" == lo ]; then > exit 0 > # I added this check to not run 2 copies of ovpn , one for lo and one for eth1 > # the first (lo) would then hang there and the second would fail as the first > # holds the 1194 port > fi > > OPENVPN=/etc/init.d/openvpn > # I added this to define the config name : /etc/openvpn/gamma.conf > IF_OPENVPN=gamma > > if [ ! -x $OPENVPN ]; then > exit 0 > fi > if [ -n "$IF_OPENVPN" ]; then > $OPENVPN start $IF_OPENVPN > fi > > Regards, > David > > PS: Any idea why I can't post to debian-user ? > > > ________________________________ > > From: Edson [mailto:[EMAIL PROTECTED] > Sent: Thu 20-Sep-07 19:31 > To: David Balazic; debian-user@lists.debian.org; [EMAIL PROTECTED] > Subject: RE: [Openvpn-users] /etc/init.d/openvpn does not work, manual is OK > > > > Most problably this a problem concerned to the user used on the start process. > > > > If You're loged in as root and it start ok, try to make a 'su' to the user > that openvpn runs and see what happens. > > Edson. > > ________________________________ > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Balazic > Sent: quinta-feira, 20 de setembro de 2007 14:13 > To: debian-user@lists.debian.org; [EMAIL PROTECTED] > Subject: [Openvpn-users] /etc/init.d/openvpn does not work, manual is OK > > > > Hi! > > I've been using an OpenVPN client setup for months with success and now I > decided to start it automatically during startup. > > I copied the config file to /etc/openvpn/tun1.conf and the used key file also > : /etc/openvpn/key > > If I now start it with " /etc/init.d/openvpn start", it works fine. > > But if I reboot, it connects to the VPN server, but does not set the routes > (I have "route-gateway 10.4.0.1" and > "redirect-gateway def1" in the config file). > > > > The last lines after boot are : > NET: Registered protocol familiy 10 > lo: Disabled Privacy Extensions > IPv6 over IPv4 tunneling driver > eth1: no IPv6 routers present > > > -- Alberto Gonzalez Iniesta | Formación, consultoría y soporte técnico agi@(inittab.org|debian.org)| en GNU/Linux y software libre Encrypted mail preferred | http://inittab.com Key fingerprint = 9782 04E7 2B75 405C F5E9 0C81 C514 AF8E 4BA4 01C3 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]