From owner-freebsd-questions Sat Jan 23 19:29:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA29828 for freebsd-questions-outgoing; Sat, 23 Jan 1999 19:29:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from inet.chip-web.com (c1003518-a.plstn1.sfba.home.com [24.1.82.47]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id TAA29823 for ; Sat, 23 Jan 1999 19:29:13 -0800 (PST) (envelope-from ludwigp@bigfoot.com) Received: (qmail 18051 invoked from network); 24 Jan 1999 03:29:00 -0000 Received: from speedy.chip-web.com (HELO speedy) (172.16.1.1) by inet.chip-web.com with SMTP; 24 Jan 1999 03:29:00 -0000 Message-Id: <4.1.19990123184620.00b2ec00@mail-r> X-Sender: ludwigp2@mail-r X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sat, 23 Jan 1999 18:52:21 -0800 To: "Derek Jewett" , From: Ludwig Pummer Subject: Re: Static NAT In-Reply-To: <002401be4737$f0190ee0$af12c9cf@bsharp.dubakella.tcoe.k12.c a.us> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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