From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 28 01:18:09 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2747A16A41C for ; Tue, 28 Jun 2005 01:18:09 +0000 (GMT) (envelope-from julian@elischer.org) Received: from postoffice.vicor-nb.com (www.vicor.com [12.155.182.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14F8F44173 for ; Tue, 28 Jun 2005 00:38:34 +0000 (GMT) (envelope-from julian@elischer.org) Received: from localhost (localhost [127.0.0.1]) by postoffice.vicor-nb.com (Postfix) with ESMTP id A1CE14CE94E; Mon, 27 Jun 2005 17:38:28 -0700 (PDT) Received: from postoffice.vicor-nb.com ([127.0.0.1]) by localhost (postoffice.vicor-nb.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26791-09; Mon, 27 Jun 2005 17:38:28 -0700 (PDT) Received: from bigwoop.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by postoffice.vicor-nb.com (Postfix) with ESMTP id 224754CE931; Mon, 27 Jun 2005 17:38:28 -0700 (PDT) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by bigwoop.vicor-nb.com (Postfix) with ESMTP id D614B7A403; Mon, 27 Jun 2005 17:38:27 -0700 (PDT) Message-ID: <42C09C33.2050403@elischer.org> Date: Mon, 27 Jun 2005 17:39:15 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: cole@opteqint.net References: <20050627160635.9kkhi57rk88w848k@mail.opteqint.net> In-Reply-To: <20050627160635.9kkhi57rk88w848k@mail.opteqint.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postoffice.vicor.com Cc: freebsd-hackers@freebsd.org Subject: Re: Packet interception / Mangling X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2005 01:18:09 -0000 cole@opteqint.net wrote: >Hi > >I wanted to know if there are any libraries similar to pcap to intercept >packets/mangle packets. > > how about pcap? :-) There are also two other mechinisms.. "divert sockets" (man divert) which is used in conjuction with teh ipfw packet fileter and netgraph (man 4 netgraph, man ngctl, man ng_socket, man ng_ether) which can do a lot of interesting thins. >What im trying to do specifically is like link compression, and I would then >need to check if the packet is then compressed and decompress, and so forth and >so on. > >I would like to avoid having to use a ipfw divert to a port, and specifically >check all traffic to the box using a library function or some kind of hook into >the kernel. > >The FreeBSD version I will be using is 4.9 or 4.11, and would like to know if >there are any such routines available, and whether it could be a userland >daemon, or if i am going to need to write a kernel loadable module? > >If anyone has any ideas or suggestions, or knows anything about this, it would >be a great help. > >Regards >/Cole > > >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >