firewall: emit hotplug events for interface add/remove
SVN-Revision: 17415
This commit is contained in:
parent
01cbda1a3a
commit
590fdc946a
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,7 @@ addif() {
|
||||||
$IPTABLES -t raw -I PREROUTING 1 -i "$ifname" -j zone_${zone}_notrack
|
$IPTABLES -t raw -I PREROUTING 1 -i "$ifname" -j zone_${zone}_notrack
|
||||||
uci_set_state firewall core "${network}_ifname" "$ifname"
|
uci_set_state firewall core "${network}_ifname" "$ifname"
|
||||||
uci_set_state firewall core "${network}_zone" "$zone"
|
uci_set_state firewall core "${network}_zone" "$zone"
|
||||||
|
ACTION=add ZONE="$zone" INTERFACE="$network" DEVICE="$ifname" /sbin/hotplug-call firewall
|
||||||
}
|
}
|
||||||
|
|
||||||
delif() {
|
delif() {
|
||||||
|
@ -117,6 +118,7 @@ delif() {
|
||||||
$IPTABLES -D forward -i "$ifname" -j zone_${zone}_forward
|
$IPTABLES -D forward -i "$ifname" -j zone_${zone}_forward
|
||||||
uci_revert_state firewall core "${network}_ifname"
|
uci_revert_state firewall core "${network}_ifname"
|
||||||
uci_revert_state firewall core "${network}_zone"
|
uci_revert_state firewall core "${network}_zone"
|
||||||
|
ACTION=remove ZONE="$zone" INTERFACE="$network" DEVICE="$ifname" /sbin/hotplug-call firewall
|
||||||
}
|
}
|
||||||
|
|
||||||
load_synflood() {
|
load_synflood() {
|
||||||
|
|
Loading…
Reference in a new issue