Project

General

Profile

Download (409 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2

    
3
echo $script_type > /tmp/script
4
if [ "$script_type" = "client-connect" ]; then
5
	if [ -f /tmp/$common_name ]; then
6
		/bin/cat /tmp/$common_name > $1
7
		/bin/rm /tmp/$common_name
8
	fi
9
elif [ "$script_type" = "client-disconnect" ]; then
10
	command="/sbin/pfctl -a 'openvpn/$common_name' -F rules"
11
	eval $command
12
	/sbin/pfctl -k $ifconfig_pool_remote_ip
13
	/sbin/pfctl -K $ifconfig_pool_remote_ip
14
fi
15

    
16
exit 0
(6-6/23)