Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173518 > unrolled thread

systemd - how to run system service by user target

Started bykjonca@poczta.onet.pl (Kamil Jońca)
First post2016-10-17 10:30 +0200
Last post2016-10-17 12:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  systemd - how to run system service by user target  kjonca@poczta.onet.pl (Kamil Jońca) - 2016-10-17 10:30 +0200
    Re: systemd - how to run system service by user target "Karl E. Jorgensen" <karl@jorgensen.org.uk> - 2016-10-17 12:30 +0200

#173518 — systemd - how to run system service by user target

Fromkjonca@poczta.onet.pl (Kamil Jońca)
Date2016-10-17 10:30 +0200
Subjectsystemd - how to run system service by user target
Message-ID<stbt0-12r-31@gated-at.bofh.it>
Assume we have openvpn.service.
This service neccessary only when I want to connect to my work from
home.

Is it possible to make user target which will be automatically run this
service?
KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
My mind can never know my body, although it has become quite friendly
with my legs.
		-- Woody Allen, on Epistemology

[toc] | [next] | [standalone]


#173519

From"Karl E. Jorgensen" <karl@jorgensen.org.uk>
Date2016-10-17 12:30 +0200
Message-ID<stdl7-2ek-29@gated-at.bofh.it>
In reply to#173518
Hi

On Mon, Oct 17, 2016 at 10:01:58AM +0200, Kamil Jońca wrote:
> 
> Assume we have openvpn.service.
> This service neccessary only when I want to connect to my work from
> home.
> 
> Is it possible to make user target which will be automatically run this
> service?
> KJ
> 

It probably is. I had the same problem - a "vpn to home" that doesn't
need to run when at home.

My solution: Firewalling rules on the server-side endpoint, that
rejects VPN connections from inside the network.  Thus, my openvpn
service on my laptop can run constantly, but the VPN will only
actually connect when I'm _not_ at home.

Hope this helps
--
Karl E. Jorgensen (also KJ)

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web