From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Zemella Subject: Re: Port forwarding doesn't work. Date: Mon, 13 Oct 2003 09:13:17 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1066029196.4010.1.camel@Marvin> References: <200310121411.00898.Herman@AerospaceSoftware.com> <1065994862.3562.10.camel@Marvin> <200310121604.06545.Herman@AerospaceSoftware.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-wcWR9vdvKkli7Lxdegsq" Return-path: In-Reply-To: <200310121604.06545.Herman@AerospaceSoftware.com> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: Herman@AerospaceSoftware.com Cc: netfilter@lists.netfilter.org --=-wcWR9vdvKkli7Lxdegsq Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi Herman, Am Mon, den 13.10.2003 schrieb Herman um 00:04: > Well, here goes: > iptables -t nat -I PREROUTING -d 192.168.10.100 -j DNAT --to 192.168.10.245 did you wrote this --to? you must write --to-destination! > iptables: Target problem > > At least, now the error message changed and the only difference from before is > the -I instead of -A. > > So, with -A, I get Invalid Argument, and with -I, I get Target Problem. Both > cases don't work and the rule doesn't get added. > > Can anybody give me a clue? > > Cheers, --=-wcWR9vdvKkli7Lxdegsq Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi Herman,

Am Mon, den 13.10.2003 schrieb Herman um 00:04:
Well, here goes:
iptables -t nat -I PREROUTING  -d 192.168.10.100 -j DNAT --to 192.168.10.245
did you wrote this --to? you must write --to-destination!

iptables: Target problem

At least, now the error message changed and the only difference from before is 
the -I instead of -A.

So, with -A, I get Invalid Argument, and with -I, I get Target Problem.  Both 
cases don't work and the rule doesn't get added.

Can anybody give me a clue?

Cheers,
--=-wcWR9vdvKkli7Lxdegsq--