From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin A. Brown" Date: Wed, 21 May 2003 14:51:10 +0000 Subject: Re: [LARTC] iptables port forward Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi there Tomas! : iptables -t nat -I PREROUTING 4 -i eth0 -d x -p tcp --dport 80 \ : -j DNAT --to y when/how do i specify port 7865? This should do the trick: iptables -t nat -I PREROUTING 4 -i eth0 -d $PUB_IP -p tcp --dport 80 \ -j DNAT --to-destination $PRIV_IP:7865 Check out Oskar Andreeason's tutorial on this very matter. http://iptables-tutorial.frozentux.net/iptables-tutorial.html#DNATTARGET Ciao for now, -Martin -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/