Public bug reported:

When connecting to an openconnect VPN using network-manager-gnome, non
of the CISCO_SPLIT_INC environment variables are being exported to the
helper program.

To test:

dpkg-divert --add --rename --divert \
  /usr/lib/NetworkManager/nm-openconnect-service-openconnect-helper.real \
  /usr/lib/NetworkManager/nm-openconnect-service-openconnect-helper

cat > /usr/lib/NetworkManager/nm-openconnect-service-openconnect-helper << EOF
#!/bin/bash
env | sort
/usr/lib/NetworkManager/nm-openconnect-service-openconnect-helper.real
EOF

chmod +x /usr/lib/NetworkManager/nm-openconnect-service-openconnect-
helper


These are the environment variables exported to the helper.
---
CISCO_CSTP_OPTIONS=X-CSTP-Version=1
CISCO_DEF_DOMAIN=mydomain.com
CISCO_SPLIT_EXC_0_ADDR=0.0.0.0
CISCO_SPLIT_EXC_0_MASK=255.255.255.255
CISCO_SPLIT_EXC_0_MASKLEN=32
CISCO_SPLIT_EXC=1
GIO_USE_VFS=local
INTERNAL_IP4_ADDRESS=10.96.54.28
INTERNAL_IP4_DNS=10.96.16.111 10.96.16.112
INTERNAL_IP4_MTU=1406
INTERNAL_IP4_NBNS=10.96.16.111 10.96.16.112
INTERNAL_IP4_NETADDR=10.96.52.0
INTERNAL_IP4_NETMASK=255.255.252.0
INTERNAL_IP4_NETMASKLEN=22
INVOCATION_ID=3fa552aed21e47ce97ae3cad58f7b727
JOURNAL_STREAM=9:16123471
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_ADDRESS=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_MONETARY=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
NM_DBUS_SERVICE_OPENCONNECT=org.freedesktop.NetworkManager.openconnect.Connection_20
NM_VPN_LOG_LEVEL=0
NM_VPN_LOG_PREFIX_TOKEN=2042011
NM_VPN_LOG_SYSLOG=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PWD=/
reason=pre-init
SHLVL=1
_=/usr/bin/env
VPNGATEWAY=1.2.3.4
---

And then again with same as above, but with following changes/additions.
---
reason=connect
TUNDEV=vpn0
---

** Affects: network-manager-openconnect (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1870745

Title:
  Routes not being added by nm-openconnect-server-openconnect-helper

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1870745/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to