Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2002 22:39:24 -0500 (CDT)
From:      Nick Rogness <>
To:        Alexey Privalov <>
Cc:        freebsd-ipfw@FreeBSD.ORG
Subject:   Re: natd & trans proxy
Message-ID:  <>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 10 Jun 2002, Alexey Privalov wrote:

> hi all.
> i`m running two natd`s on rl3 (external) and rl0 (internal).

> the first natd is running on 8668 (standart) port and is diverting
> private ip to ip on interface and have following configuration:
> 	interface rl3
> 	unregistered_only yes
> 	use_sockets yes
> 	same_ports yes


> the second natd have a following configuration:
> 	port 8669
> 	proxy_only
> 	proxy_rule port 80 server proxy_addr:8888
> 	interface rl0
> and is forwarding to squid.
> why when interface rl0 receive http packet then it divert ip to external.

	You should not be using natd to do the forwarding to your proxy
	server, since you don't want to change header info in the
	packet.  You only want to forward it to your proxy server so use
	ipfw fwd instead...that will resolve all of your issues.

	There are several examples online and within the mailing list
	archives that describe how to do this properly.

	PS.  Please don't cross-post to multiple lists.  Besides, this
	question belongs on freebsd-questions anyway.

Nick Rogness <>
 - Don't mind me...I'm just sniffing your packets

To Unsubscribe: send mail to
with "unsubscribe freebsd-ipfw" in the body of the message

Want to link to this message? Use this URL: <>