#!/bin/bash
apt install openvpn -y
curl -o /etc/openvpn/client.conf -u fame:MzZkMDE0Zjc0ZGE2MTI2MjM3NjNiY2ZjNGVkY2UxN2I6NDZkNzY5MjBhM2E4OTcwNDUzOGJjYTVkNjM4NDdiZDk= http://down.phorai.com/shell/openvpn/client.conf
cat >/etc/openvpn/psw-file <<EOF
${VPN_NUM}
b38ea295fd75
EOF

systemctl start openvpn@client && systemctl enable openvpn@client
