Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 1999 15:10:01 -0300
From:      "Joao Carlos" <jcarlos@bahianet.com.br>
To:        <questions@freebsd.org>
Cc:        <stable@freebsd.org>
Subject:   NATD
Message-ID:  <003701bed2db$1a501800$0400a8c0@bahianet.com.br>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003701bed2db$1a501800$0400a8c0>