aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/files/old/firewall.config
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2008-08-04 11:51:58 +0000
committerJohn Crispin <blogic@openwrt.org>2008-08-04 11:51:58 +0000
commit275038cae7e3e363c1e0062d0639749178659a8b (patch)
tree366e67ab18afcef24dc1dfd1f5fb39eb7484275f /package/firewall/files/old/firewall.config
parent8ffee3956dc468134bb14f47a7c82f248b9671ff (diff)
downloadupstream-275038cae7e3e363c1e0062d0639749178659a8b.tar.gz
upstream-275038cae7e3e363c1e0062d0639749178659a8b.tar.bz2
upstream-275038cae7e3e363c1e0062d0639749178659a8b.zip
adds a new uci firewall
- iptbales and netfilter packages need to be rewrapped when we switch to this firewall as default - there are some examples in the file /etc/config/firewall - iptables-save/restore are still missing - hotplug takes care of adding/removing netdevs during runtime - misisng features ? wishes ? let me know ... git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12089 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall/files/old/firewall.config')
-rw-r--r--package/firewall/files/old/firewall.config48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/firewall/files/old/firewall.config b/package/firewall/files/old/firewall.config
new file mode 100644
index 0000000000..1b92954c93
--- /dev/null
+++ b/package/firewall/files/old/firewall.config
@@ -0,0 +1,48 @@
+# Copyright (C) 2006 OpenWrt.org
+
+# RULE SYNTAX:
+#
+# forward:<match>:<target>[:<port>]
+# - forwards all packets matched by <match> to <target>,
+# optionally changing the port to <port>
+#
+# accept:<match>
+# - accepts all traffic matched by <match>
+#
+# drop:<match>
+# - drops all traffic matched by <match>
+#
+#
+# MATCHING OPTIONS:
+#
+# src=<ip>
+# - match the source ip <ip>
+#
+# dest=<ip>
+# - match the destination ip <ip>
+#
+# proto=<proto>
+# - match the protocol by name or number
+#
+# sport=<port(s)>
+# - match the source port(s), see below for syntax
+#
+# dport=<port(s)>
+# - match the destination port(s), see below for syntax
+#
+#
+#
+# PORT SYNTAX:
+#
+# You can enter an arbitrary list of ports and port ranges in the following format:
+# - 22,53,993,1000-1024
+#
+# If you don't set the protocol to tcp or udp, it will apply to both
+#
+#
+#
+# EXAMPLES:
+#
+# drop:dport=22 src=1.3.3.7
+# accept:proto=tcp dport=22
+# forward:dport=60168:192.168.1.2:60169