Use PIA VPN on Linux w/o GUI client, but still have kill-switch and port forwarding functionality
I am wanting to build a VM that will use PIA. I would like to use Linux, but I've recently learned that PIA's Linux client requires a GUI, and can not be used wholly from a CLI. I want this VM to be headless and as light weight as possible, so a GUI's out. My only interest in using PIA's client are the killswitch and the port forwarding features.
Couldn't I achieve the same functionality using OpenVPN to connect to PIA, and a firewall rule to route all non-LAN (local) traffic through the VPN? Thus, if the VPN tunnel goes down the traffic won't be able to go anywhere. And as for the port forwarding, can't I just open a port on the firewall with a firewall rule that routes all traffic to that port to the app (Bittorrent client) I want to use the open port?
Or is there some other/more elegant way to achieve my goals?
Comments
piactl -hfor our CLI, orpiactl -uhto include the "unstable" commands.https://www.privateinternetaccess.com/helpdesk/kb/articles/pia-desktop-command-line-interface
Usage: piactl [options] command [parameters...]
Command-line interface to the PIA client. Some commands, such as connect, require that the graphical client is also running.