All of lore.kernel.org
 help / color / mirror / Atom feed
* Faking ethernet source MAC in NF_IP_POST_ROUTING
@ 2004-06-23 16:15 Phillip Whelan
  2004-06-24  8:07 ` Henrik Nordstrom
  2004-06-28  9:31 ` Mario
  0 siblings, 2 replies; 3+ messages in thread
From: Phillip Whelan @ 2004-06-23 16:15 UTC (permalink / raw)
  To: netfilter-devel

Hello,

Quote: (myself)
  "I've been working lately on a netfilter hook extension which Rewrites outgoing ARP packets to spoof a host's MAC address."

I already managed to solve a problem involving ARP replies automagically updating arp caches by modifying the arp payload's sender hw_addr.
(or perhaps, the tha... whatever, it works).

The kernel is now spoofing itself, etc... but, it still sends out packets with the real MAC address. This, of course confuses the end host to no ends.

In NF_IP_POST_ROUTING, the skb->mac is not NULL, but skb->mac_len is 0.
Directly modifying the skb->mac would just lead to memory corruption. 
How would I modify the source MAC address? (Im inside NF_IP_POST_ROUTING). Can I access through a negative offset from skb->data? (net/ipv4/arp.c does this, I think).

-- 
Phillip Whelan
Lead Programmer
Exis - Extreme Information Solutions/Security
http://www.exis.cl

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-28  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23 16:15 Faking ethernet source MAC in NF_IP_POST_ROUTING Phillip Whelan
2004-06-24  8:07 ` Henrik Nordstrom
2004-06-28  9:31 ` Mario

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.