sanewall-protection
add extra protections to a definition
- Provided by: sanewall-doc (Version: 1.0.2+ds-2)
- Source: sanewall
- Report a bug
add extra protections to a definition
protection [reverse] flood-protection-type [requests/period [burst]]
protection [reverse] strong [requests/period [burst]]
protection [reverse] {bad-packets | packet-protection-type }
The protection subcommand sets protection rules on an interface or router.
Flood protections honour the options requests/period and burst. They are used to limit the rate of certain types of traffic.
The default rate Sanewall uses is 100 operations per second with a burst of 50. Run iptables -m limit --help for more information.
The protection type strong will switch on all protections (both packet and flood protections) except all-floods. It has aliases full and all.
The protection type bad-packets will switch on all packet protections but not flood protections.
You can specify multiple protection types by using multiple protection commands or in a single command by enclosing the types in quotes.
On a router, protections are normally set up on inface.
The reverse option will set up the protections on outface. You must use it as the first keyword.
invalid
See also SANEWALL_DROP_INVALID in control variables: sanewall-variables(5) which allows setting this function globally.
fragments
This rule will probably never match anything since iptables(8) reconstructs all packets automatically before the firewall rules are processed whenever connection tracking is running.
new-tcp-w/o-syn
malformed-xmas
malformed-null
malformed-bad
icmp-floods [requests/period [burst]]
syn-floods [requests/period [burst]]
Be careful to not set the rate too low as the rule is applied to all connections regardless of their final result (rejected, dropped, established, etc).
all-floods [requests/period [burst]]
Be careful to not set the rate too low as the rule is applied to all connections regardless of their final result (rejected, dropped, established, etc).
protection strong protection "invalid new-tcp-w/o-syn" protection syn-floods 90/sec 40
When using multiple types in a single command, if the quotes are forgotten, incorrect rules will be generated without warning.
When using multiple types in a single command, Sanewall will silently ignore any types that come after a group type (bad-packets, strong and its aliases). Only use group types on their own line.
Sanewall Team
Copyright © 2012, 2013 Phil Whineray <phil@sanewall.org>