From: Changli Gao <xiaosuo@gmail.com>
To: Hamid Nassiby <h.nassiby@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Packet manipulation in user space, drop/reinject modified packets
Date: Sat, 10 Apr 2010 07:02:50 +0800 [thread overview]
Message-ID: <w2l412e6f7f1004091602q73e82e75w50ea68fc6d7e9341@mail.gmail.com> (raw)
In-Reply-To: <r2tb3f13ff81004090953v4a7eeea7k9072c0e777292407@mail.gmail.com>
On Sat, Apr 10, 2010 at 12:53 AM, Hamid Nassiby <h.nassiby@gmail.com> wrote:
> Hello,
>
> I'm working on a project which wants to port a Windows-based network
> protocol to Linux. The protocol works as a VPN/Firewall, on packets
> copied from Data-Link Layer to user space. In MS Windows
> WinpkFilter(C) does copying from kernel space (Data-Link layer) to
> user space and then drops the original packet. In user space, our
> protocol does some operation on packet ( e.g. checks the packet
> authority and/or encrypts/decrypts it, ...) and then injects the
> packet upward to application layer or downward or simply drops it. The injected
> modified packet may not be as the same size of original one.
>
> So our requirements are:
>
> 1-Capture each packet which is coming inside or going outside the
> computer in Data-link Layer.
> 2-Create a copy of the packet and drop the original one.
> 3-Copy of packet must be available in user space to be manipulated by
> our protocol.
> 4-After manipulation in user space, inject encrypted/decrypted version
> of the privileged (copy of) packets to the network or upward to the
> application layer.
>
Refer to: Documentation/networking/tuntap.txt
--
Regards,
Changli Gao(xiaosuo@gmail.com)
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2010-04-09 23:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 16:53 Packet manipulation in user space, drop/reinject modified packets Hamid Nassiby
2010-04-09 23:02 ` Changli Gao [this message]
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=w2l412e6f7f1004091602q73e82e75w50ea68fc6d7e9341@mail.gmail.com \
--to=xiaosuo@gmail.com \
--cc=h.nassiby@gmail.com \
--cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).