Project

General

Profile

Download (416 Bytes) Statistics
| Branch: | Tag: | Revision:
1 8d964cea Ermal
#!/bin/sh
2
3
# let the configuration system know that the ip has changed.
4 04c528e7 Ermal
#/usr/local/sbin/pfSctl -c "interface newip $interface"
5 40fd50c8 Ermal
6
7
ifindex="${1##?????}"
8 152f5759 jim-p
if [ -e /dev/tun$ifindex ]; then
9 40fd50c8 Ermal
	if [ "" != "$route_vpn_gateway" ]; then
10
		/bin/echo $route_vpn_gateway > /tmp/$1_router
11
	else
12
		/bin/echo $5 > /tmp/$1_router
13
	fi
14 7f2c8034 Ermal
fi
15 40fd50c8 Ermal
16 8d964cea Ermal
/usr/bin/touch /tmp/$1up
17
# reload filter 
18 55c51af7 Ermal
/usr/local/sbin/pfSctl -c "interface newip $1"
19 8d964cea Ermal
exit 0