Sample Header Ad - 728x90

VPN parameter useragent and NetworkManager

0 votes
1 answer
968 views
After some changes on server or in local packages now during trial to connect vpn server I receive 404 error response. Preiously I was using configuration for NetworkManager under Gnome with success for 2 years. I already found a solution when debug connection with command line openconnect client. It requires adding parameter *--useragent=AnyConnect* and connection is working fine Now it's time to update NetworkManager. I didnt't found any field in gui to enter this parameter or add custom parameters to pass to openconnect. I've found that config reflecting graphic form is located in: */etc/NetworkManager/system-connections/VPN 1.nmconnection* I'v added '*useragent=AnyConnect*' line to [vpn] and even after restart of system (to reload configs) vpn connection window reports 404 still How I should pass this parameter? Here is [vpn] section from my config: [vpn] authtype=cert autoconnect-flags=0 cacert=/etc/pki/tls/certs/Company_Root_CA.crt certsigs-flags=0 cookie-flags=2 enable_csd_trojan=no gateway=vpn.net.company.com/EE-Linux gateway-flags=2 gwcert-flags=2 lasthost-flags=0 pem_passphrase_fsid=no prevent_invalid_cert=no protocol=anyconnect resolve-flags=2 stoken_source=manual useragent=AnyConnect usercert=/home/user/keys/user.crt userkey=/home/user/keys/user.key xmlconfig-flags=0 service-type=org.freedesktop.NetworkManager.openconnect
Asked by Adam Mierzwiak (101 rep)
Jul 2, 2024, 05:14 AM
Last activity: Sep 19, 2024, 09:33 AM