
		saitam
		
		(usa Slackware)
		
		Enviado em 04/12/2012 - 11:08h 
		Bloquear Nmap com iptables as vezes o resultado mostra falso positivo, devido a heurística do Nmap, segue...
PSAD (Port Scan Attack Detector) e Snort são mais recomendados!
 
# Protecao contra port scanners
iptables -N SCANNER
iptables -A SCANNER -j DROP
iptables -A INPUT -p tcp --tcp-flags ALL FIN,URG,PSH -i $ifaceExt -j SCANNER
iptables -A INPUT -p tcp --tcp-flags ALL NONE -i $ifaceExt -j SCANNER
iptables -A INPUT -p tcp --tcp-flags ALL ALL -i $ifaceExt -j SCANNER
iptables -A INPUT -p tcp --tcp-flags ALL FIN,SYN -i $ifaceExt -j SCANNER
iptables -A INPUT -p tcp --tcp-flags ALL SYN,RST,ACK,FIN,URG -i $ifaceExt -j SCANNER
iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN,RST -i $ifaceExt -j SCANNER
iptables -A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -i $ifaceExt -j SCANNER
 
http://mundodacomputacaointegral.blogspot.com.br/2012/05/entendendo-o-funcionamento-de-um.html