Skip to content

Command-line script to access global proxy via PKU VPN

License

Notifications You must be signed in to change notification settings

PKUfudawei/pkuvpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

pkuvpn

Command-line script to access global proxy via PKU VPN

Stabler and Simpler by one-line command than GUI

0. OpenConnect Installation (If not installed on your machine)

  • Mac OS: brew install openconnect

  • Linux: sudo apt-get install openconnect

1. Basic configuration

  • Edit pkuvpn.sh: follow the annotations in pkuvpn.sh to replace *** with your own passwords or student ID

2. Run scirpt

  • In this directory: ./pkuvpn.sh

3. Stop proxy

  • Just ctrl c

4. Make it daily (optinal, replace $PATH_OF_REPO with your real path of this repo)

  • Add an extra line alias pkuvpn='$PATH_OF_REPO/pkuvpn.sh' in your ~/.zshrc (for Mac OS) or ~/.bashrc (for Linux)

  • source ~/.zshrc (for Mac OS) or source ~/.bashrc (for Linux)

  • Now everything is finished! Just type one-line command pkuvpn in any directory to access your own PKU proxy

Appendix

Official Introduction to PKU VPN

Clients Installation for PKU VPN

OpenConnect Documentation

About

Command-line script to access global proxy via PKU VPN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages