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

Lock resolv.conf for write #249

Open akurets opened 4 years ago

akurets commented 4 years ago

Is your feature request related to a problem? Please describe. Not sure if its a problem, but time to time i check that smth rewrite resolv.conf file, maybe dhcp, so it leads to DNS leaking.

Describe the solution you'd like It will be good option to lock resolv.conf after protonvpn-cli rewrite it

calexandru2018 commented 4 years ago

If you have dns management enabled then dns values will be replaced by the DNS value provided by ProtonVPN servers.

akurets commented 4 years ago

yep, its enabled. maybe i should describe my situation step by step. 1) connect to server via protonvpn 2) at this step there are dns provided by proton in resolve.conf 3) at some moment smth change dns, i cant catch this moment. 4) and i.e. dnsleaks test shiw me that i use provider dns

calexandru2018 commented 4 years ago

Oh alright gotcha. There unfortunately no way to "block" the dns changes from protonvpn side. Normally the DNS shouldn't change like that, unless you have another vpn enabled or a script that makes those changes actively (or restart your network).

akurets commented 4 years ago

got it. i will try to do some research. now, i just lock it with chattr manually