From owner-freebsd-questions@FreeBSD.ORG Fri Apr 9 03:00:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 557C316A4CE for ; Fri, 9 Apr 2004 03:00:58 -0700 (PDT) Received: from sandra.spbmts.ru (ns2.spbmts.ru [217.66.145.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0685543D5A for ; Fri, 9 Apr 2004 03:00:57 -0700 (PDT) (envelope-from vasilkin@spb.mts.ru) Received: from sabrina.spb.mts.ru (sabrina [10.16.20.4]) by sandra.spbmts.ru (8.11.6+Sun/8.11.6) with ESMTP id i39A0tV15190; Fri, 9 Apr 2004 14:00:55 +0400 (MSD) Received: from sabrina.spb.mts.ru (localhost [127.0.0.1]) by sabrina.spb.mts.ru (8.11.7p1+Sun/8.11.6) with SMTP id i39A0tV10203; Fri, 9 Apr 2004 14:00:55 +0400 (MSD) Received: from 10.16.19.139 ([10.16.19.139]) by sabrina.spb.mts.ru (SAVSMTP 3.1.0.29) with SMTP id M2004040914005131276 ; Fri, 09 Apr 2004 14:00:51 +0400 Date: Fri, 9 Apr 2004 14:00:50 +0400 From: vasilkin@spb.mts.ru X-Mailer: The Bat! (v2.00) CD5BF9353B3B7091 Organization: Telecom XXI X-Priority: 3 (Normal) Message-ID: <25359736265.20040409140050@spb.mts.ru> To: Arek Czereszewski In-Reply-To: <4076692E.4010002@wup-katowice.pl> References: <407663BF.7020506@users.sourceforge.net> <4076692E.4010002@wup-katowice.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re[2]: Natd and natd_interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vasilkin@spb.mts.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 10:00:58 -0000 Hello Arek, Write to /etc/natd.conf strings like: redirect_address 192.168.0.10 213.216.67.80 redirect_address 192.168.0.11 213.216.67.81 ... redirect_address INSIDE_IP PUBLIC_IP and write into /etc/rc.conf : natd_flags=" -f /etc/natd.conf " Friday, April 9, 2004, 1:13:18 PM, you wrote: AC> Rob wrote: >> fxp0, the one that connects to the outside network. AC> Yes. It is. >> I don't think you have to do this yourself. >> I believe by adding >> natd_enable="YES" AC> Yes, i have this. And gateway_enable, firewall_enable, firewall_type >> to your rc.conf, you get the following rule as a result: >> divert 8668 ip from any to any via fxp0 >> which does what you want (I think). AC> But i have 10 workstations with public IP from my subnet AC> 213.216.67.80/28 connected to fxp1. Is this rule do NAT for this IP too? AC> Arek -- Best regards, vasilkin mailto:vasilkin@spb.mts.ru