7 Oct
2002
7 Oct
'02
15:29
On Mon, Oct 07, 2002 at 05:05:00PM +0200, Reckhard, Tobias wrote:
iptables -t nat -i $INCOMING_DEV -p $PROTO --dport 12345 -j DNAT --to $INTERN_HOST
That won't work, it's missing the chain (-[A|I] PREROUTING). Otherwise, I guess it's OK. You can DNAT to a specific target port as well, if you want, I believe.
right (both), forgot the Chain this morning (monday...), target port would be the following: --to-dest IP:port (just before someone ask ;) thanks for correction!