Created
March 6, 2015 17:58
-
-
Save ymek/82ba2b22a9ce7621bec8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by iptables-save v1.4.21 on Fri Mar 6 01:19:41 2015 | |
*filter | |
:INPUT ACCEPT [5321:859636] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [4300:2722225] | |
:LOGDROP - [0:0] | |
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 --name DEFAULT --mask 255.255.255.255 --rsource -j LOGDROP | |
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --mask 255.255.255.255 --rsource | |
-A LOGDROP -j LOG | |
-A LOGDROP -j DROP | |
COMMIT | |
# Completed on Fri Mar 6 01:19:41 2015 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment