Project

General

Profile

« Previous | Next » 

Revision 8f563bb4

Added by Ermal LUÇI over 12 years ago

Use the better -Fs modifies to pf to kill the states by interface. Also kill both sides on an interface when -k needs to be used

View differences:

usr/local/sbin/ovpn-linkdown
1 1
#!/bin/sh
2
/sbin/pfctl -i $1 -k 0.0.0.0/0
2
/sbin/pfctl -i $1 -Fs
3 3
# delete the node just in case mpd cannot do that
4 4
/bin/rm -f /var/etc/nameserver_$1
5 5
/bin/rm -f /tmp/$1_router

Also available in: Unified diff