Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Nov 2014 19:10:26 +0330
From:      Hooman Fazaeli <hoomanfazaeli@gmail.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>, Mark Felder <feld@freebsd.org>
Subject:   Re: transparent udp proxy
Message-ID:  <5456506A.9060708@gmail.com>
In-Reply-To: <CAJ-VmokHR7f_-R4rR-H=KQVrKiGSBjYKr5wzXXo2e=qaqz=abg@mail.gmail.com>
References:  <54535B82.405@gmail.com> <1414764053.1422501.185543329.39B66970@webmail.messagingengine.com> <5453A3F0.7010706@gmail.com> <CAJ-VmokHR7f_-R4rR-H=KQVrKiGSBjYKr5wzXXo2e=qaqz=abg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/31/2014 8:11 PM, Adrian Chadd wrote:
> Hi,
>
> If it's missing in 10 or later then please file a bug and I'll see
> what it'll take to add another socket option to return the original
> destination address+port.
>
> Thanks,

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194758

>
> -adrian
>
> On 31 October 2014 08:00, Hooman Fazaeli <hoomanfazaeli@gmail.com> wrote:
>> On 10/31/2014 5:30 PM, Mark Felder wrote:
>>> I'm not sure if this is what you're looking for, but perhaps the
>>> solution is in net/samplicator ?
>>>
>>>   From the project's website:
>>>
>>> This simple program listens for UDP datagrams on a network port, and
>>> sends copies of these datagrams on to a set of destinations. Optionally,
>>> it can perform sampling, i.e. rather than forwarding every packet,
>>> forward only 1 in N. Another option is that it can "spoof" the IP source
>>> address, so that the copies appear to come from the original source,
>>> rather than the relay. Currently only supports IPv4.
>>> _______________________________________________
>>> 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. I do not thinks it provides what I am looking for.
>>
>> I am not looking for an application performing a specific task, but a
>> mechanism
>> to get the __original__ destination address and port of packets forwarded to
>> a
>> local UDP proxy by ipfw fwd rules. As I figured it out until now, The
>> original destination
>> address may be obtained by IP_RECVDSTADDR on 9.0+ (but not on 8.x and older
>> versions) but
>> there seems to be no mechanism get the _original_ destination _port_ (Apart
>> from this
>> missing mechanism, my proxy is functional and performs what it is intended
>> to do).
>>
>>
>> --
>>
>> Best regards.
>> Hooman Fazaeli
>>
>> _______________________________________________
>> 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"


-- 

Best regards.
Hooman Fazaeli




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5456506A.9060708>