aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* [package] firewall: revert processing order of redirects and rules, ensures ↵Jo-Philipp Wich2012-03-181-1/+1
| | | | | | that rules can be used to filter before redirects are reached git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31014 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: fix fw__uci_state_del() procedure (#11132)Jo-Philipp Wich2012-03-131-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30938 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: allow ICMPv6 type 129 (echo reply) - this fixes basic ↵Jo-Philipp Wich2012-02-251-1/+1
| | | | | | ICMPv6 in case no connection tracking is used git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30727 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: bail out if uci is used in firewall include filesJo-Philipp Wich2012-02-231-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30694 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iptables: make it possible to dynamically configure built-in statically ↵Felix Fietkau2012-02-221-1/+1
| | | | | | linked extensions, fold -mod-conntrack and -mod-nat into the default package. saves about 8k on an ar71xx default squashfs git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30676 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: don't filter IPv4 ICMP types (#10928)Jo-Philipp Wich2012-02-071-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30363 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: add support for "local" port forwards which target an ↵Jo-Philipp Wich2012-01-081-2/+2
| | | | | | internal address on the router itself git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29687 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall:Jo-Philipp Wich2011-12-201-1/+1
| | | | | | | | | - introduce per-section "option enabled" which defaults to "1" - useful to disable rules or zones without having to delete them - annotate default traffic rules with names - bump version git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29577 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: add DHCPv6 default rule (#10381)Jo-Philipp Wich2011-11-091-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28874 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: relocate TCPMSS rules into mangle table, add code to ↵Jo-Philipp Wich2011-10-291-1/+1
| | | | | | selectively clear them out again git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28669 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: do not produce 0.0.0.0/0 if a symbolic masq_src or ↵Jo-Philipp Wich2011-10-271-1/+1
| | | | | | masq_dest is given but does not resolve to an ip git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28628 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: prevent ip6tables -t nat rules (#10265)Jo-Philipp Wich2011-10-231-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28535 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: fix another instance of unquoted "*"Jo-Philipp Wich2011-10-221-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28529 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: fix possible expansion of "*" when rules with "option ↵Jo-Philipp Wich2011-10-221-1/+1
| | | | | | src *" are processed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28527 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: do not check for module availability, let iptables fail ↵Jo-Philipp Wich2011-10-221-1/+1
| | | | | | if a feature is not present (#7610) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28525 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: make ESTABLISHED,RELATED rules match before INVALID, use ↵Jo-Philipp Wich2011-09-011-1/+1
| | | | | | conntrack instead of state match (#10038) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28148 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: further tune ICMPv6 default rules according to RFC4890 ↵Jo-Philipp Wich2011-08-141-1/+1
| | | | | | (#9893) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27979 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: prevent redundant rules if multiple ports and multiple ↵Jo-Philipp Wich2011-07-261-1/+1
| | | | | | icmp types are given in a rule block for both icmp and other protocols git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27792 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: fix serious bug in state var handling (#9746)Jo-Philipp Wich2011-07-201-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27711 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: rework state variable handling, use uci_toggle_state() ↵Jo-Philipp Wich2011-07-151-1/+1
| | | | | | where applicable and properly handle duplicates in add and del state helpers (#9152, #9710) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27618 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: make sure that -m mac is used with --mac-source, follow ↵Jo-Philipp Wich2011-07-071-1/+1
| | | | | | up to r27508 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27519 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall:Jo-Philipp Wich2011-07-061-1/+1
| | | | | | | | | | - solve scoping issues when multiple values are used, thanks Daniel Dickinson - ignore src_port/dest_port for proto icmp rules, ignore icmp_type for non-icmp rules - properly handle icmp when proto is given in numerical form (1, 58) - support negated icmp types git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27500 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: properly handle negated ports in nat reflectionJo-Philipp Wich2011-07-011-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27334 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall:Jo-Philipp Wich2011-06-301-1/+1
| | | | | | | | | | | | | - allow multiple ports, protocols, macs, icmp types per rule - implement "limit" and "limit_burst" options for rules - implement "extra" option to rules and redirects for passing arbritary flags to iptables - implement negations for "src_port", "dest_port", "src_dport", "src_mac", "proto" and "icmp_type" options - allow wildcard (*) "src" and "dest" options in rules to allow specifying "any" source or destination - validate symbolic icmp-type names against the selected iptables binary - properly handle forwarded ICMPv6 traffic in the default configuration git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27317 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: allow symbolic names of interfaces and aliases in ↵Jo-Philipp Wich2011-06-161-1/+1
| | | | | | masq_src and masq_dest git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27196 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: prevent excessive uci state data aggregation (#9152)Jo-Philipp Wich2011-04-201-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26740 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: prevent duplicate values in interface state varsJo-Philipp Wich2011-03-301-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26382 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Keep firewall.user during sysupgradesTravis Kemen2011-03-201-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26241 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: move include sourcing into a subshell, this makes the ↵Jo-Philipp Wich2011-03-021-1/+1
| | | | | | firewall init immune against exit in the include scripts git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25835 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: fix rule generation for v4 or v6 only zones (#8955)Jo-Philipp Wich2011-03-011-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25813 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: fix wrong rule order if multiple protocols are usedJo-Philipp Wich2011-01-271-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25179 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: insert SNAT and DNAT rules according to the order of the ↵Jo-Philipp Wich2010-10-081-1/+1
| | | | | | configuration file (#8052) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23318 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: mark /etc/firewall.user as conffileJo-Philipp Wich2010-10-051-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23231 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: also establish forward rules when setting up nat ↵Jo-Philipp Wich2010-10-031-1/+1
| | | | | | reflection, back out early if reflection is disabled git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23201 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] add maintainer informationJo-Philipp Wich2010-09-301-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23159 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] fireall:Jo-Philipp Wich2010-09-281-1/+1
| | | | | | | | - support negations for src_ip, dest_ip, src_dip options in rules and redirects - add NOTRACK target to rule sections, allows to define fine grained notrack rules git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23141 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: protect iptables invocations with locks in interface ↵Jo-Philipp Wich2010-09-191-1/+1
| | | | | | ops, it might run concurrently due to hotplug invocations on network restart git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23090 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: make invalid redirects and duplicate zones non-fatal, ↵Jo-Philipp Wich2010-09-161-1/+1
| | | | | | print a notice and discard them git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23080 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: run ifdown hotplug events synchronized, fixes a ↵Jo-Philipp Wich2010-09-151-1/+1
| | | | | | racecondition on "ifup iface" when ifdown and ifup events are delivered with a small dealy git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23064 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: deliver remove hotplug events for all active ↵Jo-Philipp Wich2010-09-141-1/+1
| | | | | | zones/networks when restarting the firewall git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23062 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall:Jo-Philipp Wich2010-09-111-1/+1
| | | | | | | | | | - simplify masquerade rule setup - remove various subshell invocations - speedup fw() by not relying on xargs and pipes - rework SNAT support - attach to dest zone, use src_dip/src_dport as snat source git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23024 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: introduce SNAT support for redirect sectionsJo-Philipp Wich2010-09-051-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22937 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: clean up description (#7875)Jo-Philipp Wich2010-09-041-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22905 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall:Jo-Philipp Wich2010-09-041-2/+3
| | | | | | | | - handle NAT reflection in firewall hotplug, solves synchronizing issues on boot - introduce masq_src and masq_dest options to limit zone masq to specific ip ranges, supports multiple subnets and negation git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22888 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall:Jo-Philipp Wich2010-08-311-1/+1
| | | | | | | | | - fix processing of rules with an ip family option - append interface rules at the end of internal zone chains, simplifies injecting user or addon rules - support simple file logging (option log + option log_limit per zone) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22847 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: add basic NAT reflection/NAT loopback supportJo-Philipp Wich2010-07-311-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22441 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: allow redirecting only destination port (#7197)Jo-Philipp Wich2010-07-161-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22227 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall:Jo-Philipp Wich2010-07-151-1/+1
| | | | | | | | - notrack support was broken in multiple ways, fix it - also consider a zone conntracked if any redirect references it (#7196) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22215 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: Initial alias interface support. This allows to define ↵Jo-Philipp Wich2010-06-011-1/+1
| | | | | | zones covering alias interfaces and associated entries like rules and forwardings. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21653 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] firewall: fix support for netranges in redirect and rule sectionsJo-Philipp Wich2010-05-301-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21640 3c298f89-4303-0410-b956-a3cf2f4a3e73