NetworkManager vpn con fails when no gateway

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












When I try to activate an OpenVPN connection using the network manager command:



nmcli connection up vpn_conn 


I get the following error:



Error: Connection activation failed: Could not find source connection. 


I only get the error when there is no gateway set on the ethernet connection. Does anyone know why?



I added unicast static routes to the vpn server. What is more interesting is if I set a fake gateway/default route on the ethernet connection, something like 127.0.0.1 everything works just fine. It seems as though network manager will not even attempt to create the vpn connection if there is no gateway set.



Is this a bug? Where do I report it? How do I fix it?










share|improve this question























  • If there's no gateway, your system won't know how to route the initial connection to the OpenVPN network. That's basic networking - you need a gateway address for your default connection if it's the only system on your computer to know where to reach through. The exception is if the OpenVPN server sits in the same subnet. So it's not a bug, it's basic networking controls/configurations that are missing.
    – Thomas Ward♦
    Apr 10 at 14:52










  • thanks for the reply tom, but i added unicast static routes for the VPN servers, and the DNS server. also if i add a fake gateway like 127.0.0.1 or even an IP not on my network the connection works just fine.
    – MoonManT
    Apr 10 at 15:25














up vote
1
down vote

favorite












When I try to activate an OpenVPN connection using the network manager command:



nmcli connection up vpn_conn 


I get the following error:



Error: Connection activation failed: Could not find source connection. 


I only get the error when there is no gateway set on the ethernet connection. Does anyone know why?



I added unicast static routes to the vpn server. What is more interesting is if I set a fake gateway/default route on the ethernet connection, something like 127.0.0.1 everything works just fine. It seems as though network manager will not even attempt to create the vpn connection if there is no gateway set.



Is this a bug? Where do I report it? How do I fix it?










share|improve this question























  • If there's no gateway, your system won't know how to route the initial connection to the OpenVPN network. That's basic networking - you need a gateway address for your default connection if it's the only system on your computer to know where to reach through. The exception is if the OpenVPN server sits in the same subnet. So it's not a bug, it's basic networking controls/configurations that are missing.
    – Thomas Ward♦
    Apr 10 at 14:52










  • thanks for the reply tom, but i added unicast static routes for the VPN servers, and the DNS server. also if i add a fake gateway like 127.0.0.1 or even an IP not on my network the connection works just fine.
    – MoonManT
    Apr 10 at 15:25












up vote
1
down vote

favorite









up vote
1
down vote

favorite











When I try to activate an OpenVPN connection using the network manager command:



nmcli connection up vpn_conn 


I get the following error:



Error: Connection activation failed: Could not find source connection. 


I only get the error when there is no gateway set on the ethernet connection. Does anyone know why?



I added unicast static routes to the vpn server. What is more interesting is if I set a fake gateway/default route on the ethernet connection, something like 127.0.0.1 everything works just fine. It seems as though network manager will not even attempt to create the vpn connection if there is no gateway set.



Is this a bug? Where do I report it? How do I fix it?










share|improve this question















When I try to activate an OpenVPN connection using the network manager command:



nmcli connection up vpn_conn 


I get the following error:



Error: Connection activation failed: Could not find source connection. 


I only get the error when there is no gateway set on the ethernet connection. Does anyone know why?



I added unicast static routes to the vpn server. What is more interesting is if I set a fake gateway/default route on the ethernet connection, something like 127.0.0.1 everything works just fine. It seems as though network manager will not even attempt to create the vpn connection if there is no gateway set.



Is this a bug? Where do I report it? How do I fix it?







vpn openvpn nmcli






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 10 at 16:11









David Foerster

26.2k1361106




26.2k1361106










asked Apr 10 at 14:25









MoonManT

405




405











  • If there's no gateway, your system won't know how to route the initial connection to the OpenVPN network. That's basic networking - you need a gateway address for your default connection if it's the only system on your computer to know where to reach through. The exception is if the OpenVPN server sits in the same subnet. So it's not a bug, it's basic networking controls/configurations that are missing.
    – Thomas Ward♦
    Apr 10 at 14:52










  • thanks for the reply tom, but i added unicast static routes for the VPN servers, and the DNS server. also if i add a fake gateway like 127.0.0.1 or even an IP not on my network the connection works just fine.
    – MoonManT
    Apr 10 at 15:25
















  • If there's no gateway, your system won't know how to route the initial connection to the OpenVPN network. That's basic networking - you need a gateway address for your default connection if it's the only system on your computer to know where to reach through. The exception is if the OpenVPN server sits in the same subnet. So it's not a bug, it's basic networking controls/configurations that are missing.
    – Thomas Ward♦
    Apr 10 at 14:52










  • thanks for the reply tom, but i added unicast static routes for the VPN servers, and the DNS server. also if i add a fake gateway like 127.0.0.1 or even an IP not on my network the connection works just fine.
    – MoonManT
    Apr 10 at 15:25















If there's no gateway, your system won't know how to route the initial connection to the OpenVPN network. That's basic networking - you need a gateway address for your default connection if it's the only system on your computer to know where to reach through. The exception is if the OpenVPN server sits in the same subnet. So it's not a bug, it's basic networking controls/configurations that are missing.
– Thomas Ward♦
Apr 10 at 14:52




If there's no gateway, your system won't know how to route the initial connection to the OpenVPN network. That's basic networking - you need a gateway address for your default connection if it's the only system on your computer to know where to reach through. The exception is if the OpenVPN server sits in the same subnet. So it's not a bug, it's basic networking controls/configurations that are missing.
– Thomas Ward♦
Apr 10 at 14:52












thanks for the reply tom, but i added unicast static routes for the VPN servers, and the DNS server. also if i add a fake gateway like 127.0.0.1 or even an IP not on my network the connection works just fine.
– MoonManT
Apr 10 at 15:25




thanks for the reply tom, but i added unicast static routes for the VPN servers, and the DNS server. also if i add a fake gateway like 127.0.0.1 or even an IP not on my network the connection works just fine.
– MoonManT
Apr 10 at 15:25










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










This is a known feature/bug in NetworkManager dating back to 2013 there needs to be a gateway set even if it does nothing or is a fake IP.



https://bugzilla.gnome.org/show_bug.cgi?id=704595






share|improve this answer
















  • 1




    You can improve your answer by listing steps to create a fake IP. Also don't forget to check your answer as the accepted solution.
    – WinEunuuchs2Unix
    Apr 15 at 18:27










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023672%2fnetworkmanager-vpn-con-fails-when-no-gateway%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










This is a known feature/bug in NetworkManager dating back to 2013 there needs to be a gateway set even if it does nothing or is a fake IP.



https://bugzilla.gnome.org/show_bug.cgi?id=704595






share|improve this answer
















  • 1




    You can improve your answer by listing steps to create a fake IP. Also don't forget to check your answer as the accepted solution.
    – WinEunuuchs2Unix
    Apr 15 at 18:27














up vote
1
down vote



accepted










This is a known feature/bug in NetworkManager dating back to 2013 there needs to be a gateway set even if it does nothing or is a fake IP.



https://bugzilla.gnome.org/show_bug.cgi?id=704595






share|improve this answer
















  • 1




    You can improve your answer by listing steps to create a fake IP. Also don't forget to check your answer as the accepted solution.
    – WinEunuuchs2Unix
    Apr 15 at 18:27












up vote
1
down vote



accepted







up vote
1
down vote



accepted






This is a known feature/bug in NetworkManager dating back to 2013 there needs to be a gateway set even if it does nothing or is a fake IP.



https://bugzilla.gnome.org/show_bug.cgi?id=704595






share|improve this answer












This is a known feature/bug in NetworkManager dating back to 2013 there needs to be a gateway set even if it does nothing or is a fake IP.



https://bugzilla.gnome.org/show_bug.cgi?id=704595







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 15 at 18:21









MoonManT

405




405







  • 1




    You can improve your answer by listing steps to create a fake IP. Also don't forget to check your answer as the accepted solution.
    – WinEunuuchs2Unix
    Apr 15 at 18:27












  • 1




    You can improve your answer by listing steps to create a fake IP. Also don't forget to check your answer as the accepted solution.
    – WinEunuuchs2Unix
    Apr 15 at 18:27







1




1




You can improve your answer by listing steps to create a fake IP. Also don't forget to check your answer as the accepted solution.
– WinEunuuchs2Unix
Apr 15 at 18:27




You can improve your answer by listing steps to create a fake IP. Also don't forget to check your answer as the accepted solution.
– WinEunuuchs2Unix
Apr 15 at 18:27

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023672%2fnetworkmanager-vpn-con-fails-when-no-gateway%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Trouble downloading packages list due to a “Hash sum mismatch” error

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

How do I move numbers in filenames, in a batch renaming operation?