Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Snort-Users
[Top] [All Lists]

[Snort-users] drop a packet from a preprocessor

Subject: [Snort-users] drop a packet from a preprocessor
Date: Fri, 28 Apr 2006 18:49:51 -0400
If I wanted to write a preprocessor to do nothing but drop a packet of type ICMP, is the following code correct?

if ( p->iph->ip_proto == 1 ) {
   InlineDrop();
}

Is this correct? I'm running snort in Inline-mode, but this InlineDrop() command doesn't seem to kill the packet. Ideally I want to send a "reject" command back to iptables, but "drop" would also be sufficient.

Note, I have all the regular preprocessor boilerplate code, all I need to figure out is this one bit

Thanks,
--D


------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Snort-users mailing list Snort-users@lists.sourceforge.net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Snort-users] drop a packet from a preprocessor, David Cann <=