summaryrefslogtreecommitdiff
path: root/package/firewall/files/lib/fw.sh
Commit message (Collapse)AuthorAgeFilesLines
* firewall: do not check for module availability, let iptables fail if a ↵Jo-Philipp Wich2011-10-221-15/+1
| | | | | | feature is not present (#7610) SVN-Revision: 28525
* firewall: - solve scoping issues when multiple values are used, thanks ↵Jo-Philipp Wich2011-07-061-1/+1
| | | | | | 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 SVN-Revision: 27500
* firewall: - allow multiple ports, protocols, macs, icmp types per rule - ↵Jo-Philipp Wich2011-06-301-13/+98
| | | | | | 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 SVN-Revision: 27317
* firewall: ensure that fw_get_subnet4() sets an empty value if no (valid) ↵Jo-Philipp Wich2011-06-161-0/+1
| | | | | | IPv4 addr was found SVN-Revision: 27198
* firewall: allow symbolic names of interfaces and aliases in masq_src and ↵Jo-Philipp Wich2011-06-161-0/+17
| | | | | | masq_dest SVN-Revision: 27196
* fireall: - support negations for src_ip, dest_ip, src_dip options in rules ↵Jo-Philipp Wich2010-09-281-0/+9
| | | | | | and redirects - add NOTRACK target to rule sections, allows to define fine grained notrack rules SVN-Revision: 23141
* firewall: - simplify masquerade rule setup - remove various subshell ↵Jo-Philipp Wich2010-09-111-29/+35
| | | | | | 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 SVN-Revision: 23024
* firewall: - fix possible endless loop when the family option is used for ↵Jo-Philipp Wich2010-09-051-1/+1
| | | | | | forwardings - only generate forwarding rules in SNAT redirect sections if src_dip is specified SVN-Revision: 22938
* firewall: - fix processing of rules with an ip family option - append ↵Jo-Philipp Wich2010-08-311-9/+13
| | | | | | 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) SVN-Revision: 22847
* firewall: change the order of IPv4/IPv6 address detection, fixes mixed ↵Jo-Philipp Wich2010-05-311-1/+1
| | | | | | notation v6 improperly detected as v4 address SVN-Revision: 21642
* firewall: - fix ip6tables rules when icmp_type option is set - add "family" ↵Jo-Philipp Wich2010-05-191-1/+29
| | | | | | option to zones, forwardings, redirects and rules to selectively apply rules to iptables and/or ip6tables SVN-Revision: 21508
* firewall: implement disable_ipv6 uci optionJo-Philipp Wich2010-05-191-4/+4
| | | | SVN-Revision: 21503
* firewall: properly unset position for delete command, fixes rule removal in ↵Jo-Philipp Wich2010-05-051-2/+2
| | | | | | ifdown SVN-Revision: 21378
* firewall: - replace uci firewall with a modular dual stack implementation ↵Jo-Philipp Wich2010-05-011-0/+182
developed by Malte S. Stretz - bump version to 2 SVN-Revision: 21286