You are not logged in.
Hi all,
I'm trying to use my ProtonVPN connection but despite it is connected it is not working. When I navigate to https://ip.me/ it's always showing me my local IP and location.
I have installed and configured WireGuard base on the arch wiki page and the ProtonVPN guide to configure WireGuard
1. The wireguard conf file (downloaded from my protonVPN account):
[Interface]
# Key for linux-mesopotamia
# Bouncing = 2
# NetShield = 1
# Moderate NAT = off
# NAT-PMP (Port Forwarding) = off
# VPN Accelerator = on
PrivateKey = wN5*****************************************2Xf1w=
Address = 10.2.0.2/32
DNS = 10.2.0.1
[Peer]
# ES#14
PublicKey = MK34*************************************V0fHEwj4=
AllowedIPs = 0.0.0.0/0
Endpoint = 195.181.167.193:51820
2. To connect I use the following command
sudo wg-quick up lx-mesopotamia
And the output is:
[#] ip link add lx-mesopotamia type wireguard
[#] wg setconf lx-mesopotamia /dev/fd/63
[#] ip -4 address add 10.2.0.2/32 dev lx-mesopotamia
[#] ip link set mtu 1420 up dev lx-mesopotamia
[#] resolvconf -a lx-mesopotamia -m 0 -x
[#] wg set lx-mesopotamia fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev lx-mesopotamia table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] iptables-restore -n
3. This are the logs
Jan 10 14:27:29 mesopotamia dbus-daemon[421]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.211' (uid=0 pid=341181 comm="sudo wg-quick up lx-mesopotamia")
Jan 10 14:27:29 mesopotamia dbus-daemon[421]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Jan 10 14:27:34 mesopotamia sudo[341181]: newquo : TTY=pts/1 ; PWD=/home/newquo ; USER=root ; COMMAND=/usr/bin/wg-quick up lx-mesopotamia
Jan 10 14:27:34 mesopotamia sudo[341181]: pam_unix(sudo:session): session opened for user root(uid=0) by newquo(uid=1000)
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1460] manager: (lx-mesopotamia): new WireGuard device (/org/freedesktop/NetworkManager/Devices/3)
Jan 10 14:27:34 mesopotamia kernel: wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
Jan 10 14:27:34 mesopotamia kernel: wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
Jan 10 14:27:34 mesopotamia systemd-networkd[304]: lx-mesopotamia: Link UP
Jan 10 14:27:34 mesopotamia systemd-networkd[304]: lx-mesopotamia: Gained carrier
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1568] device (lx-mesopotamia): state change: unmanaged -> unavailable (reason 'connection-assumed', sys-iface-state: 'external')
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1572] device (lx-mesopotamia): state change: unavailable -> disconnected (reason 'connection-assumed', sys-iface-state: 'external')
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1577] device (lx-mesopotamia): Activation: starting connection 'lx-mesopotamia' (cab28b8c-b053-44ea-8700-9805ef1383a1)
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1583] device (lx-mesopotamia): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'external')
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1585] device (lx-mesopotamia): state change: prepare -> config (reason 'none', sys-iface-state: 'external')
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1586] device (lx-mesopotamia): state change: config -> ip-config (reason 'none', sys-iface-state: 'external')
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1588] device (lx-mesopotamia): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'external')
Jan 10 14:27:34 mesopotamia dbus-daemon[421]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=462 comm="/usr/bin/NetworkManager --no-daemon")
Jan 10 14:27:34 mesopotamia systemd[1]: Starting Network Manager Script Dispatcher Service...
Jan 10 14:27:34 mesopotamia dbus-daemon[421]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jan 10 14:27:34 mesopotamia systemd[1]: Started Network Manager Script Dispatcher Service.
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1941] device (lx-mesopotamia): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'external')
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1943] device (lx-mesopotamia): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external')
Jan 10 14:27:34 mesopotamia NetworkManager[462]: <info> [1704893254.1947] device (lx-mesopotamia): Activation: successful, device activated.
Jan 10 14:27:34 mesopotamia sudo[341181]: pam_unix(sudo:session): session closed for user root
Jan 10 14:27:35 mesopotamia dhcpcd[425]: lx-mesopotamia: waiting for carrier
Jan 10 14:27:35 mesopotamia dhcpcd[425]: lx-mesopotamia: carrier acquired
Jan 10 14:27:35 mesopotamia dhcpcd[425]: lx-mesopotamia: IAID 00:00:00:03
Jan 10 14:27:35 mesopotamia dhcpcd[425]: lx-mesopotamia: waiting for 3rd party to configure IP address
Jan 10 14:27:39 mesopotamia ntpd[477]: Listen normally on 10 lx-mesopotamia 10.2.0.2:123
Jan 10 14:27:39 mesopotamia ntpd[477]: new interface(s) found: waking up resolver
Jan 10 14:27:44 mesopotamia systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
4. Output of the systemctl status systemd-resolved.service
● systemd-resolved.service - Network Name Resolution
Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; preset: enabled)
Active: active (running) since Tue 2024-01-09 12:01:08 CET; 1 day 2h ago
Docs: man:systemd-resolved.service(8)
man:org.freedesktop.resolve1(5)
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
Main PID: 404 (systemd-resolve)
Status: "Processing requests..."
Tasks: 1 (limit: 38202)
Memory: 13.4M (peak: 15.0M)
CPU: 21.240s
CGroup: /system.slice/systemd-resolved.service
└─404 /usr/lib/systemd/systemd-resolved
5. IP LINK output
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 40:a8:f0:5a:50:71 brd ff:ff:ff:ff:ff:ff
altname enp0s25
3: lx-mesopotamia: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/none
Do you have any idea about it?
Thank you very much for your time and support.
Last edited by newquo (2024-01-12 11:38:50)
Offline
It looks like you have wg-quick, systemd-networkd, and NetworkManager all running at once. Systemd-networkd and NetworkManager do more or less the same thing, so they'll undo each other's work, and wg-quick does a small piece of what they do, so they can undo its changes as well. You should pick one of systemd-networkd/NetworkManager and remove the other (uninstall NetworkManager or disable systemd-networkd), then make sure you've disabled 'wg-quick@lx-mesopotamia.service' if you enabled it and reboot. Then:
-If you keep NetworkManager, follow this section: https://wiki.archlinux.org/title/WireGu … orkManager
-If you keep systemd-networkd, follow this section: https://wiki.archlinux.org/title/WireGu … d-networkd
Then see if that fixed it.
(Edited for clarity.)
Last edited by SilenceUnderStars (2024-01-10 21:29:24)
Offline
Thank you very much SilenceUnderStars, it is working perfect right now.
I kept systemd-networkd and removed NetworkManager.
Cheers
Offline