[Snort-users] wihtelist one IP?

post urne posturne at ...11827...
Fri Dec 4 00:48:23 EST 2009


Thx for all the answers.

I solve my problem with the bpf filter file.

regards,
tom

2009/12/3 Seth Art <sethsec at ...11827...>:
> "not host 217.x.x.x" will exclude packets where 217.x.x.x is either
> the src or the dst.
>
> run snort like this:
> snort -i ethX -u snort -g snort <more options> -l /varlog/snort not
> host 217.x.x.x
>
>
> If you use /etc/sysconfig/snort, uncomment the #BPF line so that it
> looks something like this:
> BPF="not host 217.x.x.x" and restart snort
>
> -Seth
>
>
> On Thu, Dec 3, 2009 at 9:34 AM, Tommie Giles <tgiles at ...11827...> wrote:
>> pass tcp 217.x.x.x any -> any any ( sid:1000001 ;)
>> pass tcp any any -> 217.x.x.x any ( sid:1000002 ;)
>>
>> probably something like:
>>
>> and not ((src net 217.x.x.0/24 || dst net 217.x.x.0/24))
>>
>>
>> Cheers,
>>
>> tom
>>
>> On Thu, Dec 3, 2009 at 6:16 AM, post urne <posturne at ...11827...> wrote:
>>> Hello,
>>>
>>> I try to whitelist one of our customer IP in my local Snort setup.
>>>
>>> After many "googling" I belive to found a way:
>>>
>>> I created 2 rules in the /etc/snort/rules/local.rules:
>>>
>>> pass tcp 217.x.x.x any -> any any ( sid:1000001 ;)
>>> pass tcp any any -> 217.x.x.x any ( sid:1000002 ;)
>>>
>>>
>>> The local.rules file is in snort.conf included, but I still get tcp
>>> alerts for 217.x.x.x.
>>>
>>> where is my mistake - any ideas?
>>>
>>> regards,
>>> tom
>>>
>>> ------------------------------------------------------------------------------
>>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>>> a free event focused on virtualization and cloud computing.
>>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>>> http://p.sf.net/sfu/redhat-sfdev2dev
>>> _______________________________________________
>>> Snort-users mailing list
>>> Snort-users at 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
>>>
>>
>>
>>
>> --
>> Tommie Giles
>>
>> "If all else fails, immortality can always be assured by spectacular error."
>>
>> ------------------------------------------------------------------------------
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> _______________________________________________
>> Snort-users mailing list
>> Snort-users at 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
>>
>




More information about the Snort-users mailing list