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