Linode Forum Index Linode Forum
Linode Community Forums
 


OpenVPN and Dnsmasq - Startup Order

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
iWizardPro



Joined: 15 Jun 2011
Posts: 19

Posted: Sat Jun 18, 2011 11:36 pm    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!
Back to top  
obs



Joined: 07 Mar 2010
Posts: 1403
Location: Earth

Posted: Sun Jun 19, 2011 3: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)
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1