Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 1999 18:52:21 -0800
From:      Ludwig Pummer <ludwigp@bigfoot.com>
To:        "Derek Jewett" <djewett@snowcrest.net>, <questions@FreeBSD.ORG>
Subject:   Re: Static NAT
Message-ID:  <4.1.19990123184620.00b2ec00@mail-r>
In-Reply-To: <002401be4737$f0190ee0$af12c9cf@bsharp.dubakella.tcoe.k12.c a.us>

next in thread | previous in thread | raw e-mail | index | archive | help
At 05:21 PM 1/23/99 , Derek Jewett wrote: 
>Has anyone run NAT in static mode...? I was wondering what the syntax
>was for making a config file with translation tables... Thanks

I have 2 IPs bound to the ethernet interface, and one (lets say
11.22.33.44) gets translated to a single internal machine via static NAT.
the other IP (say 11.22.33.43) is used for NAT for all of the other
machines on an internal network.

from my natd.conf on FreeBSD 2.2.5:
-----
interface vx0
dynamic
use_sockets
same_ports

redirect_address 172.16.1.1 11.22.33.44
-----

Please note that if this 172.16.1.1 machine talks to the outside, it still
appears to come from 11.22.33.43, but if an outside machine connects to
11.22.33.44, everything gets sent to my 172.16.1.1 machine. ideally, all
traffic from the 172.16.1.1 machine would always appear to come from
11.22.33.44, but i haven't set up the firewall rules to do that because
i've been lazy.

--Ludwig Pummer ( ludwigp@bigfoot.com )
ICQ UIN: 692441 (  ludwigp@email.com  )

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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