summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient-script
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-31 22:04:07 +0000
committerErmal <eri@pfsense.org>2013-01-31 22:04:07 +0000
commit8f563bb423ab8a1c06a191b5fc772a260b042360 (patch)
tree86ca795cdc4d52a599eb3e588bf67168a6fa12b4 /sbin/dhclient-script
parentb686e5d0ceff87525319a900b078fd41faede9b4 (diff)
downloadpfsense-8f563bb423ab8a1c06a191b5fc772a260b042360.zip
pfsense-8f563bb423ab8a1c06a191b5fc772a260b042360.tar.gz
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
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-xsbin/dhclient-script1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index dda92a9..272bb77 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -83,6 +83,7 @@ delete_old_states() {
if [ "${OLD_ROUTER}" != "${new_routers}" ]; then
$LOGGER "Removing states through old gateway '${OLD_ROUTER}' (new gateway '${new_routers}')"
/sbin/pfctl -i $interface -k 0.0.0.0/0 -k ${OLD_ROUTER}/32
+ /sbin/pfctl -i $interface -k ${OLD_ROUTER}/32 -k 0.0.0.0/0
fi
fi
}
OpenPOWER on IntegriCloud