Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Создание правила для входящего соединения
- # -p tcp протокол tcp
- # -m tcp ... ДОПИСАТЬ
- iptables -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m hashlimit --hashlimit 1/hour --hashlimit-burst 2 --hashlimit-mode srcip --hashlimit-name SSH --hashlimit-htable-expire 60000 -j ACCEPT
- iptables -A INPUT -p tcp -m tcp --dport 22 --tcp-flags SYN,RST,ACK SYN -j DROP
- iptables -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
Add Comment
Please, Sign In to add comment