You are not logged in.

#1 2020-01-23 20:01:48

jakub
Member
Registered: 2013-09-14
Posts: 151

[SOLVED] VPN connection issue (Could not find source connection)

My VPN connection was working fine till today, current situation is that I can not connect:


➜  ~ nmcli con                                 
NAME                     UUID                                  TYPE      DEVICE          
enp10s0                  0761c3d7-bf8e-4f76-8ed5-fbdedad980f5  ethernet  enp10s0         
br-d0152f56d9ad          fd038eb0-3231-4704-ae48-f8843c260f1b  bridge    br-d0152f56d9ad 
docker0                  b4f1dd73-2c76-4fd2-9402-13ca739343b5  bridge    docker0         
enp10s0                  92845b08-f1b8-4acd-acc7-0ad24cc66353  ethernet  --              
NETIASPOT-D8BE30         503b6a95-7027-4cc2-b382-3890051ee57c  wifi      --              
Połączenie przewodowe 1  8a8fca13-c4a3-3ea6-bbe6-57f5dd1365c6  ethernet  --              
vpn                      2452b7f9-a830-4885-bfdc-421d20552aae  vpn       --   
➜  ~ nmcli con up vpn
Błąd: aktywacja połączenia się nie powiodła: Could not find source connection.
➜  ~ sudo journalctl -f -u NetworkManager.service
sty 23 20:57:04 mayday NetworkManager[2136]: <info>  [1579809424.8031] audit: op="statistics" arg="refresh-rate-ms" pid=1319 uid=1000 result="success"
sty 23 20:57:07 mayday NetworkManager[2136]: <info>  [1579809427.0240] audit: op="connection-activate" uuid="2452b7f9-a830-4885-bfdc-421d20552aae" name="vpn" pid=1319 uid=1000 result="fail" reason="Could not find source connection."

I found out that my dhcpcd service was enabled for all interfaces which is not recommend according to what I've read. I've disabled it and re-enabled only for ethernet enp10s0 (but I'm not sure if it's related as it didn't help):

➜  ~ systemctl list-unit-files --state=enabled
UNIT FILE                                  STATE  
autovt@.service                            enabled
dbus-org.freedesktop.nm-dispatcher.service enabled
display-manager.service                    enabled
docker.service                             enabled
getty@.service                             enabled
NetworkManager-dispatcher.service          enabled
NetworkManager-wait-online.service         enabled
NetworkManager.service                     enabled
sddm.service                               enabled
remote-fs.target                           enabled

10 unit files listed.
➜  ~ nmcli connection show vpn
connection.id:                          vpn
connection.uuid:                        2452b7f9-a830-4885-bfdc-421d20552aae
connection.stable-id:                   --
connection.type:                        vpn
connection.interface-name:              --
connection.autoconnect:                 tak
connection.autoconnect-priority:        0
connection.autoconnect-retries:         -1 (default)
connection.multi-connect:               0 (default)
connection.auth-retries:                -1
connection.timestamp:                   1579808842
connection.read-only:                   nie
connection.permissions:                 user:kuba
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.autoconnect-slaves:          -1 (default)
connection.secondaries:                 --
connection.gateway-ping-timeout:        0
connection.metered:                     nieznane
connection.lldp:                        default
connection.mdns:                        -1 (default)
connection.llmnr:                       -1 (default)
connection.wait-device-timeout:         -1
ipv4.method:                            auto
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.addresses:                         --
ipv4.gateway:                           --
ipv4.routes:                            --
ipv4.route-metric:                      -1
ipv4.route-table:                       0 (unspec)
ipv4.routing-rules:                     --
ipv4.ignore-auto-routes:                nie
ipv4.ignore-auto-dns:                   nie
ipv4.dhcp-client-id:                    --
ipv4.dhcp-iaid:                         --
ipv4.dhcp-timeout:                      0 (default)
ipv4.dhcp-send-hostname:                tak
ipv4.dhcp-hostname:                     --
ipv4.dhcp-fqdn:                         --
ipv4.dhcp-hostname-flags:               0x0 (none)
ipv4.never-default:                     nie
ipv4.may-fail:                          tak
ipv4.dad-timeout:                       -1 (default)
ipv6.method:                            ignore
ipv6.dns:                               --
ipv6.dns-search:                        --
ipv6.dns-options:                       --
ipv6.dns-priority:                      0
ipv6.addresses:                         --
ipv6.gateway:                           --
ipv6.routes:                            --
ipv6.route-metric:                      -1
ipv6.route-table:                       0 (unspec)
ipv6.routing-rules:                     --
ipv6.ignore-auto-routes:                nie
ipv6.ignore-auto-dns:                   nie
ipv6.never-default:                     nie
ipv6.may-fail:                          tak
ipv6.ip6-privacy:                       -1 (unknown)
ipv6.addr-gen-mode:                     stable-privacy
ipv6.dhcp-duid:                         --
ipv6.dhcp-iaid:                         --
ipv6.dhcp-send-hostname:                tak
ipv6.dhcp-hostname:                     --
ipv6.dhcp-hostname-flags:               0x0 (none)
ipv6.token:                             --
vpn.service-type:                       org.freedesktop.NetworkManager.sstp
vpn.user-name:                          --
vpn.data:                               gateway = ***.com, password-flags = 2, proxy-password-flags = 1, proxy-port = 0, refuse-chap = yes, refuse-eap = yes, refuse-pap = yes, require-mppe = yes, user = ***
vpn.secrets:                            <hidden>
vpn.persistent:                         nie
vpn.timeout:                            0
proxy.method:                           none
proxy.browser-only:                     nie
proxy.pac-url:                          --
proxy.pac-script:                       --

Could you please support me with solving this issue?

edit: Just found this - https://gitlab.freedesktop.org/NetworkM … issues/347

Last edited by jakub (2020-01-24 18:40:27)

Offline

#2 2020-01-24 18:39:44

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: [SOLVED] VPN connection issue (Could not find source connection)

Seems like I've solved this. I first checked if enp10s0 is really managed by NetworkManager (GENERAL.NM-MANAGED: yes).

nmcli -p -f general device show enp10s0
===============================================================================
                       Informacje o urządzeniu (enp10s0)
===============================================================================
GENERAL.DEVICE:                         enp10s0
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/Devices/3
GENERAL.VENDOR:                         Intel Corporation
GENERAL.PRODUCT:                        I211 Gigabit Network Connection
GENERAL.DRIVER:                         igb
GENERAL.DRIVER-VERSION:                 5.6.0-k
GENERAL.FIRMWARE-VERSION:                0. 6-1
GENERAL.HWADDR:                         D0:17:C2:AB:99:E7
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (połączono)
GENERAL.REASON:                         0 (Nie podano przyczyny)
GENERAL.IP4-CONNECTIVITY:               4 (pełne)
GENERAL.IP6-CONNECTIVITY:               1 (brak)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/0000:04:06.0/0000:0a:00.0/net/enp10s0
GENERAL.IP-IFACE:                       enp10s0
GENERAL.IS-SOFTWARE:                    nie
GENERAL.NM-MANAGED:                     tak
<cut>

I've rechecked IPv6 settings. I thought I had it disabled but it wasn't disabled (previously I've set it to "ignore" from UI).

Executing command

nmcli connection modify Example ipv6.method "disabled"

and then restarting connection solved the problem. Now I'm able to connect to VPN.

Offline

Board footer

Powered by FluxBB