[opensuse-factory] Re: [systemd-devel] Starting up service after my openvpn connection turns up
On Mon, Jun 1, 2015 at 5:36 PM, Matthew Karas <mkarascybi@gmail.com> wrote:
I am trying to start a dropbear service after my openvpn service starts up.
----------------------------------- [Unit] Description=SSH Per-Connection Server Wants=dropbearkey.service After=syslog.target dropbearkey.service Wants=openvpn@equipment.service After=openvpn@equipment.service -----------------------------------
But I would like to start up the service after "tun0" interface is available (made by openvpn).
How do I find out what to put in "Wants" and "After" for tun0? I can't seem to find anything related
Also if there is a better way to get dropbear to start after tun0 has appeared I'm open to doing that as well. My goal is to have my ssh server only look at my openvpn address and ignore ssh requests that are not from the vpn iface. I'm thinking I can do this with a script setting up drop bear with the -p option (and looking for my tun0 ip4 address and using it).
Order your service After=sys-subsystem-net-devices-tun0.device -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (1)
-
Cristian Rodríguez