firewall: process custom rules after forwardings and redirects, this actually allows blocking traffic to certain hosts and other rules

SVN-Revision: 15278
master
Jo-Philipp Wich 16 years ago
parent f40eaba4df
commit cacb52e19f
  1. 2
      package/firewall/Makefile
  2. 4
      package/firewall/files/uci_firewall.sh

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=firewall PKG_NAME:=firewall
PKG_VERSION:=1 PKG_VERSION:=1
PKG_RELEASE:=2 PKG_RELEASE:=3
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk

@ -401,12 +401,12 @@ fw_init() {
config_foreach fw_defaults defaults config_foreach fw_defaults defaults
echo "Loading zones" echo "Loading zones"
config_foreach fw_zone zone config_foreach fw_zone zone
echo "Loading rules"
config_foreach fw_rule rule
echo "Loading forwarding" echo "Loading forwarding"
config_foreach fw_forwarding forwarding config_foreach fw_forwarding forwarding
echo "Loading redirects" echo "Loading redirects"
config_foreach fw_redirect redirect config_foreach fw_redirect redirect
echo "Loading rules"
config_foreach fw_rule rule
echo "Loading includes" echo "Loading includes"
config_foreach fw_include include config_foreach fw_include include
uci_set_state firewall core loaded 1 uci_set_state firewall core loaded 1

Loading…
Cancel
Save