mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
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:
parent
59b811712e
commit
1cde411bb3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user