netdev
[Top] [All Lists]

Re: iptables-problem

To: backslash46@xxxxxxxxx
Subject: Re: iptables-problem
From: Francois Romieu <romieu@xxxxxxxxxxxxx>
Date: Sat, 26 Mar 2005 20:13:45 +0100
Cc: netdev@xxxxxxxxxxx
In-reply-to: <43c5e5aa0503260930732eb697@xxxxxxxxxxxxxx>
References: <43c5e5aa0503260930732eb697@xxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
amir_sarbazi <amir.sarbazi@xxxxxxxxx> :
[...]
>  I used these iptables that SNAT didn't work(Bad
>  argument):
>  iptables -A PREROUTING -t nat -p tcp -d  217.218.68.20 --dport 80 \
>    -j SNAT --to 192.168.1.2:80 or(--to-source 192.168.1.3:80)

$ LANG=en_US man 8 iptables
[...]
   SNAT
       This target is only valid in the nat table, in the POSTROUTING chain.
                                                          ^^^^^^^^^^^
--
Ueimor

<Prev in Thread] Current Thread [Next in Thread>