Iptables - Hashlimit Module: Unterschied zwischen den Versionen
Aus QBWiki
Zur Navigation springenZur Suche springen
Pascal (Diskussion | Beiträge) |
Pascal (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
| + | {{#css: | ||
| + | .mw-highlight { | ||
| + | padding-left: 25px; | ||
| + | border-left: 5px solid #F50; | ||
| + | } | ||
| + | .mw-highlight > pre { | ||
| + | border-left: 1px dotted #999; | ||
| + | border-top: none; | ||
| + | line-height: 1.88em; | ||
| + | } | ||
| + | .mw-highlight > pre > .lineno { | ||
| + | margin-left: -30px; | ||
| + | } | ||
| + | }} | ||
Version vom 25. Februar 2019, 10:11 Uhr
iptables -L -nv
- INPUT Policy = DROP
1 iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -m hashlimit --hashlimit-name SSH_LIMIT1 --hashlimit-mode srcip --hashlimit-srcmask 32 --hashlimit-above 5/minute --hashlimit-burst 2 --hashlimit-htable-expire 30000 -j ACCEPT
2 iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j DROP