Iptables - Hashlimit Module: Unterschied zwischen den Versionen

Aus QBWiki
Zur Navigation springenZur Suche springen
Zeile 12: Zeile 12:
 
.mw-highlight > pre > .lineno {
 
.mw-highlight > pre > .lineno {
 
   margin-left: -30px;
 
   margin-left: -30px;
 +
  color: #666;
 
}
 
}
 
}}
 
}}

Version vom 25. Februar 2019, 10:11 Uhr



iptables -L -nv

  1. 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