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)