aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-04-12 22:38:34 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-04-12 22:38:34 +0000
commit97100e0248e722aed43925177a12f2d3ab7a7753 (patch)
tree5b4549b26ddab96e1a665bdb71050d45603b184b /package/firewall/files
parenta03e00bbcf314d731bf0df5ff1f43122c4968711 (diff)
downloadupstream-97100e0248e722aed43925177a12f2d3ab7a7753.tar.gz
upstream-97100e0248e722aed43925177a12f2d3ab7a7753.tar.bz2
upstream-97100e0248e722aed43925177a12f2d3ab7a7753.zip
firewall: enable /etc/firewall.user by default and install sample firewall.user file
SVN-Revision: 15221
Diffstat (limited to 'package/firewall/files')
-rw-r--r--[-rwxr-xr-x]package/firewall/files/firewall.config8
-rw-r--r--package/firewall/files/firewall.user4
2 files changed, 8 insertions, 4 deletions
diff --git a/package/firewall/files/firewall.config b/package/firewall/files/firewall.config
index 46f7de5d77..464540f990 100755..100644
--- a/package/firewall/files/firewall.config
+++ b/package/firewall/files/firewall.config
@@ -22,6 +22,10 @@ config forwarding
option dest wan
option mtu_fix 1
+# include a file with users custom iptables rules
+config include
+ option path /etc/firewall.user
+
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
@@ -53,10 +57,6 @@ config forwarding
# option dest_port 80
# option proto tcp
-# include a file with users custom iptables rules
-#config include
-# option path /etc/firewall.user
-
### FULL CONFIG SECTIONS
#config rule
diff --git a/package/firewall/files/firewall.user b/package/firewall/files/firewall.user
new file mode 100644
index 0000000000..1ccbd01657
--- /dev/null
+++ b/package/firewall/files/firewall.user
@@ -0,0 +1,4 @@
+# This file is interpreted as shell script.
+# Put your custom iptables rules here, they will
+# be executed with each firewall (re-)start.
+