On March 1, 2010 12:17, in comp.os.linux.networking,
(E-Mail Removed) wrote:
> Martin Møller Skarbiniks Pedersen wrote:
>
>> none wrote:
>>> Hello,
>>>
>>> Does anyone know if there is a program like Winsock Packet Editor for
>>> linux? I'd like to be able to alter the content of a packet as it is
>>> being sent or received.
>>>
>>> Thanks
>>
>> man iptables
>> search for mangle.
>>
>> Regards
>> Martin
>
> Thanks for the suggestion. I could only find information about altering
> the
> routing information. I'd like to alter the data in the packet. HaveI
> overlooked something?
You can use iptables(8) to direct a packet to a queue for userspace
processing /before/ it is passed along to the sockets layer. Thus, you can
intercept and alter packets before they are put on the wire or passed to an
application.
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
Me:
http://pitcher.digitalfreehold.ca/ | Just Linux:
http://justlinux.ca/
---------- Slackware - Because I know what I'm doing. ------