Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [Openvpn-users] /etc/init.d/openvpn does not work, manual is OK

From: Stefan Lamby <slamby(at)gmx.de>
Date: Thu Sep 20 2007 - 14:27:10 EDT


David,

your /etc/init.d/openvpn.sh should start the server using the --config option to tell the server which config file to use. Maybe it is not reading the correct config information.

2nd: The S(tart) and K(ill) scripts will be run in the numerical order. So it could be the problem that you maybe try to start openvpn service before all your depending services (networking and so on) are correctly started. You can check if that is the reason by giving the S/K script the highest number of all scripts used in the directory you are using.

Hope this helps.

Stefan

David Balazic schrieb:
> 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
>
> Could they be related ?
>
> 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
>
> correct route (when I run/restart openvpn manually :
> /etc/init.d/openvpn restart ) :
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> xx.157.yy.37 192.168.209.2 255.255.255.255 UGH 0 0 0
> eth1
> 10.4.0.1 0.0.0.0 255.255.255.255 UH 0 0
> 0 tun1
> 192.168.209.0 0.0.0.0 255.255.255.0 U 0 0
> 0 eth1
> 0.0.0.0 10.4.0.1 128.0.0.0 UG 0 0
> 0 tun1
> 128.0.0.0 10.4.0.1 128.0.0.0 UG 0 0
> 0 tun1
> 0.0.0.0 192.168.209.2 0.0.0.0 UG 0 0
> 0 eth1
>
> bad route (after boot) :
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 10.4.0.1 0.0.0.0 255.255.255.255 UH 0 0
> 0 tun1
> 192.168.209.0 0.0.0.0 255.255.255.0 U 0 0
> 0 eth1
> 0.0.0.0 192.168.209.2 0.0.0.0 UG 0 0
> 0 eth1
>
> cat /etc/openvpn/tun1.conf
>
> remote my_server.dyndns.org 1234
> dev tun1
> ifconfig 10.4.0.2 10.4.0.1
> route-gateway 10.4.0.1
> redirect-gateway def1
> ping 10
> ping-restart 60
> verb 1
> mute 5
> cipher none
> secret key 0
>
> Regards,
> David
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
>

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Sep 20 14:45:03 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 05:13:24 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library