summaryrefslogtreecommitdiffstats
path: root/package/firewall/files
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-04-12 22:38:34 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-04-12 22:38:34 +0000
commit4ed715651306ba1d3b73d9fa2197a55a3443c1d2 (patch)
tree6b960c4bf72a3356c7eb8d03c11c6c6f263f3579 /package/firewall/files
parentdda4e674cea767428ad1c9f5a50014bb38877a5d (diff)
[package] firewall: enable /etc/firewall.user by default and install sample firewall.user file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15221 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 46f7de5d7..464540f99 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 000000000..1ccbd0165
--- /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.
+