Remove stunnel daemon

This commit is contained in:
Bob Mottram 2017-09-26 23:44:43 +01:00
parent 063bcca516
commit acd6db9a6c
1 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,10 @@ function restore_remote_vpn {
} }
function remove_vpn { function remove_vpn {
systemctl stop stunnel
systemctl disable stunnel
rm /etc/systemd/system/stunnel.service
systemctl stop openvpn systemctl stop openvpn
if [ $VPN_TLS_PORT -ne 443 ]; then if [ $VPN_TLS_PORT -ne 443 ]; then
firewall_remove VPN-TLS $VPN_TLS_PORT firewall_remove VPN-TLS $VPN_TLS_PORT