OpenVPN cleanups, found this unused gem with possible side affects while working on https://github.com/opnsense/core/issues/2348

This commit is contained in:
Ad Schellevis 2018-04-22 12:49:56 +02:00
parent 59b811712e
commit 1cde411bb3

View File

@ -1,14 +1,6 @@
#!/bin/sh
echo $script_type > /tmp/script
if [ "$script_type" = "client-connect" ]; then
if [ -f /tmp/$common_name ]; then
/bin/cat /tmp/$common_name > $1
/bin/rm /tmp/$common_name
fi
elif [ "$script_type" = "client-disconnect" ]; then
command="/sbin/pfctl -a 'openvpn/$common_name' -F rules"
eval $command
if [ "$script_type" = "client-disconnect" ]; then
/sbin/pfctl -k $ifconfig_pool_remote_ip
/sbin/pfctl -K $ifconfig_pool_remote_ip
fi