From owner-freebsd-net@FreeBSD.ORG Wed Aug 30 21:05:18 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7B3416A4E5 for ; Wed, 30 Aug 2006 21:05:18 +0000 (UTC) (envelope-from Stephen.Clark@seclark.us) Received: from smtpout08-04.prod.mesa1.secureserver.net (smtpout08-04.prod.mesa1.secureserver.net [64.202.165.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 864B243D7C for ; Wed, 30 Aug 2006 21:05:14 +0000 (GMT) (envelope-from Stephen.Clark@seclark.us) Received: (qmail 18248 invoked from network); 30 Aug 2006 21:05:11 -0000 Received: from unknown (24.144.77.138) by smtpout08-04.prod.mesa1.secureserver.net (64.202.165.12) with ESMTP; 30 Aug 2006 21:05:11 -0000 Message-ID: <44F5FD86.9010101@seclark.us> Date: Wed, 30 Aug 2006 17:05:10 -0400 From: Stephen Clark User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22smp i686; en-US; m18) Gecko/20010110 Netscape6/6.5 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <44F5A6C3.30705@seclark.us> <44F5E1A9.2010605@quip.cz> In-Reply-To: <44F5E1A9.2010605@quip.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Tee packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stephen.Clark@seclark.us List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 21:05:18 -0000 Miroslav Lachman wrote: >Stephen Clark wrote: > > > >>Hello List, >> >>We have a monitoring app that receives udp packets from units in the >>field. We are in >>the process of increasing the number of units we have reporting and are >>seeing some >>performance issues with our current hardware. I would like be able to >>somehow route a >>copy of each packet to another machine so I can test out different >>hardware configurations >>to see how performance is affected. >> >>Any ideas on the best way to do this? >> >> > >If you are using PF as your firewall, you can use dup-to (man pf.conf) > >"The dup-to option creates a duplicate of the packet and routes it >like route-to. The original packet gets routed as it normally would." > >Miroslav Lachman >_______________________________________________ >freebsd-net@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > Thanks for the response - I am not using pf - this on freebsd 4.10. I did solve the problem by using ipfw - tee option and wrote a quickie userspace app to change the destination address. -- "They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin) "The course of history shows that as a government grows, liberty decreases." (Thomas Jefferson)