2013-02-18 03:26:52 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
[ "$ACTION" = ifup ] || exit 0
|
|
|
|
|
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
|
|
|
|
|
2013-02-22 20:45:38 +08:00
|
|
|
logger -t firewall "Reloading firewall due to ifup of $INTERFACE ($DEVICE)"
|
|
|
|
fw3 -q reload
|