2013-02-18 03:26:52 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-10-23 18:25:26 +08:00
|
|
|
[ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit 0
|
2014-01-20 01:35:33 +08:00
|
|
|
[ "$ACTION" = ifupdate -a -z "$IFUPDATE_ADDRESSES" -a -z "$IFUPDATE_DATA" ] && exit 0
|
2013-02-18 03:26:52 +08:00
|
|
|
|
2013-03-13 23:46:30 +08:00
|
|
|
/etc/init.d/firewall enabled || exit 0
|
|
|
|
|
2013-02-18 03:26:52 +08:00
|
|
|
fw3 -q network "$INTERFACE" >/dev/null || exit 0
|
|
|
|
|
2014-01-16 02:29:59 +08:00
|
|
|
logger -t firewall "Reloading firewall due to $ACTION of $INTERFACE ($DEVICE)"
|
2013-02-22 20:45:38 +08:00
|
|
|
fw3 -q reload
|