Welcome To suyashjain.blogspot.com

For Latest and more contents visit http://www.i3w.in

Friday, July 18, 2008

String Match using IPTables


To block the yahoo, simply add the following iptable rule.

iptables -A INPUT -j DROP -m string --string 'yahoo' --algo bm


Note: The rule is tested on Centos5  running kernel 2.6.18-53.1.21.el5 .

No comments: