I am trying to setup my multiple VPN qubes on 4.1 with fedora-34-minimal as the base. I was able to get NordVPN working but I am struggling to get ProtonVPN running.
I keep getting: cannot resolve host address: x.protonvpn.com name or service not known
Can you share the instructions you are following to set up ProtonVPN?
The domain x.protonvpn.com does not point to anything, which is why you are getting this error. But it is hard to say how you can fix it without further information
I have put X instead of the real one for simplicity. I have followed the information on the qubes-vpn-support. I am use to do that on qubes 4.0. I was able to do protonvpn on 4.0.
Please, make it easy for us to help you by linking to the instructions you followed.
Can you solve other domain names in the VM?
try: dig google.com
If it says that dig is not a recognized program, install the package bind-utils (temporarily in the AppVM itself) with sudo dnf install bind-utils and try again.
Ok, thanks for the extra information, it is becoming more clear to me.
When do you get the error listed in your first message? Is it after you run some command? If so, which command is it?
This is very likely a firewall issue. Only the qvpn user can access the network based on the configuration. Are you sure that the vpn is started by the qvpn user?
I get the error in the log if I try to start the the service
systemctl start qubes-vpn-handler
or if I try to start manually the tunnel with
sudo openvpn --cd /rw/config/vpn --config vpn-client.conf --auth-user-pass userpassword.txt
There is nothing in the documentation to start the service as qvpn. And there is no qvpn user, only a group.
I have added the vpn-handler-egress service to the proxy vm and it works. Is there another way?
Did you do the link testing suggested at the end of Step 2? That narrows
down the source of connection issues by testing before any
Qubes-vpn-support bits are enabled.
One thing you should try thatâs suggested in the Troubleshooting notes
is to add âvpn-handler-egressâ to the Services of the VPN VM. This will
disable a set a firewall restrictions that are related only to traffic
originating from inside the VPN VM, so its not critical for protecting
data streams.
Hey @tasket are you using your own Qubes-vpn-support tool & setup in a Fedora-34 VM as the ProxyVM?
Iâve been having same issues with dns name resolution as the OP but these issues only exist in Fedora 34 VMâs and not in Fedora 33 ones. Also only exists if/when the Qubes-vpn-support is installed, it does not occur in the same VM if I fully remove it from the system (at which point I can connect to the vpn using standard openvpn commands as normal from the same Fedora 34 VM).
Your suggestion you just posted to enable vpn-handler-egress actually âfixesâ this problem as you suggested, so thatâs great! But this probably shouldnât be necessary should it? The only difference between my two ProxyVM templates is that one is Fedora 33 and the other is Fedora 34, theyâre both configured exactly the same way and the vpn-handler-egress is only required in 34.
Perhaps something needs to be adjusted in the firewall scripts to make it more compatible with 34+?
I know far too little about configuring firewall rules correctly in Linux to be of much help with that.
Regardless, it works with the egress rules gone with that and I appreciate this tool, makes setting up VPN much easier / faster than the standard guide, thanks!
I had the same problem with a VPN over Tor tunnel. There has been a bug, in which ARP rquests in direction to the VPN gateway have not been proxied properly by Qubes virtual network - see the github issue in above link. Workaround in above post as well.
Qubes developers have closed the issue, so I am wondering if this bug still exists?
(I yet need to setup a VPN qube again)
Also note, if you are using VPN over Tor, tasket/Qubes-vpn-support might harm anonymity because of IP forwarding being used - see linked Whonix maintainerâs statement.
If I test the tunnel manually it works, but on restarting the proxy-vm I get continuous âRESOLVE: Cannot resolve host address: sfs.sdfsd.fdsâ this issue occurs using either script in fedora 34 and Debian 11. The VM will then most often fail to shutdown even after multiple attempts and has to be killed, very occasionally after restarting the proxy-vm it will connect although briefly and will return to not being able to resolve the host address.
I also had to rewrite /etc/resolv.conf to the $addr used as in qubes-vpn-handler.sh at the line âiptables -t nat -A PR-QBS -i vif+ -p udp --dport 53 -j DNAT --to $addrâ
to make dns resolution work