AnyConnect Routes Git Over VPN | Generated by AI

Home 2026.02

Question: Does software like Cisco AnyConnect on macOS force git pull over SSH to go through the VPN/proxy? And if I use Cisco AnyConnect, do I not need to set HTTP/HTTPS proxy in environment variables or System Settings?

Answer:

Yes — in most corporate setups, Cisco AnyConnect forces your git pull over SSH to go through the VPN tunnel.
This happens because AnyConnect typically modifies your macOS routing table to send all (or most) outbound traffic through the corporate VPN — including SSH traffic on TCP port 22 to github.com or other git hosts.

Key points about Cisco AnyConnect behavior on macOS

Most companies use full tunnel for security/compliance reasons (to force all traffic through corporate firewall, proxy, inspection, DLP, etc.). So in practice: yes, your SSH-based git pull will go through the VPN when AnyConnect is connected.

Do you still need to set HTTP_PROXY / HTTPS_PROXY env vars or macOS System Settings proxy?

No — you usually do NOT need them when using AnyConnect (especially in full-tunnel mode).

Bottom line
When Cisco AnyConnect is connected (especially full-tunnel corporate VPN):

If your git pull still fails/slows down:

References:


Back Donate