LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2010, 08:16 AM   #1
hogdogity
LQ Newbie
 
Registered: May 2010
Posts: 5

Rep: Reputation: 0
Odd bug with BPF filters on FC/Dell hardware?


Strange behavior. I have a FC12 OS installed on a Dell PE1850. I am setting up a snort/tcpdump sniffer interface on eth1. This is typically a very simple process - but I ran into something really funky.

When I a generic tcpdump or snort dump on eth1, I see all the traffic I expect to see. I see dst 80, dst 443, dst 445 etc. However, as soon as I specify any BPF filters, it only shows applicable "src" traffic. (Ie I see a.a.a.a -> b.b.b.b:80, but none of the return - only the outbound.) If I remove the filter, its there again, all the bidirectional traffic. The same things applies when running the snort command. I can see both directions on a basic snort dump - but once I apply any BPF filters, I see either only source or nothing at all. My BPF syntax is correct.

For example:

I run standard snort -v -i eth1 (no filters), I see tons of a.a.a.a b.b.b.b.80, bi directional.

But if I add a filter for destination port 80, I *should* see all of the outbound traffic, without the return. So if run tcpdump -nn -i eth1 dst port 80... I see nothing. Even though the generic command showed that plenty existed. Its not just port definitions that cause the problem. If I were to specify "src net a.a.a.0/24", I receive nothing. But without that filter - I can see for sure that traffic exists and should be captured in the filter. But here is where it gets strange. If I specify a "non-directional" type filter, such as "host a.a.a.a" (without any source or destination specifications) I *receive* results – but *only* in one direction (or not at all). Remove the filter and that host is there bi-directionally. Bah!

its almost as if the direction aspect of the NIC is not being understood by the kernel as the BPF filters would expect it?

Any ideas?

Thanks.
Matt
 
Old 05-24-2010, 08:21 AM   #2
hogdogity
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
BTW - quick addition - the same bug does *not* exist on the management interface. Only the monitor interface, which I believe might be different onboard hardware.
 
  


Reply



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 On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd bug with self compiled kernel Garp Ubuntu 1 05-14-2009 12:44 AM
Odd Samba Problem. - Possible Permissions Bug? Advanced Help Needed tbeehler Linux - Software 1 05-17-2007 03:12 PM
A linux virus / very odd bug? xconspirisist Linux - Security 11 12-19-2004 11:17 AM
dell 700m emits odd sounds tamashii Linux - Laptop and Netbook 2 12-07-2004 04:34 PM
Linux on Odd Hardware richdave Linux - General 3 11-12-2002 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration