DNAT in freebsd

Sami Halabi sodynet1 at gmail.com
Sun Jun 30 20:27:02 UTC 2013


Hi Eugene,

It simply doesn't work for me, the reverse option doesn't work properly for
me.... it keeps translating the source instead of the destination...


On Sun, Jun 30, 2013 at 6:32 PM, Eugene Grosbein <eugen at grosbein.net> wrote:

> On 30.06.2013 18:48, Sami Halabi wrote:
> > Hi,
> > I don't understand how reverse mode works exactly, and didn't find a
> good example.
> >
> >
> > can you try and help on the configuration?
>
> Well, that's pretty simple. Generally, NAT translates source IP address of
> the packet
> keeping destination IP intact. You need both of source and
> destination addresses get translated. Reverse NAT translates does,
> well, reverse thing: it translates destination IP keeping source IP intact.
> So, you just need setup two ipfw nat instances, one "general" and one
> "reverse"
> and pass your packets through both instances.
>
> Eugene Grosbein
>
>
>


-- 
Sami Halabi
Information Systems Engineer
NMS Projects Expert
FreeBSD SysAdmin Expert


More information about the freebsd-net mailing list