From mboxrd@z Thu Jan 1 00:00:00 1970 From: iansolo Subject: Re: ftp nat MAX PORTS Date: Tue, 08 Feb 2005 14:54:47 +0100 Message-ID: <4208C4A7.3080208@betisgroup.com> References: <420100AF.1040105@betisgroup.com> <4201D91A.5030500@betisgroup.com> <200502081011.46026.luismnieto@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <200502081011.46026.luismnieto@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="iso-8859-1"; format="flowed" To: Luis Nieto , netfilter@lists.netfilter.org Ok, but my problem is redirect all from port 9000 of external=20 interface(of fw) to same port of ftpserver. $IPTABLES -t nat -A PREROUTING -p tcp -d $EXT_LAN_FW --dport 9000 -j=20 DNAT --to-destination $IP_FTPSERVER:9000 But this don't work with ftp flow... Luis Nieto wrote: > El Jue 03 Feb 2005 04:56, escribi=F3: > $IPTABLES -t nat -A PREROUTING -p tcp -d $EXT_LAN_FW --dport 21 -j DNAT=20 > --to-destination $IP_FTPSERVER:9000 > =20 > In this way, all the requirements for FTP connections that arrives to you= r=20 > extern interface should be redirected to $IP_FTPSERVER:9000 >=20 >=20 > ________ Information from NOD32 ________ > This message was checked by NOD32 Antivirus System for Linux Mail Server. > http://www.nod32.com