Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #173519
| From | "Karl E. Jorgensen" <karl@jorgensen.org.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: systemd - how to run system service by user target |
| Date | 2016-10-17 12:30 +0200 |
| Message-ID | <stdl7-2ek-29@gated-at.bofh.it> (permalink) |
| References | <stbt0-12r-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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)
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web