From: Eric Leblond <eric@regit.org>
To: "Jee J.Z." <jz105@york.ac.uk>
Cc: netfilter@lists.netfilter.org
Subject: Re: Modify packets using netfilter
Date: Sat, 13 Dec 2003 21:21:25 +0100 [thread overview]
Message-ID: <1071346885.1309.3.camel@porky> (raw)
In-Reply-To: <007d01c3c198$873df440$cb0210ac@jz105>
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
Le sam 13/12/2003 à 17:45, Jee J.Z. a écrit :
> Hi Antony and all,
>
> Thanks for your reply. What I am trying to do is to get the whole packets including their payloads and store them into a self defined queue, and randomly modify some bits in each packet.
> I am using iptables userspace programming. Does anybody have some good idea how to achieve this? Thank you.
with libipq you can modify the payload of the packet :
Take from man page :
int ipq_set_verdict(const struct ipq_handle *h, ipq_id_t id, unsigned
int verdict, size_t data_len, unsigned char *buf);
if data_len is not 0 and buf is not NULL, the header and payload of the
packet get replaced by the datas pointed by buf.
BR,
--
Eric Leblond
Nufw, Now User Filtering Works (http://www.nufw.org)
[-- Attachment #2: Ceci est une partie de message numériquement signée. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-12-13 20:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-13 15:44 Modify packets using netfilter Jee J.Z.
2003-12-13 15:49 ` Antony Stone
2003-12-13 16:45 ` Jee J.Z.
2003-12-13 16:53 ` Antony Stone
2003-12-13 20:21 ` Eric Leblond [this message]
2003-12-13 23:11 ` Jee J.Z.
2003-12-15 1:14 ` Josh Berry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1071346885.1309.3.camel@porky \
--to=eric@regit.org \
--cc=jz105@york.ac.uk \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox