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;








4















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.










share|improve this question



















  • 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

















4















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.










share|improve this question



















  • 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













4












4








4


1






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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 the nmcli device status command. turned out an unmanaged default interface was the issue in my case.

    – myrdd
    Oct 1 '18 at 19:39












  • 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







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










2 Answers
2






active

oldest

votes


















3














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 :)






share|improve this answer























  • 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


















1














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





share|improve this answer























  • It's "renderer" not "rendered"

    – Jairo
    2 days ago











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
);



);













draft saved

draft discarded


















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









3














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 :)






share|improve this answer























  • 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















3














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 :)






share|improve this answer























  • 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













3












3








3







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 :)






share|improve this answer













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 :)







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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













1














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





share|improve this answer























  • It's "renderer" not "rendered"

    – Jairo
    2 days ago















1














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





share|improve this answer























  • It's "renderer" not "rendered"

    – Jairo
    2 days ago













1












1








1







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





share|improve this answer













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






share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 20 '18 at 12:46









user117001user117001

111




111












  • 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





It's "renderer" not "rendered"

– Jairo
2 days ago

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition