2019-01-05 17:18:39 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
build/vpnserver start
|
|
|
|
|
|
|
|
build/vpncmd 127.0.0.1:443 /SERVER /HUB:DEFAULT /CMD:SecureNatEnable
|
2020-05-20 04:51:32 +03:00
|
|
|
build/vpncmd 127.0.0.1:443 /SERVER /CMD:"OpenVpnEnable yes"
|
|
|
|
build/vpncmd 127.0.0.1:443 /SERVER /CMD:"PortsUDPSet 1194"
|
2019-01-05 17:18:39 +03:00
|
|
|
build/vpncmd 127.0.0.1:443 /SERVER /HUB:DEFAULT /CMD:"UserCreate test /GROUP:none /REALNAME:none /NOTE:none"
|
|
|
|
build/vpncmd 127.0.0.1:443 /SERVER /HUB:DEFAULT /CMD:"UserPasswordSet test /PASSWORD:test"
|
|
|
|
build/vpncmd 127.0.0.1:443 /SERVER /CMD:"OpenVpnMakeConfig ~/my_openvpn_config.zip"
|
|
|
|
|
|
|
|
unzip -d /tmp ~/my_openvpn_config.zip
|