Manually connecting to proton vpn with openvpn
by lostintime from LinuxQuestions.org on (#6R3NS)
Recently my connection with the protonvpn-cli package broke. I'm looking at other vpn options, but for the moment I just want to restore my original usage and get life back to normal. I'm asking for patience to help me manually connect with openvpn without using the protonvpn-cli package.
The starting point seems to be here.
I've made fair progress but don't know how to configure the following:
To do:
* Automate connecting and terminating without needing to press Ctrl+C.
* Modify /etc/dnsmasq.conf on-the-fly.
* Restart rc.firewall (if needed).
I dislike the idea that the openvpn command remains active in the terminal window until pressing Ctrl+C. Is a script wrapper an optimal way to avoid the Ctrl+C nonsense? Should the rc.openvpn script be used? I don't use the VPN 24/7.
I have seen the openresolv web page for configuring dnsmasq.conf, but remain befuddled about what to do.
The resolvconf command modifies /etc/resolv.conf to only use the vpn DNS server. I want to continue using dnsmasq (127.0.0.1) so I can use all of my addn-hosts= filtering yet ignore (comment out) the original servers= entries.
With the protonvpn-cli package I seemed to need to restart rc.firewall. That doesn't seem to be the case thus far with connecting directly with the openvpn command.
Thanks.
The starting point seems to be here.
I've made fair progress but don't know how to configure the following:
To do:
* Automate connecting and terminating without needing to press Ctrl+C.
* Modify /etc/dnsmasq.conf on-the-fly.
* Restart rc.firewall (if needed).
I dislike the idea that the openvpn command remains active in the terminal window until pressing Ctrl+C. Is a script wrapper an optimal way to avoid the Ctrl+C nonsense? Should the rc.openvpn script be used? I don't use the VPN 24/7.
I have seen the openresolv web page for configuring dnsmasq.conf, but remain befuddled about what to do.
The resolvconf command modifies /etc/resolv.conf to only use the vpn DNS server. I want to continue using dnsmasq (127.0.0.1) so I can use all of my addn-hosts= filtering yet ignore (comment out) the original servers= entries.
With the protonvpn-cli package I seemed to need to restart rc.firewall. That doesn't seem to be the case thus far with connecting directly with the openvpn command.
Thanks.