TW VPN for CN
One command line to connect TW VPN easily on Mac OS.
Installation and Setup (Mac OS supported only)
Clone the project:
git clone https://github.com/Waterstrong/tw-vpn.git
install.shscript and follow the instructions to complete the whole process
Pay attention to the second authentication method index(Secret Num) and your password
Cisco AnyConnect Clientto check the second authentication method num. It's
group: Okta username: email@example.com password: ****** secret: key: ****** num: 4
Usage: vpn [OPTION] Connect to VPN easily. Default OPTION is 'xdc'. Options: help Print usage stop Disconnect and stop VPN restart Stop and start the VPN state Show VPN connection state xdc Connect to Xian DC VPN xian Connect to Xian VPN sify Connect to Sify VPN lon Connect to London VPN syd Connect to Sydney VPN
config.yml file contains the list of VPN server domains code and description. You can add more or change the order. The first appeared is the default one for first time. The script will cache your preference.
domains: - code: xdc desc: Xian DC - code: xian desc: Xian - code: sify desc: Sify - code: lon desc: London - code: syd desc: Sydney
How to Upgrade
If there is any updates to the script, it will be upgraded automatically. The upgrade will use your ssh key to pull the latest changes. If you install the script, it represents that you accept the upgrade agreement by default.
If your password is changed because of the security policy, please update it in
sudo vim <your_dir>/tw-vpn/auth.yml
- OATH Toolkit
- AnyConnect Client(Do NOT tick
Umbrella Roaming Securityand