0

I followed some instructions from here to connect to a VPN on startup, however, every few months something goes awry and I find myself not connected to the VPN.

How can I kill the internet if it can't connect to the VPN?

4
  • That seems a complicated way of getting a VPN running Dec 28, 2020 at 9:47
  • @roaima Is there a simpler way to get PIA running on headless linux?
    – mpen
    Dec 29, 2020 at 21:37
  • I've not used Private Internet Access myself, but I do have Debian-based Linux clients using OpenVPN to connect to remote networks. I imagine this is similar..? In these cases pretty much all I did was install the necessary connection.ovpn file to /etc/openvpn and redeclare it to systemctl (and before systemd came along I would edited /etc/default/openvpn) Dec 29, 2020 at 21:40
  • @roaima Doesn't sound all that different then. I just had to download the .ovpn files from PIA, I used the systemctl/init.d script from that forum post but you can probably use any other one you find, maybe one is preinstalled. The only fancy bit is that PIA requires a password so you need to supply --auth-user-pass
    – mpen
    Dec 30, 2020 at 0:20

0

Browse other questions tagged .