Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2001 22:59:09 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        Joel Rosenberg <thisisjoel@hotmail.com>
Cc:        nick@rogness.net, freebsd-questions@FreeBSD.ORG
Subject:   Re: Forwarding packets from the internal network
Message-ID:  <20010828225909.E4864@blossom.cjclark.org>
In-Reply-To: <F146mdMJOtd3rOE9TuH0001501b@hotmail.com>; from thisisjoel@hotmail.com on Wed, Aug 29, 2001 at 05:40:08AM %2B0000
References:  <F146mdMJOtd3rOE9TuH0001501b@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 29, 2001 at 05:40:08AM +0000, Joel Rosenberg wrote:
> 
> >You can try the -same_ports option to natd.
> 
>    Yeah, I already tried that, to no avail.
> 
> 
> >I believe what he is saying is that 192.168.1.21 is responding to
> >port 80 requests with a src_port of 80 and not 81 which would not
> >work.  So if I understand correctly:
> >
> >		1) natd gets packet from outside world:
> >
> >			SOURCE		    DESTINATION
> >			remote_IP:16675 --> your_nat_outside_IP:81
> >
> >		2) natd changes packet to:
> >
> >			SOURCE		    DESTINATION
> >			remote_IP:16675 --> 192.168.1.21:80
> >
> >		3) Packet gets sent to 192.168.1.21 port 80
> >
> >		4) 192.168.1.21 responds sending packet back to natd
> >			machine.
> >
> >		5) natd changes packet to:
> >
> >			SOURCE		    	   DESTINATION
> >			your_nat_outside_IP:80 --> remote_IP:16675

That's not what natd(8) will do. It will change it to,

			SOURCE		    	   DESTINATION
			your_nat_outside_IP:81 --> remote_IP:16675

> >		6) packet gets sent out into the world.
> >
> >
> >	Step #5 you want it to be:
> >
> >			your_nat_outside_IP:81 --> remote_IP:16675
> >
> >	Is this the problem you were describing?

That's what natd(8) should do unless there is some problem. I don't
really understand what the problem here is.
-- 
Crist J. Clark                           cjclark@alum.mit.edu

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?20010828225909.E4864>