Click to See Complete Forum and Search --> : layer-7 application-layer filtering on HTTP packets?


BigCletus
10-01-2002, 12:45 AM
taken from
http://www.linuxnewbie.org/forum/showthread.php?s=&threadid=66095

how is this done?


For protection, if you are a firewall administrator, you can protect your servers by performing layer-7 application-layer filtering on HTTP packets by blocking all accesses to any URLs containing cmd.exe and root.exe. That blocks nimda on the HTTP level. Note that nimda worm traverses through writeable shared folders over netbios as well. For Codered, filter out all HTTP packets containing default.ida or default.idq in its payload. Other signatures to filter include readme.exe, readme.eml and admin.dll etc. You can add to the list as your know of new signatures.

element-x
10-02-2002, 08:53 AM
In the iptables package there is a patch that allows you to match "cmd.exe".

eg.
iptables -A INPUT -d $YOUR_IP -p TCP --dport 80 -m string --string "cmd.exe" -j REJECT --reject-with tcp-reset

Look for "String match" patch for iptables and you'll find your answer.


This however is not suggested as there other, better solutions to the problem as discussed on the NetFilter mailing lists.

--
Me@Work