Hello everyone,
I am experiencing issues with my VPN setup on fresh install of Qubes OS 4.2.4 and would appreciate any assistance.
Without network-manager
sys-vpn:
- I created a sys-vpn qube and tested my connection
sudo openvpn --config 1.ovpn
I was successfully connected without any issues.
App Qube:
- I created an App Qube that is supposed to connect to the sys-vpn qube. However, this App Qube does not have internet access. When I run the command
curl ifconfig.mein App Qube it hangs indefinitely.- I have not configured any firewalls, and I previously had no problems with this VPN setup.
With Network Manager
- Network Manager Configuration:
- I added the Network Manager service to the sys-vpn qube and configured my 1.ovpn file in NM. After this, the connection in the AppQube worked.
- Firewall Rules:
- I configured the firewall in dom0 with the following commands (from this post):
qvm-firewall sys-vpn reset # (1)
qvm-firewall sys-vpn add accept dsthost=1.2.3.4 # (2)
qvm-firewall sys-vpn del --rule-no 0 # (3)
- Connection Behavior:
- The connection in the AppQube worked without problems until I restarted the sys-vpn qube. After the restart, I need to reconnect to the VPN in sys-vpn, but I cannot. When I click on my OpenVPN config in Network Manager, it loads indefinitely without success. If I reset the firewall rules using
qvm-firewall sys-vpn reset # (1)it works again.
What could be causing the VPN connection to fail after a restart?
Thank you for your help!