Skip site navigation (1)Skip section navigation (2)
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) <andyo@prime.net.ua>
To:        Joao Carlos <jcarlos@bahianet.com.br>
Cc:        questions@freebsd.org
Subject:   Re: NATD
Message-ID:  <3794E393.BB422613@prime.net.ua>
References:  <003701bed2db$1a501800$0400a8c0@bahianet.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

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




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