jow
43ce757037
[backfire] merge r25813
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25814 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-01 18:05:03 +00:00
jow
fe72fdb022
[backfire] merge dual stack firewall
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25353 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-03 22:02:59 +00:00
jow
67a112aafe
[backfire] drop firewall v1
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25352 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-03 22:02:24 +00:00
jow
bdcad9402e
[backfire] backport r25179
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25180 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-27 22:20:31 +00:00
jow
e03b255302
[backfire] backport r23318
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23324 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-08 13:50:30 +00:00
jow
30bbe8bbe5
[backfire] merge r23201
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23202 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-03 18:13:29 +00:00
jow
b6810f6a06
[backfire] firewall: backport r23141, r23142 and r23143
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23144 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-28 11:50:14 +00:00
jow
4383037589
[backfire] backport r23062
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23063 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-14 23:11:49 +00:00
jow
c13a8a8058
[backfire] firewall:
...
- backport SNAT changes from trunk
- always create zone_x_nat chains, like prerouting
- simplify masquerade rule setup
- treat proto option as list, allows specifying multiple protocols for rules and redirects
- add missing cleanup rule for NOTRACK entries
- introduce a helper function to deal with portranges
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23025 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-11 20:47:35 +00:00
jow
b8178fe409
[backfire] firewall: backport SNAT support from trunk
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22939 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-05 20:37:44 +00:00
jow
f359382ede
[backfire] merge r22908
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22909 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-04 17:49:49 +00:00
jow
80f33c889e
[backfire] firewall: backport NAT reflection from trunk
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22907 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-04 17:45:13 +00:00
jow
af55d401d2
[backfire] remove leftover debugging
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22902 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-04 17:21:42 +00:00
jow
82293648a1
[backfire] backport masq_src and masq_dest options from trunk firewall
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22901 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-04 17:20:12 +00:00
jow
1ad551b0a7
[backfire] firewall: allow redirecting only destination port ( #7197 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22228 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-16 06:05:23 +00:00
jow
5e99434568
[backfire] firewall: consider zones referenced by redirects as conntracked ( #7196 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22216 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 22:08:02 +00:00
thepeople
1054800824
allow ping
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20261 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 03:46:41 +00:00
jow
fa8f585a08
[package] firewall: insert rules at the beginning of chains again while maintaining non reversed order, fixes wrong ordering introduced by r18015
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19946 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-02 11:02:24 +00:00
jow
92af8399eb
[package] firewall: fix bad number error in fw_redirect() ( #6704 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19765 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-20 03:39:55 +00:00
thepeople
58a312461e
Add destination ip of the wan adapter useful if you have multiple ip addresses.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19574 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-11 02:33:34 +00:00
jow
8084bc3069
[package] firewall: fix a race condition preventing interfaces from being added to the firewall on boot
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19232 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-19 23:02:11 +00:00
nbd
8b93389dca
firewall: fix fallout from r18716 ( fixes #6338 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18733 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-10 18:18:37 +00:00
nbd
6b2e482b31
firewall: get rid of recursive shell script inclusion to improve hush compatibility
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18716 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-09 14:04:37 +00:00
jow
9cdb777d0c
[package] firewall: initialize dest_port with src_dport if omitted in redirect sections to narrow
...
down corresponding forward rules to the actual target ports - thanks Niels Boehm! (#6249 )
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18617 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-01 22:31:10 +00:00
nbd
adbb0c8af6
firewall: fix zone defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18028 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-11 02:42:22 +00:00
nbd
71394ccb5e
firewall: do not process rules in reverse
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18015 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-10 18:08:26 +00:00
nico
dc1a20a020
[package] firewall: fix MSS issue affection RELATED new connections ( closes : #5173 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17762 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-27 13:57:09 +00:00
nbd
7c52bc2d37
firewall: add sanity checks to zone default rules (patch from #5459 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17713 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-24 21:59:16 +00:00
jow
0228176586
[package] firewall: move the config_get out of the loop, no need to call it multiple times
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17581 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-14 15:18:48 +00:00
jow
f71b9d11f6
[package] firewall: properly dispatch delif events if the network has a different name then the corresponding zone
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17580 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-14 14:47:43 +00:00
nbd
d268e4037b
firewall: emit hotplug events for interface add/remove
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17415 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-26 22:46:24 +00:00
jow
930ebf26f0
[package] firewall: allow incoming udp/68 packets in the default configuration ( #4108 , #4781 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17238 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-13 03:31:53 +00:00
jow
f0250152da
[package] firewall: add icmp_type option to specify the icmp type in rule sections, bump pkg revision ( #5554 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17115 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-03 22:24:48 +00:00
florian
e56f132e78
[package] fix typo in the uci firewall script
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16076 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-26 10:51:01 +00:00
nbd
0d3ad9cfd0
firewall: automatically set up NOTRACK rules to disable connection tracking for zones that have no masquerading, no conntrack and no forwarding from/to other zones with masq/conntrack
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15855 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-14 21:46:38 +00:00
jow
3a5c4c82ff
[package] firewall: process custom rules after forwardings and redirects, this actually allows blocking traffic to certain hosts and other rules
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15278 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-19 20:39:02 +00:00
jow
4ed7156513
[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
2009-04-12 22:38:34 +00:00
nbd
759aaf7754
re-enable the mss fix by default for now - see discussion at http://lists.openwrt.org/pipermail/openwrt-devel/2009-January/003724.html for more information
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14293 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-31 02:14:27 +00:00
nbd
da25c6a4cb
firewall: don't clear the mangle table at startup or stop - it doesn't use it and clearing it breaks qos
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14114 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-20 13:07:30 +00:00
jow
9a3973d64e
firewall: introduce drop_invalid option to allow disabling the invalid state match
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14061 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-16 18:09:19 +00:00
nbd
312627976e
firewall: allow multiple interfaces to be part of one zone, fix the sanity checks for that
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14058 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-16 17:39:03 +00:00
nbd
8db97c0089
firewall: clear the MSSFIX rules
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13826 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-02 21:58:58 +00:00
cyrus
e1ee5624c2
Unify portrange-support in firewall rule generator
...
fixes #4404
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13791 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-01 13:05:16 +00:00
nbd
e8530f33a9
disable the MSS fixup hack by default (most ISPs don't require this as a workaround for MTU problems, only some do). this should give a nice speedup for routing on standard-compliant ISPs
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13788 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-31 19:02:03 +00:00
blogic
e9ded9eef5
fixes firewall for trunk, custom chains were never reched, as policies apply beforehand
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12978 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-14 10:53:55 +00:00
blogic
23ab7d24d7
fixes firewall rule generation. forwarding rules were inserted in input chains, fixes #4028
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12768 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-28 17:40:09 +00:00
blogic
1d1f04a661
custom chains were never reached on DROP/REJECT policy, fixes #4004 #4029
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12767 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-28 17:06:39 +00:00
nbd
740dc63d5f
set default input policy to ACCEPT to bring the firewall behavior closer to the one of previous versions
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12766 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-28 16:17:49 +00:00
nbd
3056e3c10b
firewall: fix default policies, add a check for duplicate defaults sections and make custom chains more generic
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12765 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-28 16:17:37 +00:00
nico
1fa1f8e7d8
firewall changes:
...
- implement a REJECT policy and enable it by default, reject packets with approriate response (closes : #3970 )
- cleanup syn_flood and remove logging
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12688 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-24 15:10:16 +00:00