From owner-freebsd-questions Tue Jul 20 14:22:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from p1m2.prime.net.ua (P1M5.prime.net.ua [195.64.229.37]) by hub.freebsd.org (Postfix) with ESMTP id C29C7153DD for ; Tue, 20 Jul 1999 14:21:16 -0700 (PDT) (envelope-from andyo@prime.net.ua) Received: from prime.net.ua (localhost [127.0.0.1]) by andyo.prime.net (8.9.3/8.9.3) with ESMTP id AAA06793; Wed, 21 Jul 1999 00:01:09 +0300 (EET DST) Message-ID: <3794E393.BB422613@prime.net.ua> Date: Wed, 21 Jul 1999 00:01:08 +0300 From: =?koi8-r?Q?=E1=CE=C4=D2=C5=CA=20=F7=2E=20=EF=CC=C5=CA=CE=C9=CB?= (Andy V. Oleynik) Reply-To: andyo@prime.net.ua Organization: =?koi8-r?Q?=ED=2D=E9=CE=C6=CF?= X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) X-Accept-Language: ru, uk, en MIME-Version: 1.0 To: Joao Carlos Cc: questions@freebsd.org Subject: Re: NATD References: <003701bed2db$1a501800$0400a8c0@bahianet.com.br> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Look yesterday's or today's posting in list. Unless I mistake there was a message about it written by Ruslan Ermilov. Joao Carlos wrote: > Aomething strange is happening on my natd. > I'm running FreeBSD 3.2-STABLE and running natd and firewall > the firewall is open to anyone (allow ip from any to any) > My natd.cf is as follows: > > deny_incoming no > use_sockets yes > same_ports yes > verbose no > port natd > unregistered_only no > redirect_address 192.168.0.3 200.223.88.100 > redirect_address 192.168.0.4 200.223.88.126 > > /etc/services: > > natd 8668/divert # Network Address Translation > > FIREWALL: > 00300 65343652 853957285 divert 8668 ip from any to any via ed1 > > I discovered that To use Rediredct_address, the client has to have an alias > in the interface, and point the gateway for the outside ip address of the > natd machine. > > But it is not working fine. when i start the natd using /sbin/natd -n ed1 -f > /etc/natd.cf the machines which are in the redirect_address parameter does > not access the internet. Funny... they ping other machines outside the net, > but tcp and udp connections does not work. > second, why do i have to pioint my gateway for the outside ip address?? > And, why when machines in the redirect_address goes outside (only 1 machine > do that, the 200.223.88.126 one), it does not arrive in the other side of > the connection with it's ip address? > I mean... i telnet from 192.168.0.4 (200.223.88.126 in natd.cf) to a machine > outside my local net, and the output of WHO command shows me that i'm > connected from the outside ip address of the firewall, what happens normally > when i don't have redirect_address > does this parameter does not work fine?? > can anyone help me?? > > thanks in advance > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message -- Andy V. Oleynik (When U aim for perfection, U discover it's a moving target ö80) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message