Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 00:51:35 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        Niu Zhixiong <kaiaixi@gmail.com>, freebsd-net@freebsd.org
Subject:   Re: A question on modifying packet.
Message-ID:  <53BD7317.9030008@freebsd.org>
In-Reply-To: <CAOENNMA-%2B6P2tT3JTusH3Q8Qz4O7XnAc0ZEjVRqxU3W342sp%2Bg@mail.gmail.com>
References:  <CAOENNMA-%2B6P2tT3JTusH3Q8Qz4O7XnAc0ZEjVRqxU3W342sp%2Bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/9/14, 1:01 PM, Niu Zhixiong wrote:
> Hi, all
> I have only one NIC. I want to capture packets from one certain ip address
> and change the both src and dst addresses and forward to other destination
> via the same NIC. It is possible? Is there any library to help me do this?
there is no library, but look at how natd does this using divert sockets.

>
>
> Regards,
> Niu Zhixiong
> ---------------
>   kaiaixi@gmail.com
> _______________________________________________
> 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"
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53BD7317.9030008>