from https://github.com/chao/vpn