I'm running OpenVPN and dnsmasmq on my wheezy system. Dnsmasq is only necessary for VPN and local users, so I don't want it to listen on all devices (yes, there is also a firewall, anyways).
When the services get started at boot, openvpn is started first from S02openvpn
, dnsmasq right afterwards, S03dnsmasq
. When I let dnsmasq bind on all devices, this works fine, but if I restrict it to tun0+loop with interface=tun0
in the config, I get errors at boot time from dnsmasq, complaining that it can't bind to tun0
.
So, how can I make sure that some devices, namely tun0
in my case, are available before some other init script gets executed? Any other less elegant quickfix would also be welcome!