Subject: Re: User level packet filtering
To: None <netbsd-users@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: tech-kern
Date: 02/17/2005 15:06:47
On Thursday 17 February 2005 15:00, Teemu Rinta-aho wrote:
> Hi all,
>
> for research purposes I'd like to pass *all* IP packets
> via user space in a NetBSD router. Not just getting a copy
> of the packet but I'd like to change/drop some packets
> before forwarding them. Now my question is, how should/could
> this be done in NetBSD? I know that it's quite easy
> with ipfw in FreeBSD, using a divert socket. There seems
> to be no ipfw any more in NetBSD-current, which I am
> using. What should I use then? ipfilter? pf? bpf?
> libpcap? And how? Any help/links most appreciated.
>
> Best regards,
> Teemu
>
> P.S. Could you please cc: my e-mail address too..

Probably tun interface can help you.
$ man -s4 tun

// wbr