07-26-2017 05:09 AM - edited 02-21-2020 09:22 PM
Hello.
I would like to connect VPN using Cisco Anyconnect on Mac which is behind proxy.
My situation is similar to this one (asked 5 years ago): https://supportforums.cisco.com/discussion/11615141/anyconnect-vpn-and-proxy
except of i use Mac.
On Windows Cisco AnyConnect uses Internet Explorer proxy settings. But looks like on Mac it does not use settings from: System preferences -> Network -> Advanced -> Proxies.
When i type VPN hostname and press "Connect" button I instantly get this error: "The vpn connection failed due to unsuccessful domain name resolution.".
The question is: Can i somehow tell anyconnect client to use proxy? Since it does not use system proxy settings maybe there is any workaround (configration files or command line options) to provide proxy configuration?
Solved! Go to Solution.
07-26-2017 05:38 AM
You can do this using anyconnect profile editor. You can select native to force anyconnect client to use browser proxy.
Quoted:
Proxy Settings—Specifies a policy in the AnyConnect profile to control client access to a proxy server. Use this when a proxy configuration prevents the user from establishing a tunnel from outside the corporate network. You can configure the following proxy settings in the group policy after the tunnel is established.
Native—Causes the client to use both proxy settings previously configured by AnyConnect, and the proxy settings configured in the browser. The proxy settings configured in the global user preferences are pre-pended to the browser proxy settings.
IgnoreProxy—Ignores the browser proxy settings on the user's computer. Does not affect proxies that can reach the ASA.
Override—Manually configures the address of the Public Proxy Server. Public proxy is the only type of proxy supported for Linux. Windows also supports public proxy. You can configure the public proxy address to be User Controllable.
07-26-2017 05:38 AM
You can do this using anyconnect profile editor. You can select native to force anyconnect client to use browser proxy.
Quoted:
Proxy Settings—Specifies a policy in the AnyConnect profile to control client access to a proxy server. Use this when a proxy configuration prevents the user from establishing a tunnel from outside the corporate network. You can configure the following proxy settings in the group policy after the tunnel is established.
Native—Causes the client to use both proxy settings previously configured by AnyConnect, and the proxy settings configured in the browser. The proxy settings configured in the global user preferences are pre-pended to the browser proxy settings.
IgnoreProxy—Ignores the browser proxy settings on the user's computer. Does not affect proxies that can reach the ASA.
Override—Manually configures the address of the Public Proxy Server. Public proxy is the only type of proxy supported for Linux. Windows also supports public proxy. You can configure the public proxy address to be User Controllable.
07-26-2017 08:17 AM
Thank you. It worked. I created /opt/cisco/anyconnect/profile/MyProfile.xml with Anyconnect profile editor tool and managed to connect using proxy.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide