Date: Sun, 30 Jun 2013 14:48:34 +0300 From: Sami Halabi <sodynet1@gmail.com> To: Eugene Grosbein <eugen@grosbein.net> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, "Paul A. Procacci" <pprocacci@datapipe.com>, freebsd-ipfw <freebsd-ipfw@freebsd.org> Subject: Re: DNAT in freebsd Message-ID: <CAEW%2Bogbx15KiayBHFJ7T1YVGQ2pwm1ArQaSrjUk6XUOBgVPggA@mail.gmail.com> In-Reply-To: <51D006F6.6060809@grosbein.net> References: <CAEW%2BogYp61U2zjicksYekSdfmLLZh5g9QM3GUg4n16ZbudVZtg@mail.gmail.com> <20130629002959.GB20376@nat.myhome> <CAEW%2BogZ=a6LZavOtcb_egNWFQ8bJP0gzP6pc90tu1dcWC9K80A@mail.gmail.com> <51D006F6.6060809@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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? Thanks in advance, Sami On Sun, Jun 30, 2013 at 1:22 PM, Eugene Grosbein <eugen@grosbein.net> wrote: > On 29.06.2013 13:50, Sami Halabi wrote: > > I think I was misunderstood... > > Here is the situation i want to handle: > > My box is a router that handles several /24 behind. > > One of my links (em0) is connected to a private network 192.168.0.1 is > me, > > my neighbour is 192.168.0.2. > > I want to make that any connection comes to 192.168.0.1 to go to ip > > 193.xxx.yyy.2 using specific public ip 84.xx.yy.1 > > And packets comming to my public 84.xx.yy.1 ip to be trsnslated as came > > from 192.168.0.1 and sent to 192.168.0.2/or ant other ips > > behind(192.168.1.xx/24). > > > > Hope that makes it clearer, and I appreciate any help. > > You need to setup 2 ipfw nat instanses, one to translate source IPs, > another to translate destination IPs (this one needs "reverse" mode). > > > -- Sami Halabi Information Systems Engineer NMS Projects Expert FreeBSD SysAdmin Expert
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEW%2Bogbx15KiayBHFJ7T1YVGQ2pwm1ArQaSrjUk6XUOBgVPggA>