Re: ip_queue, libnetfilter_queue, and packet alteration

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

 



Hello,

On Wednesday, 2008 July 23 at 19:13:47 +0200, Patrick McHardy wrote:
> Eric Leblond wrote:
>> Hello,
>>
>> On Tuesday, 2008 July 22 at 17:02:14 -0700, Curtis Wyatt wrote:
>>> I am using ip_queue.  I understand that is depreciated.
>>>
>>> I want to intercept a packet, alter it (change payload and source ip
>>> address and destination ip address) and then do an NF_ACCEPT on it, to
>>> have it continue on its way to another machine.  However it never
>>> shows up at that other machine.  Is there anyway to do this without
>>> doing an NF_DROP and then sending a new packet through?
>>>
>>> Will libnetfilter_queue do this for me?
>>
>> Yes, but you will have to compute the checksum of the modified packet by
>> yourself.
>>
>> Someone should send a patch which adds helper functions to ease that
>> task in a day or two.
>
> That makes sense. It would also allow to take advantage of hardware
> TX csumming.

You mean, doing this on kernel side ? That's seem nice but tha atch have
been prepared for userspace.

I will try to look into it. I know that kernel was automatically
computing checksum if it was set to zero in packet vefore verdict but
the feature seems to have disappear.

BR,
-- 
Eric Leblond
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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