NetworkManager vpn con fails when no gateway

Clash 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?
vpn openvpn nmcli
add a comment |Â
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?
vpn openvpn nmcli
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
add a comment |Â
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?
vpn openvpn nmcli
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
vpn openvpn nmcli
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
add a comment |Â
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
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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