Friday, April 24, 2009

How to Determine RPM Architecture?

rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' rpm name

How to Block an IP using IPTABLES?

As a root, 

iptables -I INPUT -s 196.3.164.40 -j DROP

How to verify?

iptables -L