Linode Forum
https://forum.linode.com/

OpenVPN and Dnsmasq - Startup Order
https://forum.linode.com/viewtopic.php?f=19&t=7278
Page 1 of 1

Author:  iWizardPro [ Sun Jun 19, 2011 12:36 am ]
Post subject:  OpenVPN and Dnsmasq - Startup Order

I have a problem with my OpenVPN and Dnsmasq configuration running on a Ubuntu 11.04 machine. The problem is that Dnsmasq is set to only listen on my "lo" and "tun0" interfaces and uses "bind-interfaces". But, the problem is that Dnsmasq starts before OpenVPN does, so Dnsmasq fails to start stating that tun0 does not exist.

How do I go about changing the order in which Ubuntu starts the services? I need it such that OpenVPN starts, then Dnsmasq starts.

Thanks in advance!

Author:  obs [ Sun Jun 19, 2011 4:45 am ]
Post subject: 

check the init scripts, are openvpn and dnsmasq in /etc/init/ or /etc/init.d/

If in /etc/init/ edit the dns mask to start on tun0, if in init.d use update-rc.d <service> defaults SS KK where SS is higher than openvpn's init.d and KK is lower (see the ubuntu man page for more details)

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/