SINT - iptables usage notes (my edition)

My notes about iptables usage. This article will grow in time.


DROP incommig connections to TCP port 80 and insert it as rule 6 to INPUT table
 
iptables -I INPUT 6 -p tcp -m tcp --dport 80 -j DROP
 
DROP rule 6 from INPUT table
 
iptables -D 6
 
DROP outgoing TCP connections with given flags to destination port 1521 if there are more than 5 connections
 
iptables -A INPUT -p tcp -m tcp --dport 1521 --tcp-flags FIN,SYN,RST,ACK SYN -m connlimit --connlimit-above 5 --connlimit-mask 0 -j DROP
 

author: niekto@niekde.sk (Jaroslav Petráš)

date: Wed, 16 Jul 2014 20:03:00 +0000

link: CyberAsylum.eu/sint-iptables-usage-notes