From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Subject: port mapping ANY:95 to originalIP:80 Date: Sat, 30 Apr 2005 18:52:19 +0200 Message-ID: <77d61640504300952e19c4c2@mail.gmail.com> Reply-To: Efraim Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline 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: netfilter@lists.netfilter.org Hi, I'm using my linux box as a router and I have an application that is make all the request in port 95. I need to make an iptables rule that will change the original port of any destination ip addres to 80. I know how to do it for a specific destination ip but I could not find the way to do it for any destination ip. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 95 -j DNAT --to 66.249.87.99:80 66.249.87.99 is the Google ip, but I need the rule to work for any ip. Something like: iptables -t nat -A PREROUTING -i eth0 -p tcp -d ANY --dport 95 -j DNAT --to ANY:80 I know that it is possible to do with checkpoint firewall but it is a little expensive...