promiscuous and netfilters

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

 




Hi all,

I wanted to use netfilters to get IP packets not necessarily destined to my computer's MAC.

So, I commented this check:
/*
  if (skb->pkt_type == PACKET_OTHERHOST)
      goto drop;
*/

in the function  ip_rcv(...) in net/ipv4/ip_input.c

And it appears to work OK. The hook caught packets with whatever dst-MAC.

I must say that I had very limited checks with this "patch"; it was quite an ordeal to convice another computer in my lab to fabricate packets as I needed.

so,

1. Do you think this should work? Do you see any flaws?
2. Do you know how I can debug this on my (one) computer?
   I thought of using UML+bridge-util but brctl delivers packets only
   to the host they are intended.

3. I saw several threads about similar topics in the past, so if it helps anybody ...


Hayim.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux