From: Hellwolf Misty Subject: Re: when I DNAT to local address, the port num seems to be strange. Date: Thu, 18 Aug 2005 17:13:15 +0800 Message-ID: <1124356395.5124.3.camel@cocteau.hellwolf-misty.org> References: <1124328975.2701.7.camel@cocteau.hellwolf-misty.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Jan Engelhardt In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org On Thu, 2005-08-18 at 10:41 +0200, Jan Engelhardt wrote: > >Subject: when I DNAT to local address, the port num seems to be strange. > > If destination is 127.0.0.1, needs -j REDIRECT. > You can also use -j DNAT 192.168.1.1 (i.e. the eth0 addr) > > I've tried as you told: REDIRECT --to-ports 8888, or -j DNAT --to LOCALADDRESS, but it nothing changes. P.S: $ uname -r 2.6.11-1.1369_FC4