Blog Archive

Thursday, 17 February 2005

iptables logging

#Log iptables traffic on a specific port (25, in this case):
iptables -A INPUT -p tcp --dport 25 -j LOG --log-prefix "SMTPTRAFFIC:"