Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2008 09:52:12 -0500
From:      Stephen Clark <Stephen.Clark@seclark.us>
To:        Stephen.Clark@seclark.us
Cc:        freebsd-net@freebsd.org
Subject:   Re: duplicate packet using divert
Message-ID:  <4797549C.2080209@seclark.us>
In-Reply-To: <479738F8.9010905@seclark.us>
References:  <479663C0.3090606@seclark.us>	<715218DB-7DE4-4CCF-A858-03AC05BA4732@mac.com> <479738F8.9010905@seclark.us>

next in thread | previous in thread | raw e-mail | index | archive | help
Stephen Clark wrote:
> Chuck Swiger wrote:
>> On Jan 22, 2008, at 1:44 PM, Stephen Clark wrote:
>>> does anyone have a program that uses the divert socket to duplicate 
>>> an incoming packet so it can be
>>> sent to another address.
>>
>> Well, I assume you could start with the ipfw "tee" directive and 
>> /usr/src/sbin/natd ...?
>>
> Thanks Chuck - I have been thinking the same thing - just thought 
> someone may have already
> done this.
>
> Steve
>
Hi Chuck,

ipfw add 50 tee natd udp from any to 20.x.x.120 dst-port 14050 in
natd -verbose -a 20.x.x.120 -redirect_address 10.0.129.101 20.x.x.120

this seems to do the trick.

Steve

-- 

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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4797549C.2080209>