Skip to content
Snippets Groups Projects
Commit 0f5cbca0 authored by John Crispin's avatar John Crispin
Browse files

uci firewall - remove implicit creation of zones, based on network interfaces

SVN-Revision: 12281
parent 5745e536
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,7 @@ load_zones() {
config_foreach load_zones zone
IFACE=$(find_config $INTERFACE)
[ -n "$IFACE" ] &&
list_contains ZONE $IFACE || ZONE="$ZONE $IFACE"
[ -z "$ZONE" ] && exit 0
[ ifup = "$ACTION" ] && {
for z in $ZONE; do
......
......@@ -91,10 +91,6 @@ load_synflood() {
$IPTABLES -A INPUT -p tcp --syn -j SYN_FLOOD
}
create_network_zone() {
create_zone "$1" "$1"
}
fw_defaults() {
load_policy $1
DEF_INPUT=$input
......@@ -261,8 +257,6 @@ fw_init() {
config_foreach fw_defaults defaults
echo "Loading zones"
config_foreach fw_zone zone
echo "Loading interfaces"
config_foreach create_network_zone interface
echo "Loading rules"
config_foreach fw_rule rule
echo "Loading forwarding"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment