Skip to content

Instantly share code, notes, and snippets.

@ouyen
Last active February 19, 2024 17:15
Show Gist options
  • Save ouyen/08c7895dde30bc602d92f1a0d4f35c8c to your computer and use it in GitHub Desktop.
Save ouyen/08c7895dde30bc602d92f1a0d4f35c8c to your computer and use it in GitHub Desktop.
pkuvpn.sh
echo PASSWORD | openconnect --script-tun --script "ocproxy -D 7900 -g -k 15" --protocol=pulse vpn.pku.edu.cn -u 1900014514 --reconnect-timeout 60 --passwd-on-stdin
@Mickychen00
Copy link

Does this solution work on MacOS? For me, I haven't ever tried to build tools like openconnect by myself before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment