Project

General

Profile

« Previous | Next » 

Revision 639223f3

Added by Ermal LUÇI about 14 years ago

Put a netmask of /32 to all parameters of -k/-K/-b of pfctl to avoid any issues.

View differences:

usr/local/sbin/ppp-linkdown
6 6
if [ -f "/tmp/${interface}_defaultgw" ]; then
7 7
	route delete default $4
8 8
fi
9
/sbin/pfctl -k 0.0.0.0/0 -k $3
10
/sbin/pfctl -k $3
11
pfctl -K $3
12
/sbin/pfctl -b 0.0.0.0/32 -b $4
9
/sbin/pfctl -k 0.0.0.0/0 -k $3/32
10
/sbin/pfctl -k $3/32
11
pfctl -K $3/32
12
/sbin/pfctl -b 0.0.0.0/32 -b $4/32
13 13
# delete the node just in case mpd cannot do that
14 14
/usr/sbin/ngctl shutdown $1:
15 15
if [ -f "/var/etc/nameserver_$1" ]; then

Also available in: Unified diff