Getting a problem with filtering packets with snort_inline

This is a discussion on Getting a problem with filtering packets with snort_inline within the Snort forums, part of the System Security and Security Related category; Hi Everybody, I am having a problem to use snort_inline as a filter. I have added iptables rules as follow ...


Go Back   Usenet Forums > System Security and Security Related > Snort

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-21-2004
Yogdutt Sonivadia
 
Posts: n/a
Default Getting a problem with filtering packets with snort_inline

Hi Everybody,

I am having a problem to use snort_inline as a filter.

I have added iptables rules as follow for incoming web traffic.

iptables -t mangle -A INPUT -p tcp --syn --sport 80 -m state --state
NEW -j MARK --set-mark 1
iptables -t mangle -A INPUT -p tcp --sport 80 -m state --state NEW -j
MARK --set-mark 2

iptables -I INPUT -m mark --mark 1 -j QUEUE
iptables -I INPUT -m mark --mark 2 -j QUEUE

and I have added a simple snort_inline rule for changin the pattern
"google" with "abcdef" pattern.

alert tcp any 80 -> $HOME_NET any (msg:"GIF file removed";
content:"google"; nocase; replace:"abcdef";)

But after starting snort_inline with QUEUE mode I am getting confused
I found that when I want to visit "www.google.com" it's going to
resolve "www.abcdef.com"

Here I have added this rule for replace the incoming payload's pattern
but it doing reverse.

Please tell me where am I wrong?
--
Yogdutt Sonivadia
Apropos Infotech Pvt. Ltd.
Bangalore
INDIA

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0