mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
bb699867e0
* Use network.interface dump call instead of individual status calls to reduce overall netifd lookups and invokes to 1 per fw3 process. * Allow protocol handlers to assign a firewall zone for an interface in the data section to allow for dynamic firewall zone assignment. SVN-Revision: 38504
11 lines
247 B
Bash
11 lines
247 B
Bash
#!/bin/sh
|
|
|
|
[ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit 0
|
|
|
|
/etc/init.d/firewall enabled || exit 0
|
|
|
|
fw3 -q network "$INTERFACE" >/dev/null || exit 0
|
|
|
|
logger -t firewall "Reloading firewall due to ifup of $INTERFACE ($DEVICE)"
|
|
fw3 -q reload
|