Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to block text strings with IP tables?

Status
Not open for further replies.

john99999

Instructor
Apr 29, 2005
73
US
If I want to block all tcp packets which contain the string "hotmail.com" can I do that with IP tables?

Will something like this work?
iptables -I INPUT -j DROP -p tcp -m string --string "hotmail.com" -i eth0 -j
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top