From: "Jee J.Z." <jz105@york.ac.uk>
To: Sven Schuster <schuster.sven@gmx.de>, aksingh@hss.hns.com
Cc: netfilter@lists.netfilter.org
Subject: Re: Reinjecting packets using libipq
Date: Tue, 20 Apr 2004 14:13:16 +0100 [thread overview]
Message-ID: <009401c426d9$3e2a3a10$68892090@grouse> (raw)
In-Reply-To: 20040420102929.GA6236@zion.homelinux.com
Hi,
You can have a look at 'libnet' for injecting a new packet. I think it's
good for packet construction. But I am not sure whether the newly generated
packet can bypass a certain hook or not at this time.
Jee
> Also, I had another doubt, can we use libpq to reinject absolutely new
> packets into the kernel at the ip level and make sure that they dont
get
> caught by our registered netfilter hooks ? .. or if we cannot use libpq
> then is someother way available (on the same system where we have the
> PRE_ROUTING netfilter hook, we want to bypass this hook for certain
> packets). The newly injected packets cld either be outbound(going to
the
> wire) or inbound( they after going to ip will have to go up the stack
to
> tcp and all)
I recently read your new mail at the netfilter mailing list about
(re)injecting new packets from userspace, but actually I don't think
that this would work (or at least it would be quite some work to
do), as you'd also have to build a completely new skb in your
function which would call nf_reinject. Anyone else with more
knowledge on this one??
Another way of injecting packets to the kernel might be packet sockets,
don't know if that would be the right one for you. see man 7 packet
HTH
Sven
>
> thanks
> Amit
>
--
Linux zion 2.6.6-rc1 #1 Sat Apr 17 11:50:12 CEST 2004 i686 athlon i386
GNU/Linux
12:17:13 up 2 days, 19:14, 1 user, load average: 4.20, 4.08, 2.82
next prev parent reply other threads:[~2004-04-20 13:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OFCC294FDA.EB782326-ON65256E7C.002FB337@hss.hns.com>
2004-04-20 10:29 ` Reinjecting packets using libipq Sven Schuster
2004-04-20 13:13 ` Jee J.Z. [this message]
2004-04-20 13:26 ` Sven Schuster
2004-04-20 9:03 aksingh
2004-04-20 15:53 ` Michelle Konzack
-- strict thread matches above, loose matches on Subject: below --
2004-04-20 7:56 aksingh
2004-04-20 8:41 ` Sven Schuster
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='009401c426d9$3e2a3a10$68892090@grouse' \
--to=jz105@york.ac.uk \
--cc=aksingh@hss.hns.com \
--cc=netfilter@lists.netfilter.org \
--cc=schuster.sven@gmx.de \
/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