Rafficer / linux-cli-community

Linux command-line client for ProtonVPN. Written in Python.
https://protonvpn.com
GNU General Public License v3.0
1.31k stars 198 forks source link

Is it possible to specify a static IP address? #360

Open PacoH opened 1 year ago

PacoH commented 1 year ago

I've been using this client for a week, so I can quickly disconnect and reconnect the VPN from a shell script. I am using the protonvpn (c | connect) [<servername>] option. This gets me the server I want but I get differing IP adresses each time. I want to be able to specify the IP address statically because a service I am using requires the same IP address every time, not just the same server. Is there any way I can do this?

PacoH commented 1 year ago

Come to think of it, you have to install openvpn before installing protonvpn-cli. openvpn can be configured to implement split tunneling. I don't know enough about it to implement that feature in openvpn nor do I see how protonvpn-cli interacts with openvpn. I'm guessing there is a way to do it if you know the code. This would be preferable to disconnecting/reconnecting.