Starting vpn daemon
This commit is contained in:
parent
6cd292e51a
commit
00d1e643c6
@ -121,6 +121,7 @@ function restore_remote_vpn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function remove_vpn {
|
function remove_vpn {
|
||||||
|
systemctl stop openvpn
|
||||||
apt-get -yq remove --purge fastd openvpn easy-rsa
|
apt-get -yq remove --purge fastd openvpn easy-rsa
|
||||||
if [ -d /etc/openvpn ]; then
|
if [ -d /etc/openvpn ]; then
|
||||||
rm -rf /etc/openvpn
|
rm -rf /etc/openvpn
|
||||||
@ -297,7 +298,7 @@ y
|
|||||||
create_user_vpn_key $MY_USERNAME
|
create_user_vpn_key $MY_USERNAME
|
||||||
|
|
||||||
firewall_enable_vpn
|
firewall_enable_vpn
|
||||||
systemctl openvpn start
|
systemctl start openvpn
|
||||||
|
|
||||||
APP_INSTALLED=1
|
APP_INSTALLED=1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user