* IP spoofing
@ 2003-04-10 20:26 Farshad
2003-04-10 21:10 ` Peteris Krumins
0 siblings, 1 reply; 3+ messages in thread
From: Farshad @ 2003-04-10 20:26 UTC (permalink / raw)
To: netfilter
Just a naive question:
using netfilter, is it possible to grab a packet and change its IP source address and then reinject it as if it has been sent from another source?
thanks!
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IP spoofing
2003-04-10 20:26 IP spoofing Farshad
@ 2003-04-10 21:10 ` Peteris Krumins
2003-04-10 21:12 ` Re[2]: " Peteris Krumins
0 siblings, 1 reply; 3+ messages in thread
From: Peteris Krumins @ 2003-04-10 21:10 UTC (permalink / raw)
To: Farshad; +Cc: netfilter
Thursday, April 10, 2003, 11:26:45 PM, you wrote:
F> Just a naive question:
F> using netfilter, is it possible to grab a packet and change
F> its IP source address and then reinject it as if it has been
F> sent from another source?
Yes it is possible.
You can use ip_queue - queue the packets to userspace, change whatever
you want, recalculate checksum yourself and reinject it back.
Tho, my tests indicate that if the link is too loaded and your code is
not fast enough (sometimes even with nop) the netlink socket overflows
causing packet drops.
I tried tuning the netlink socket increasing the buffer size, but
after some time it overflowed anyway.
P.Krumins
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re[2]: IP spoofing
2003-04-10 21:10 ` Peteris Krumins
@ 2003-04-10 21:12 ` Peteris Krumins
0 siblings, 0 replies; 3+ messages in thread
From: Peteris Krumins @ 2003-04-10 21:12 UTC (permalink / raw)
To: netfilter
Friday, April 11, 2003, 12:10:04 AM, you wrote:
PK> Thursday, April 10, 2003, 11:26:45 PM, you wrote:
F>> Just a naive question:
F>> using netfilter, is it possible to grab a packet and change
F>> its IP source address and then reinject it as if it has been
F>> sent from another source?
PK> Yes it is possible.
PK> You can use ip_queue - queue the packets to userspace, change whatever
PK> you want, recalculate checksum yourself and reinject it back.
PK> Tho, my tests indicate that if the link is too loaded and your code is
PK> not fast enough (sometimes even with nop) the netlink socket overflows
PK> causing packet drops.
PK> I tried tuning the netlink socket increasing the buffer size, but
PK> after some time it overflowed anyway.
oops, i read your question wrong. I though you wanted to change the
contents of the packet while it is traversing.
P.Krumins
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-10 21:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-10 20:26 IP spoofing Farshad
2003-04-10 21:10 ` Peteris Krumins
2003-04-10 21:12 ` Re[2]: " Peteris Krumins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox