From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henry Ritzlmayr Subject: Masquerading on local ports Date: 20 Mar 2003 15:03:34 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1048169013.1491.107.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org Hi everyone - this is my first post to this list - so if anything is wrong with my way of posting please tell. And here is the question. How is it possible to nat a lokal port? IPTABLES -t nat -A PREROUTING -p tcp -d 127.0.0.1 --destination-port 81 -j DNAT --to-destination 127.0.0.1:80 telnet localhost 80 <<< works telnet localhost 81 <<< Connection refused Henry