NetworkManager fails with “Could not find source connection”Trouble connecting to VPN using network-manager, while command line worksHow can I be notified about state changes to a VPN adapterBacktrack 5 R3 - Refuses to connect to VPNFeed all traffic through OpenVPN for a specific network namespace onlyRun daemon on startup in Debian once openvpn connection establishedpfsense tcp connection between openvpn and lan is brokenInternet connection problem with web browsers onlyWhy does NetworkManager explicitly support tun/tap devices?Browser issues with VPNTwo IP addresses assigned to the same network card - OpenVPN issues?Cannot connect to WiFi with nmcli, although secrets are provided
What typically incentivizes a professor to change jobs to a lower ranking university?
Reorder a Master List Based on a Reordered Subset
How does one intimidate enemies without having the capacity for violence?
Is it possible to do 50 km distance without any previous training?
Java Casting: Java 11 throws LambdaConversionException while 1.8 does not
How much RAM could one put in a typical 80386 setup?
Is it legal for company to use my work email to pretend I still work there?
Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?
How is it possible to have an ability score that is less than 3?
Why does Kotter return in Welcome Back Kotter?
Can I ask the recruiters in my resume to put the reason why I am rejected?
Why is consensus so controversial in Britain?
Which country benefited the most from UN Security Council vetoes?
Do infinite dimensional systems make sense?
What's the point of deactivating Num Lock on login screens?
Linear Path Optimization with Two Dependent Variables
Could gravitational lensing be used to protect a spaceship from a laser?
What would be a good lightweight desktop environment to replace GNOME on CentOS?
Alternative to sending password over mail?
Fully-Firstable Anagram Sets
Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?
Why doesn't a class having private constructor prevent inheriting from this class? How to control which classes can inherit from a certain base?
How to format long polynomial?
How old can references or sources in a thesis be?
NetworkManager fails with “Could not find source connection”
Trouble connecting to VPN using network-manager, while command line worksHow can I be notified about state changes to a VPN adapterBacktrack 5 R3 - Refuses to connect to VPNFeed all traffic through OpenVPN for a specific network namespace onlyRun daemon on startup in Debian once openvpn connection establishedpfsense tcp connection between openvpn and lan is brokenInternet connection problem with web browsers onlyWhy does NetworkManager explicitly support tun/tap devices?Browser issues with VPNTwo IP addresses assigned to the same network card - OpenVPN issues?Cannot connect to WiFi with nmcli, although secrets are provided
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
When trying to connect to a VPN using openvpn
through NetworkManager
, it fails with
Apr 17 02:03:17 GAMINGSTATION NetworkManager[1922]: <info>
[1523923397.5294] audit: op="connection-activate"
uuid="186c555a-dd51-4dc1-97c9-70d93c30713d" name="kit"
pid=1976 uid=1000 result="fail" reason="Could not find source connection."
However, when using openvpn
directly, the connection works.
I found multiple threads suggesting that NetworkManager
needs to manage the default network device, but that is the case:
$ nmcli device status
DEVICE TYPE STATE CONNECTION
br0 bridge connected br0
enp3s0 ethernet connected enp3s0
lo loopback not managed --
What could be the issue here?
Note: This question looks very similar to Trouble connecting to VPN using network-manager, while command line works, however that question does not have any useful answers.
arch-linux openvpn networkmanager vpn
add a comment |
When trying to connect to a VPN using openvpn
through NetworkManager
, it fails with
Apr 17 02:03:17 GAMINGSTATION NetworkManager[1922]: <info>
[1523923397.5294] audit: op="connection-activate"
uuid="186c555a-dd51-4dc1-97c9-70d93c30713d" name="kit"
pid=1976 uid=1000 result="fail" reason="Could not find source connection."
However, when using openvpn
directly, the connection works.
I found multiple threads suggesting that NetworkManager
needs to manage the default network device, but that is the case:
$ nmcli device status
DEVICE TYPE STATE CONNECTION
br0 bridge connected br0
enp3s0 ethernet connected enp3s0
lo loopback not managed --
What could be the issue here?
Note: This question looks very similar to Trouble connecting to VPN using network-manager, while command line works, however that question does not have any useful answers.
arch-linux openvpn networkmanager vpn
2
+1 for thenmcli device status
command. turned out an unmanaged default interface was the issue in my case.
– myrdd
Oct 1 '18 at 19:39
add a comment |
When trying to connect to a VPN using openvpn
through NetworkManager
, it fails with
Apr 17 02:03:17 GAMINGSTATION NetworkManager[1922]: <info>
[1523923397.5294] audit: op="connection-activate"
uuid="186c555a-dd51-4dc1-97c9-70d93c30713d" name="kit"
pid=1976 uid=1000 result="fail" reason="Could not find source connection."
However, when using openvpn
directly, the connection works.
I found multiple threads suggesting that NetworkManager
needs to manage the default network device, but that is the case:
$ nmcli device status
DEVICE TYPE STATE CONNECTION
br0 bridge connected br0
enp3s0 ethernet connected enp3s0
lo loopback not managed --
What could be the issue here?
Note: This question looks very similar to Trouble connecting to VPN using network-manager, while command line works, however that question does not have any useful answers.
arch-linux openvpn networkmanager vpn
When trying to connect to a VPN using openvpn
through NetworkManager
, it fails with
Apr 17 02:03:17 GAMINGSTATION NetworkManager[1922]: <info>
[1523923397.5294] audit: op="connection-activate"
uuid="186c555a-dd51-4dc1-97c9-70d93c30713d" name="kit"
pid=1976 uid=1000 result="fail" reason="Could not find source connection."
However, when using openvpn
directly, the connection works.
I found multiple threads suggesting that NetworkManager
needs to manage the default network device, but that is the case:
$ nmcli device status
DEVICE TYPE STATE CONNECTION
br0 bridge connected br0
enp3s0 ethernet connected enp3s0
lo loopback not managed --
What could be the issue here?
Note: This question looks very similar to Trouble connecting to VPN using network-manager, while command line works, however that question does not have any useful answers.
arch-linux openvpn networkmanager vpn
arch-linux openvpn networkmanager vpn
edited Apr 17 '18 at 7:54
GAD3R
27.9k1958114
27.9k1958114
asked Apr 17 '18 at 0:11
F43nd1rF43nd1r
12115
12115
2
+1 for thenmcli device status
command. turned out an unmanaged default interface was the issue in my case.
– myrdd
Oct 1 '18 at 19:39
add a comment |
2
+1 for thenmcli device status
command. turned out an unmanaged default interface was the issue in my case.
– myrdd
Oct 1 '18 at 19:39
2
2
+1 for the
nmcli device status
command. turned out an unmanaged default interface was the issue in my case.– myrdd
Oct 1 '18 at 19:39
+1 for the
nmcli device status
command. turned out an unmanaged default interface was the issue in my case.– myrdd
Oct 1 '18 at 19:39
add a comment |
2 Answers
2
active
oldest
votes
I got this bug even weirder.
$ nmcli c up VPN
Error: Connection activation failed: Could not find source connection.
$ nm-applet # click icon, VPN, VPN
WORKS!
I learned that Network manager first check if it "owns the default route" before it allows VPNs.
Any route will work: You can satisfy it with default route to 127.0.0.1. You can give it default ipv4 route when your vpn gateway is ipv6. It does not care about these little details :)
I do the same with nmcli, then I try the nm-applet and neither work despite the fact that they worked before reboot.
– jeremiah
Oct 26 '18 at 21:54
add a comment |
I had a long fight for this but this how I managed to find a workaround the issue in Ubuntu 18 using network-manager and GUI:
Download GUI packages
$ sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome
Network manager change [ifupdown] managed=true
$ sudo nano /etc/NetworkManager/NetworkManager.conf
.
.
[ifupdown]
managed=true
.
.
Import config.ovpn from GUI
(Settings -> Network -> VPN -> +)
Check imported connection id from from the connection file that was created automatically. (The file should be named config and id should also be config but they can be something else)
$ sudo grep /etc/NetworkManager/system-connections/config | grep "^id"
Change rendered to NetworkManager and add the new connection id inside the ethernets
$ sudo nano /etc/netplan/01-netcfg.yaml
network:
version: 2
rendered: NetworkManager
ethernets:
enp0s25:
dhcp4: yes
config:
dhcp4: yes
Apply changes
$ sudo netplan apply
Restart network-manager
$ sudo service network-manager restart
Open the connection either from the GUI or using nmcli
$ nmcli connection up config
It's "renderer" not "rendered"
– Jairo
2 days ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438224%2fnetworkmanager-fails-with-could-not-find-source-connection%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I got this bug even weirder.
$ nmcli c up VPN
Error: Connection activation failed: Could not find source connection.
$ nm-applet # click icon, VPN, VPN
WORKS!
I learned that Network manager first check if it "owns the default route" before it allows VPNs.
Any route will work: You can satisfy it with default route to 127.0.0.1. You can give it default ipv4 route when your vpn gateway is ipv6. It does not care about these little details :)
I do the same with nmcli, then I try the nm-applet and neither work despite the fact that they worked before reboot.
– jeremiah
Oct 26 '18 at 21:54
add a comment |
I got this bug even weirder.
$ nmcli c up VPN
Error: Connection activation failed: Could not find source connection.
$ nm-applet # click icon, VPN, VPN
WORKS!
I learned that Network manager first check if it "owns the default route" before it allows VPNs.
Any route will work: You can satisfy it with default route to 127.0.0.1. You can give it default ipv4 route when your vpn gateway is ipv6. It does not care about these little details :)
I do the same with nmcli, then I try the nm-applet and neither work despite the fact that they worked before reboot.
– jeremiah
Oct 26 '18 at 21:54
add a comment |
I got this bug even weirder.
$ nmcli c up VPN
Error: Connection activation failed: Could not find source connection.
$ nm-applet # click icon, VPN, VPN
WORKS!
I learned that Network manager first check if it "owns the default route" before it allows VPNs.
Any route will work: You can satisfy it with default route to 127.0.0.1. You can give it default ipv4 route when your vpn gateway is ipv6. It does not care about these little details :)
I got this bug even weirder.
$ nmcli c up VPN
Error: Connection activation failed: Could not find source connection.
$ nm-applet # click icon, VPN, VPN
WORKS!
I learned that Network manager first check if it "owns the default route" before it allows VPNs.
Any route will work: You can satisfy it with default route to 127.0.0.1. You can give it default ipv4 route when your vpn gateway is ipv6. It does not care about these little details :)
answered Jun 21 '18 at 12:20
nmhnmh
312
312
I do the same with nmcli, then I try the nm-applet and neither work despite the fact that they worked before reboot.
– jeremiah
Oct 26 '18 at 21:54
add a comment |
I do the same with nmcli, then I try the nm-applet and neither work despite the fact that they worked before reboot.
– jeremiah
Oct 26 '18 at 21:54
I do the same with nmcli, then I try the nm-applet and neither work despite the fact that they worked before reboot.
– jeremiah
Oct 26 '18 at 21:54
I do the same with nmcli, then I try the nm-applet and neither work despite the fact that they worked before reboot.
– jeremiah
Oct 26 '18 at 21:54
add a comment |
I had a long fight for this but this how I managed to find a workaround the issue in Ubuntu 18 using network-manager and GUI:
Download GUI packages
$ sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome
Network manager change [ifupdown] managed=true
$ sudo nano /etc/NetworkManager/NetworkManager.conf
.
.
[ifupdown]
managed=true
.
.
Import config.ovpn from GUI
(Settings -> Network -> VPN -> +)
Check imported connection id from from the connection file that was created automatically. (The file should be named config and id should also be config but they can be something else)
$ sudo grep /etc/NetworkManager/system-connections/config | grep "^id"
Change rendered to NetworkManager and add the new connection id inside the ethernets
$ sudo nano /etc/netplan/01-netcfg.yaml
network:
version: 2
rendered: NetworkManager
ethernets:
enp0s25:
dhcp4: yes
config:
dhcp4: yes
Apply changes
$ sudo netplan apply
Restart network-manager
$ sudo service network-manager restart
Open the connection either from the GUI or using nmcli
$ nmcli connection up config
It's "renderer" not "rendered"
– Jairo
2 days ago
add a comment |
I had a long fight for this but this how I managed to find a workaround the issue in Ubuntu 18 using network-manager and GUI:
Download GUI packages
$ sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome
Network manager change [ifupdown] managed=true
$ sudo nano /etc/NetworkManager/NetworkManager.conf
.
.
[ifupdown]
managed=true
.
.
Import config.ovpn from GUI
(Settings -> Network -> VPN -> +)
Check imported connection id from from the connection file that was created automatically. (The file should be named config and id should also be config but they can be something else)
$ sudo grep /etc/NetworkManager/system-connections/config | grep "^id"
Change rendered to NetworkManager and add the new connection id inside the ethernets
$ sudo nano /etc/netplan/01-netcfg.yaml
network:
version: 2
rendered: NetworkManager
ethernets:
enp0s25:
dhcp4: yes
config:
dhcp4: yes
Apply changes
$ sudo netplan apply
Restart network-manager
$ sudo service network-manager restart
Open the connection either from the GUI or using nmcli
$ nmcli connection up config
It's "renderer" not "rendered"
– Jairo
2 days ago
add a comment |
I had a long fight for this but this how I managed to find a workaround the issue in Ubuntu 18 using network-manager and GUI:
Download GUI packages
$ sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome
Network manager change [ifupdown] managed=true
$ sudo nano /etc/NetworkManager/NetworkManager.conf
.
.
[ifupdown]
managed=true
.
.
Import config.ovpn from GUI
(Settings -> Network -> VPN -> +)
Check imported connection id from from the connection file that was created automatically. (The file should be named config and id should also be config but they can be something else)
$ sudo grep /etc/NetworkManager/system-connections/config | grep "^id"
Change rendered to NetworkManager and add the new connection id inside the ethernets
$ sudo nano /etc/netplan/01-netcfg.yaml
network:
version: 2
rendered: NetworkManager
ethernets:
enp0s25:
dhcp4: yes
config:
dhcp4: yes
Apply changes
$ sudo netplan apply
Restart network-manager
$ sudo service network-manager restart
Open the connection either from the GUI or using nmcli
$ nmcli connection up config
I had a long fight for this but this how I managed to find a workaround the issue in Ubuntu 18 using network-manager and GUI:
Download GUI packages
$ sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome
Network manager change [ifupdown] managed=true
$ sudo nano /etc/NetworkManager/NetworkManager.conf
.
.
[ifupdown]
managed=true
.
.
Import config.ovpn from GUI
(Settings -> Network -> VPN -> +)
Check imported connection id from from the connection file that was created automatically. (The file should be named config and id should also be config but they can be something else)
$ sudo grep /etc/NetworkManager/system-connections/config | grep "^id"
Change rendered to NetworkManager and add the new connection id inside the ethernets
$ sudo nano /etc/netplan/01-netcfg.yaml
network:
version: 2
rendered: NetworkManager
ethernets:
enp0s25:
dhcp4: yes
config:
dhcp4: yes
Apply changes
$ sudo netplan apply
Restart network-manager
$ sudo service network-manager restart
Open the connection either from the GUI or using nmcli
$ nmcli connection up config
answered Jul 20 '18 at 12:46
user117001user117001
111
111
It's "renderer" not "rendered"
– Jairo
2 days ago
add a comment |
It's "renderer" not "rendered"
– Jairo
2 days ago
It's "renderer" not "rendered"
– Jairo
2 days ago
It's "renderer" not "rendered"
– Jairo
2 days ago
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438224%2fnetworkmanager-fails-with-could-not-find-source-connection%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
+1 for the
nmcli device status
command. turned out an unmanaged default interface was the issue in my case.– myrdd
Oct 1 '18 at 19:39