Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Networking and servers • Re: Openvpn client.conf only runs from command line

$
0
0
Apparently, this is new:

Code:

ProtectSystem=true
Once I changed this to 'false' in

Code:

/lib/systemd/system/openvpn.service
and move client.conf to /etc/openvpn
it now auto-starts on boot and also with

Code:

sudo service openvpn stopsudo service openvpn start
and yes, it was my own stupidity.
I had this working under Jessie and decided I'd better upgrade to the lastest version of everything.
And I have 'up' and 'down' scripts in root, which didn't seem to bother Jessie, but Trixie doesn't let OpenVPN service access /root by default

Still, questions remain:
1. why does openvpn-client@.service force '--nobind' ?
2. even with 'local' removed from client.conf and 'ProtectSystem=false' in openvpn-client@.service it still won't find and load client.conf

Just odd.
Working now
But just odd

Statistics: Posted by Prof. R. Myrkr — Mon Dec 08, 2025 12:46 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles