linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.56k stars 744 forks source link

Network Manager applet (network@cinnamon.org) not showing VPN icon when Strongswan VPN activated #10196

Open dhdurgee opened 3 years ago

dhdurgee commented 3 years ago

I had been using an openvpn connection until that VPN expired. It showed a VPN icon in the tray when activated.

I installed the strongswan plugin, created a strongswan connection and find that when activated I still see the WiFi icon in the tray when it is activated.

This is inconsistent and confusing. Without the VPN icon it is not immediately obvious that internet traffic is being routed via the VPN.

I am unsure of the reason for the difference. The openvpn connection created a tun interface while I am told that strongswan uses policy based routing.

dhdurgee commented 3 years ago

In hopes it will help, here is the nmcli output with a wifi connection without the VPN enabled:

wlp5s0: connected to Auto Free WiFi by Karma
    "Broadcom and subsidiaries BCM4313"
    wifi (wl), AC:81:12:A4:5E:43, hw, mtu 1500
    ip4 default
    inet4 192.168.1.114/24
    route4 0.0.0.0/0
    route4 192.168.1.0/24
    route4 169.254.0.0/16
    route4 192.168.1.0/24
    inet6 fe80::562f:7604:6d84:57ca/64
    route6 fe80::/64

enp6s0: disconnected
    "Realtek RTL810xE"
    1 connection available
    ethernet (r8169), B8:70:F4:2C:6B:9F, autoconnect, hw, mtu 1500

lo: unmanaged
    "lo"
    loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
    servers: 192.168.1.1
    interface: wlp5s0

Once I enable the VPN this changes to:

Durgee Enterprises, LLC VPN connection
    master wlp5s0, VPN
    inet4 10.10.10.1/32

wlp5s0: connected to Auto Free WiFi by Karma
    "Broadcom and subsidiaries BCM4313"
    wifi (wl), AC:81:12:A4:5E:43, hw, mtu 1500
    ip4 default
    inet4 192.168.1.114/24
    inet4 10.10.10.1/32
    route4 0.0.0.0/0
    route4 192.168.1.0/24
    route4 169.254.0.0/16
    route4 192.168.1.0/24
    route4 0.0.0.0/0
    inet6 fe80::562f:7604:6d84:57ca/64
    route6 fe80::/64

enp6s0: disconnected
    "Realtek RTL810xE"
    1 connection available
    ethernet (r8169), B8:70:F4:2C:6B:9F, autoconnect, hw, mtu 1500

lo: unmanaged
    "lo"
    loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
    servers: 8.8.8.8 8.8.4.4
    interface: wlp5s0
    type: vpn

    servers: 192.168.1.1
    interface: wlp5s0

Hopefully this is helpful in getting this corrected.

dhdurgee commented 3 years ago

VPN_WiFi_icon vpn-policy.log vpn-state.log

The attached files show that the VPN is active, but that the WiFi icon is still being displayed.

dhdurgee commented 3 years ago

Just updated to mint 20.2 and cinnamon 5.0.5 and can confirm that this problem remains despite the updated timestamp on the applet.js code.