From 21bbdc24c397671e68606e846837f28df89a5a23 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 4 Aug 2008 11:51:58 +0000 Subject: 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 ... SVN-Revision: 12089 --- package/firewall/files/old/firewall.config | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 package/firewall/files/old/firewall.config (limited to 'package/firewall/files/old/firewall.config') diff --git a/package/firewall/files/old/firewall.config b/package/firewall/files/old/firewall.config new file mode 100644 index 0000000..1b92954 --- /dev/null +++ b/package/firewall/files/old/firewall.config @@ -0,0 +1,48 @@ +# Copyright (C) 2006 OpenWrt.org + +# RULE SYNTAX: +# +# forward::[:] +# - forwards all packets matched by to , +# optionally changing the port to +# +# accept: +# - accepts all traffic matched by +# +# drop: +# - drops all traffic matched by +# +# +# MATCHING OPTIONS: +# +# src= +# - match the source ip +# +# dest= +# - match the destination ip +# +# proto= +# - match the protocol by name or number +# +# sport= +# - match the source port(s), see below for syntax +# +# dport= +# - 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 -- cgit v1.1