sudo tee -a /etc/apt/sources.list.d/pritunl.list << EOF
deb https://mirrors.shuosc.cn/pritunl/stable/apt xenial main
EOF
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
sudo tee -a /etc/apt/sources.list.d/mongodb.list << EOF
deb https://mirrors.shuosc.cn/mongodb/apt/ubuntu xenial/mongodb-org/3.4 multiverse
EOF
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
sudo apt update
echo y |sudo apt install pritunl mongodb-org
sudo systemctl start pritunl mongod
sudo systemctl enable pritunl mongod
# 生成安装秘钥
sudo pritunl setup-key
# Ubuntu安装客户端
sudo apt-get install pritunl-client-gtk