All,

Two issues in this mail.

1) Trouble starting VPN via "nmcli con up uuid"

2) "nmcli con" not showing a connection setup via nm-applet under vncserver.  I 
typed nmcli both as root and regular user. Why?  Presumably some permission is 
failing. How do I fix it?


Reg 1: 

Dan, Thanks.  I did what you said.  It is not working, with NetworkManager 
thinking there is no network connectivity.  I definitely have network 
connectivity as I am able to ping Google.  But, NetworkManager is not 
understanding it.  This network connectivity is coming up at startup on eth0 
due to legacy Redhat scripts (/etc/sysconfig/network-scripts/ifcfg-eth0). When 
I do

nmcli con up uuid <uuid>

I get this error: Error: No suitable device found: no active connection or 
device.


How do I get NetworkManager to realize there is a connection or override it's 
connection availability checking?  NetworkManager-0.8.4-1.fc14.i686


Can you help?  Thanks.

NetworkManager.conf reads:
[main]
plugins=ifcfg-rh,keyfile


--Mohan



________________________________
From: Dan Williams <[email protected]>
To: Mohan Sfo <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Friday, September 30, 2011 1:35 AM
Subject: Re: NetworkManager from command line

On Tue, 2011-09-20 at 14:11 -0700, Mohan Sfo wrote:
> 
> 
> Hi all,
> 
> 
> 
> 
> Could you show me how to setup a PPTP VPN via  NetworkManager via
> command line? What files need to be edited, what commands need to be
> run?

At the moment, VPN connections can be configured manually by editing
'keyfile' connection files in /etc/NetworkManager/system-connections.  A
sample PPTP keyfile is as follows:

[connection]
id=Sample PPTP
uuid=2b88c363-f97e-4e76-9ee6-8b9bb136e75b
type=vpn
autoconnect=false

[vpn]
service-type=org.freedesktop.NetworkManager.pptp
gateway=1.1.1.1
user=dcbw
password=myspace

[ipv4]
method=auto

You can change various other options.  One way to do that is to run
nm-connection-editor on a machine with a GUI and set up the connection,
then copy the connection file when you've got it set up right.

Dan

> 
> Also, does it allow any user who logged in to modify the network
> configuration? Is there a way to restrict who can modify the network?
> I was very susprised that a non-root user was able to change routing
> parameters.
> 
> 
> 
> 
> 
> Thanks,
> Mohan
> _______________________________________________
> networkmanager-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
_______________________________________________
networkmanager-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to