netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* filtering packtes before OS takes care about them
@ 2005-02-28 16:16 Weber Matthias
  2005-02-28 17:38 ` bert hubert
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Weber Matthias @ 2005-02-28 16:16 UTC (permalink / raw)
  To: netdev

Hi,

i need a possibility to catch IP4 packets (from ethernet devices) before OS' netmodules (IP, UDP, TCP, ICMP, ARP, ROUTE, NETFILTER ...) takes care about them and 
* to delete them from input buffer such that OS' netmodules can't receive them
* to modify packet headers and move packets to interface related output buffers
* to keep them in input buffers such that OS' netmodules can take care about them.

I would be thankfull for any hint, link or code example.

Bye
Matthias

--

Dipl.-Inf. Matthias Weber
Universität Erlangen-Nürnberg
Lehrstuhl für Fertigungsautomatisierung und Produktionssystematik Egerlandstraße 7-9
91058 Erlangen
Tel. :*49 9131/85-27702
Fax. :*49 9131/302528
www :www.faps.uni-erlangen.de
mailto:weber@faps.uni-erlangen.de

^ permalink raw reply	[flat|nested] 14+ messages in thread
* AW: filtering packtes before OS takes care about them
@ 2005-02-28 18:59 Weber Matthias
  2005-03-01  0:26 ` Thomas Graf
  0 siblings, 1 reply; 14+ messages in thread
From: Weber Matthias @ 2005-02-28 18:59 UTC (permalink / raw)
  To: bert hubert; +Cc: netdev

I need to develop a special gateway. It shall map exernal ips to internal ports and external ports to internal ips (kind of NAT but connections have to be established from external to internal network and vice versa!), so the sender,receveiver addresses and ports have to be changed off each package received. Afterwards these packets shall be resent via one (out of more) interfaces. Therefore kernel's IP stuff disturbs me, but because i want to use TCP/IP at the gateway itself too (the computer runs applications using IP), i still need it.
Thus the most easiest way should be to be the first one dealing those packets when they arrive. AFAIK before netfilter gets the packets the kernel's router already got them...

Hope i made may needs clear? 

Thanks for help,
Matthias

-----Ursprüngliche Nachricht-----
Von: bert hubert [mailto:ahu@ds9a.nl] 
Gesendet: Montag, 28. Februar 2005 18:38
An: Weber Matthias
Cc: netdev@oss.sgi.com
Betreff: Re: filtering packtes before OS takes care about them

On Mon, Feb 28, 2005 at 05:16:57PM +0100, Weber Matthias wrote:

> i need a possibility to catch IP4 packets (from ethernet devices) 
> before OS' netmodules (IP, UDP, TCP, ICMP, ARP, ROUTE, NETFILTER ...) 
> takes care about them and

Why? It helps if you tell us what you really want, or is this a research project? 

The earliest place I know of is with tc filter, but that is a netfilter hook. So part of netfilter will "see" your code.

What you appear to be asking for is a packet filtering network adaptor?
These exist.

> * to modify packet headers and move packets to interface related 
> output
> * buffers

Sure you want an operating system? 

Good luck!

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-03-07  2:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-28 16:16 filtering packtes before OS takes care about them Weber Matthias
2005-02-28 17:38 ` bert hubert
2005-02-28 20:09 ` Asim Shankar
2005-03-01  0:30   ` Pedro Fortuna
2005-03-01  1:53     ` jamal
2005-03-01  3:35     ` Asim Shankar
2005-03-01 16:33       ` Pedro Fortuna
2005-03-05 14:08   ` Pedro Fortuna
2005-03-05 18:58     ` Asim Shankar
2005-03-05 19:36       ` Pedro Fortuna
     [not found]         ` <7bca1cb50503051729e3273d3@mail.gmail.com>
2005-03-06  2:04           ` Pedro Fortuna
2005-03-07  2:46           ` Pedro Fortuna
2005-03-01 17:20 ` Stephen Hemminger
  -- strict thread matches above, loose matches on Subject: below --
2005-02-28 18:59 AW: " Weber Matthias
2005-03-01  0:26 ` Thomas Graf

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).