Skip to content

Instantly share code, notes, and snippets.

@mdeous
Created May 30, 2013 13:11
Show Gist options
  • Save mdeous/5677703 to your computer and use it in GitHub Desktop.
Save mdeous/5677703 to your computer and use it in GitHub Desktop.
-N PORTSCAN
-A PORTSCAN -p tcp --tcp-flags ALL FIN,URG,PSH -j DROP
-A PORTSCAN -p tcp --tcp-flags ALL ALL -j DROP
-A PORTSCAN -p tcp --tcp-flags ALL SYN,RST,ACK,FIN,URG -j DROP
-A PORTSCAN -p tcp --tcp-flags SYN,RST SYN,RST -j DROP
-A PORTSCAN -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment