When using Cisco Ipsec on Mac, the connection will disconnect every half an hour or so to ask you to type the password again. To avoid this:
1. Connect to Cisco Ipsec VPN.
2. Go to Terminal.
3. Paste each line of the following commands and press Enter.
curl -O http://s.cn.gfw.io/sc/fix_auto_disconnect.sh
chmod +x fix_auto_disconnect.sh
./fix_auto_disconnect.sh fix