-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network Manager applet icon does not change to "lock" after connecting to VPN #5527
Comments
Current workaround to see the connection status: click on the applet, select "Network Settings". |
How can cinnamon 3.4.0 not have this fix? |
I have the exact same issue; what would it take for it to be fixed in Cinnamon 3.4? |
Would it be possible to, at least, create a simple applet that would serve as a vpn indicator? |
In my case, this issue had to do with NetworkManager "managing" the tun0 interface that gets created when a VPN connection is established by nm-applet. Here's how I figured this out and resolved. YMMV. Establish your VPN connection via nm-applet. No lock icon, whant whant! Let's see what NetworkManger is up to, run the following... $
Now, lets delete the tun0 interface (don't worry, nm-applet re-creates the tun0 interface upon next start of your VPN connection)... $ This interrupts your VPN connection but you'll instantly see the pretty lock icon appear as desired. Let's now tell NetworkManager to no longer "manage" the tun0 interface. Open
Now restart NetworkManager (the entire service, not only nm-applet) or reboot if you're lazy or unsure how to do so. Establish your VPN connection via nm-applet and viola, you'll have that purdy lock icon. In closing, lets take another look at $
As we can see tun0 is now "unmanaged" and nm-applet is happy, with VPN working as expected. Long live the lock icon! |
Dear Doug, I'm sure this works, but would there be a way to implement
this into the network-manager packages?
On Sat, 09 Sep 2017 14:06:12 -0700, Doug Masiero wrote:
In my case, this issue had to do with NetworkManager "managing" the
tun0 interface that gets created when a VPN connection is established by
nm-applet. Here's how I figured this out and resolved. YMMV.
Establish your VPN connection via nm-applet. No lock icon, _whant
whant_! Let's see what NetworkManger is up to, run the following...
$ `nmcli d`
```
DEVICE TYPE STATE CONNECTION
tun0 tun connected tun0
wlp4s0 wifi connected SomeWifiNetwork
enp0s31f6 ethernet unavailable --
lo loopback unmanaged --
```
Now, lets delete the tun0 interface (don't worry, nm-applet re-creates
the tun0 interface upon next start of your VPN connection)...
$ `nmcli connection delete tun0`
This interrupts your VPN connection but you'll instantly see the pretty
lock icon appear as desired. Let's now tell NetworkManager to no longer
"manage" the tun0 interface.
Open `/etc/NetworkManager/NetworkManager.conf` in your favorite editor
via `sudo` as file is owned by root and add the following...
```
[keyfile]
unmanaged-devices=interface-name:tun0
```
Now restart NetworkManager (the entire service, not only nm-applet) or
reboot if you're lazy or unsure how to do so. Establish your VPN
connection via nm-applet and viola, you'll have that purdy lock icon. In
closing, lets take another look at `nmcli`...
$ `nmcli d`
```
DEVICE TYPE STATE CONNECTION
wlp4s0 wifi connected SomeWifiNetwork
enp0s31f6 ethernet unavailable --
lo loopback unmanaged --
tun0 tun unmanaged --
```
As we can see tun0 is now "unmanaged" and nm-applet is happy, with VPN
working as expected. Long live the lock icon!
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
|
great solution |
Interestingly, in my case of Linux Mint 18.3, the lock icon does change the Wi-Fi icon when I have Use this connection only for resources on its network unchecked. When it's checked, the icon doesn't change. |
To see the status of your VPN connection and automatically reconnect to the VPN when it drops, you can use the vpnLookOut applet: https://cinnamon-spices.linuxmint.com/applets/view/305 |
No matter what I tried, the lock icon does not appear. I guess this issue is still live. |
Same for me, on Linux Mint 19 Cinnamon. When Use this connection only for resources on its network unchecked - shows the lock, when I try to route only part through vpn, check the above mentioned, it does not show the lock |
Shouldn't this be a priority? Because the fact is the Nm Applet has so many issues... Can we fix the applet for a better experience? |
Well, can we expect it to be fixed? It is really annoying ((( |
From what I can see in the code, the icon matches the main connection only. That's why the "lock" icon shows up only when Use this connection only for resources on its network is unchecked. The code should probably be changed to take all the active connections into consideration (show an overlay "lock" icon, if a VPN connection is active, but it's not the main one) |
Will this ever be fixed? It's annoying. |
Really hope to see the fix soon. Like vpn is getting more and more used these days |
A quick solution would be to insert the following code after the line 2294 https://github.com/linuxmint/Cinnamon/blob/master/files/usr/share/cinnamon/applets/network@cinnamon.org/applet.js#L2294 just after the code that updates an icon for the main connection:
It overrides the main icon state if there is a VPN among active connection and the network icon changes to lock if a VPN is active. It has solved the issue for me and I'd submit a PR but I'm not sure if this is a proper solution for everyone. |
Another question: can an applet display a second icon in the tray? If yes, could someone point me to docs or code example? |
Somehow disappointing that this is not solved yet. "Lock" icon shows up only when "Use this connection only for resources on its network" is unchecked in OpenVPN NetworkManager using Cinnamon 4.8.6. |
IMHO this isn't a bug but a feature, why would the icon shows up as "locked" when the afore mentioned option is checked? Your network traffic is partially encrypted so the icon is showing the right state. |
Well, the other DEs (Gnome, MATE, XFCE, etc.) don't have this... feature :) |
The lock should indicate an established VPN connection, I think. So this is a bug in Cinnamon, I think. |
Totally agree. It shall show when vpn connection is up and running. The exact settings of vpn does not matter in this case |
My question still stands: is it possible to display the 2-nd Network Manager icon in the tray or add some overlay? It would solve the problem. I'm using the modified patch from above to monitor VPN status but I'd like to still see the network status icon as well. |
Check VPN Look-Out Applet - does something similar. |
Hey, thanks for this great walk around. I'll stick to it for a while |
Show "wired with a padlock" or "wireless with a padlock" icons when VPN is connected. This should resolve linuxmint#5527.
… VPN is connected This should resolve linuxmint#5527
When connected to a VPN over wireless, the Network Manager applet icon does not show a lockpad.
It seems to be a regression of Mint 18 / Cinnamon 3.
Versions:
Related packages:
Steps:
Connect to the VPN.
-> The notification "VPN Connection has been successfully established" is displayed.
-> The icon does NOT changes from "wireless" to "wired with padlock". It appears to switch to a different icon then revert back to the "wireless" icon.
It was working in Mint 17.2, 17.3.
Same results with other themes. I tried:
The text was updated successfully, but these errors were encountered: