I can connect with openvpn but it doesn’t open some websites (like YouTube).
The weird thing is that if I open OpenBox (installed via dnf) and run Ubuntu it can open the website. Another Fedora 35 instance in OpenBox still doesn’t open the website.
I have the same result with openvpn 2.5.4 and purevpn app (using openvpn).
I’m using Fedora 35 (same issue on 34 and rawhide).
I don’t have this issue on Ubuntu.
I also tried these DNS but didn’t help:
8.8.8.8
4.4.4.4
208.67.222.222
208.67.222.220
I have these logs on disconnecting and connecting:
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1541] device (tun0): state change: unmanaged -> unavailable (reason 'connection-assumed', sys-iface-state: 'external')
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1591] device (tun0): state change: unavailable -> disconnected (reason 'connection-assumed', sys-iface-state: 'external')
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1601] device (tun0): Activation: starting connection 'tun0' (2a6580a9-174b-4d2a-9ef7-7681a815790f)
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1606] device (tun0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'external')
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1609] device (tun0): state change: prepare -> config (reason 'none', sys-iface-state: 'external')
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1612] device (tun0): state change: config -> ip-config (reason 'none', sys-iface-state: 'external')
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1613] device (tun0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'external')
Dec 02 12:29:00 fedora systemd[1]: Starting Network Manager Script Dispatcher Service...
Dec 02 12:29:00 fedora systemd[1]: Started Network Manager Script Dispatcher Service.
Dec 02 12:29:00 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1805] device (tun0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'external')
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1807] device (tun0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external')
Dec 02 12:29:00 fedora NetworkManager[887]: <info> [1638476940.1817] device (tun0): Activation: successful, device activated.
Dec 02 12:29:00 fedora rygel[2331]: g_inet_address_to_string: assertion 'G_IS_INET_ADDRESS (address)' failed
Dec 02 12:29:00 fedora rygel[2331]: Error creating GUPnP context: Failed to find IP of interface tun0
Dec 02 12:29:00 fedora systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
Dec 02 12:29:05 fedora systemd[1682]: vte-spawn-03d14946-6781-4a9c-a566-5f2bd589f733.scope: Consumed 1.599s CPU time.
Dec 02 12:29:10 fedora systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Dec 02 12:29:10 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Looks like there is an issue with the vpn config, as youtube.com is resolving to a private ip address; which is why it can’t connect. Have you contacted purevpn for support?
I suggest posting vpn config file (with user/password any another senisitve data removed), here.
I cannot find a solution in that post. You mean I need to use GUI for openvpn? Because that can result the same issue.
I did another connect with openvpn (1.2.5) in my terminal:
2021-12-02 13:45:18 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.
2021-12-02 13:45:18 OpenVPN 2.5.4 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Oct 5 2021
2021-12-02 13:45:18 library versions: OpenSSL 1.1.1l FIPS 24 Aug 2021, LZO 2.10
2021-12-02 13:45:19 TCP/UDP: Preserving recently used remote address: [AF_INET]5.254.73.170:53
2021-12-02 13:45:19 UDP link local: (not bound)
2021-12-02 13:45:19 UDP link remote: [AF_INET]5.254.73.170:53
2021-12-02 13:45:20 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1557', remote='link-mtu 1550'
2021-12-02 13:45:20 WARNING: 'auth' is used inconsistently, local='auth SHA1', remote='auth [null-digest]'
2021-12-02 13:45:20 WARNING: 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2021-12-02 13:45:20 [Secure-Server] Peer Connection Initiated with [AF_INET]5.254.73.170:53
2021-12-02 13:45:21 TUN/TAP device tun0 opened
2021-12-02 13:45:21 net_iface_mtu_set: mtu 1500 for tun0
2021-12-02 13:45:21 net_iface_up: set tun0 up
2021-12-02 13:45:21 net_addr_v4_add: 172.94.73.132/27 dev tun0
2021-12-02 13:45:21 Initialization Sequence Completed
With this config file (The original file PureVPN offers for NL server UDP):
I suggest setting up the vpn connection through networkmanager, which does support systemd-resolv; even if it just rules it out as the issue. Instructions are in the first topic I linked.