From: "Hari Gadi" <HGadi@ecutel.com>
To: "Chris Friesen" <cfriesen@nortelnetworks.com>, <prade@cs.sunysb.edu>
Cc: <linux-kernel@vger.kernel.org>
Subject: RE: Trapping all Incoming Network Packets
Date: Mon, 18 Mar 2002 14:41:52 -0500 [thread overview]
Message-ID: <AF2378CBE7016247BC0FD5261F1EEB210B6A8F@EXCHANGE01.domain.ecutel.com> (raw)
Hi,
Is it possible to change the packet (add an extra ip header)
and send it back to network bypassing the routing functionality.
I want to do my own routing.( I add the hardware address of the destination machine)
thanks,
Hari.
-----Original Message-----
From: Chris Friesen [mailto:cfriesen@nortelnetworks.com]
Sent: Monday, March 18, 2002 2:17 PM
To: prade@cs.sunysb.edu
Cc: linux-kernel@vger.kernel.org
Subject: Re: Trapping all Incoming Network Packets
prade@cs.sunysb.edu wrote:
> I want to sniff the packets, and make a
> decision based on certain characteristics of each packet. So I need to
> have a filter between the IP and link-layer. Also, I do not want the
> filter to slow down traffic. Hence I believe implementing inside kernel
> will be more efficient.
Write a netfilter module and bind it in to NF_IP_PRE_ROUTING or NF_IP_LOCAL_IN
as appropriate. This will allow you to analyze the packet and decide whether to
keep or discard it (or mangle it if you want).
This is what netfilter is there for.
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2002-03-18 19:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-18 19:41 Hari Gadi [this message]
2002-03-18 21:49 ` prade
-- strict thread matches above, loose matches on Subject: below --
2002-03-17 23:57 prade
2002-03-18 2:09 ` Bernd Eckenfels
2002-03-18 18:27 ` Robert Pfister
2002-03-18 18:40 ` prade
2002-03-18 19:15 ` Robert Pfister
2002-03-18 19:17 ` Chris Friesen
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=AF2378CBE7016247BC0FD5261F1EEB210B6A8F@EXCHANGE01.domain.ecutel.com \
--to=hgadi@ecutel.com \
--cc=cfriesen@nortelnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=prade@cs.sunysb.edu \
/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
all inboxes | Powered by JetHome®