RE: Mangling problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I maybe wrong but I don't believe netfilter will process any packets not
intended for that box.  TCPDump will see it as in a hubbed environment
all nodes receive all packets but only those that are destined for that
box will netfilter process.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Chris Hoeschen - Distributed System Analysts        |
| PrimeVest Financial Services                        |
| (320) 656-4035 E-Mail: chris.hoeschen@xxxxxxxxxxxxx |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

"Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former." 
  -- Albert Einstein
Hippopotomonstrosesquippedaliophobia is the fear of long words


-----Original Message-----
From: netfilter-admin@xxxxxxxxxxxxxxxxxxx
[mailto:netfilter-admin@xxxxxxxxxxxxxxxxxxx] On Behalf Of Regina Reine
Sent: Wednesday, May 21, 2003 6:50 AM
To: netfilter@xxxxxxxxxxxxxxxxxxx
Subject: Mangling problem



Hi,
I am doing an experiment with iptables. I use a hub to connect two
computers. Computer A captures the video packet (or any packets) and
computer B runs iptables and my code in Red Hat 8. Basically, with hub,
computer B will be able to see the packets coming to computer A. I would
like computer B to preroute this packet and put these packets in
userspace where I run my code. 

I uses :

** Iptables -t mangle -I PREROUTING -p udp -I eth0 -j QUEUE

However, seems like I only be able to capture broadcast packets. (But
TCPDUMP could see the udp packets). I have checked my code (just a
simple code that scan what kind of packets and it worked with udp
generator such as iperf or hping). 
I have tried a few other similar ways but still only could capture
broadcast packets. Does anybody spots my mistake or could give me advice
for better solution? Thank you

Best regards,
Regina Reine






[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux