From: "Rob Sterenborg" Subject: Re: what's the problem of DNAT Date: Mon, 31 Oct 2005 09:10:05 +0100 (CET) Message-ID: <54583.193.173.147.3.1130746205.squirrel@webmail.sterenborg.info> References: <43a0cdcb0510301931p3f97ff66p@mail.gmail.com> <43a0cdcb0510302358y10f854ffg@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <43a0cdcb0510302358y10f854ffg@mail.gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: Buddy wu Cc: netfilter@lists.netfilter.org On Mon, October 31, 2005 08:58, Buddy wu wrote: > -A PREROUTING -d Inet1 -p tcp -m tcp --dport 6100 -j DNAT > --to-destination 192.168.16.21:6100 > -A PREROUTING -d Inet1 -p tcp -m tcp --dport 80 -j DNAT > --to-destination 192.168.16.114:80 ... > -A PREROUTING -d Inet1 -p tcp -m tcp --dport 8087 -j DNAT > --to-destination 192.168.16.100:8087 > > these are the rules in PREROUTING. the Inet1 replaced for the > internet address. Now it only can connect to Inet1:80 through the > internet. and others like :Inet1:8083 can't be accessed. > It worked months ago . but now it don't work anyway Has anything changed in the FORWARD chain ? You need to allow it there. Gr, Rob