andrew-bibb / cmst

QT GUI for Connman
174 stars 37 forks source link

VPN Display Chart: Where does CMST take it's Information for fields "Type" and "Host"? #196

Closed EarthlingX closed 5 years ago

EarthlingX commented 5 years ago

First to relax: My VPN works completely fine and probably this is not even an issue... :-)

Just a very simple question:

Where does CMST take it's information to fill out the fields "Type" and "Host" within the VPN display chart? I am wondering about, because they are empty in my case:

bild

The corresponding VPN provisioning file looks like that:

[global]
Name = My_Company_VPN
Description = VPN tunnel to my company

[provider_openconnect]
Type = OpenConnect
Name = My_Company_VPN
Domain = https://vpn.mycompany.com
Host = 186.25.354.77
OpenConnect.ServerCert = sha256:afwzdaip24ctfm5kgm44dkem2or3n24afkrsdafd8oz2thhakano7nqppviyc9
OpenConnect.Cookie = LYT4FHM898WVM7QB2YB8VZTYEY5YXXCLATT7ATC6347N643BAHBQD9GJUYJ

I think all regarding lines are existent in the provisioning file, maybe there is something missing (which is necessary for those two fields)?

Thanks a lot for your help!

andrew-bibb commented 5 years ago

A question I can answer without needing my still dead development computer - yea!

Information displayed here comes from ConnMan. The data comes via DBus from net.connman.Manager in response to a getServices() call. I created the interface element you see based on what information could be returned based on the ConnMan documentation. If the fields are empty and your vpn is working I would expect that there is nothing worth displaying in the opinion of the ConnMan developers.

If you want to make sure you might be able to use the command line conmannctl interface built into ConnMan. I'm not sure on that as the data structure returned is quite complicated. If connmanctl does not have a way of viewing it I generally fall back to a dbus debugger.