Iptables - Hashlimit Module: Unterschied zwischen den Versionen
Aus QBWiki
Zur Navigation springenZur Suche springen
Pascal (Diskussion | Beiträge) |
Pascal (Diskussion | Beiträge) |
||
| Zeile 5: | Zeile 5: | ||
iptables -L -nv | iptables -L -nv | ||
| − | + | #INPUT Policy = DROP | |
| − | # INPUT Policy = DROP | + | <syntaxhighlight lang="bash" line="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 | 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 | ||
| − | |||
| − | |||
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j DROP | iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j DROP | ||
| + | </syntaxhighlight> | ||
Version vom 25. Februar 2019, 10:00 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