How can I obtain DHCP4Config, IP4Config of an active VPN connection?



Hi everyone,

I'm currently working with NetworkManager and python in order to connect to my network company with a VPN. 
The python script performs just simple actions like connect VPN through my wired interface and then 
automatically configure my code to reach company servers.

Everything worked properly until I wanted to grab DHCP4Config return by the VPN server. Indeed, with a simple 
connection the way to track this information is to get the device and then ask for those parameters. 
Workflow:
1. [org.freedesktop.NetworkManager.Connection.Active] => [Properties] => [Devices]
2. [org.freedesktop.NetworkManager.Device] => [Properties] => [DHCP4Config, IP4Config, ...]

But with a VPN connection, you cannot track the device because Network Manager didn't add "tun" or "tap" 
device to the devices list.
So is it possible to get these parameters with Network Manager? Or is it possible to get a "kind" of device 
as the abstraction of the VPN tunnel?

Thanks in advance for your help,
Chris

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]