Re: iptables: can't set any ip address in rules

"Salim" <[email protected]>
Newsgroups gmane.network.nocat
Message-ID <00ab01c5b1e7$d33a9240$205f030a@askeyrd3>
I made some typing errors in the previous post, the corrected post is:

Hello all,
    I am not able to set any rule that contain ip address in the iptables.
For example I give this command

>iptables -t nat -A PREROUTING -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2

then, I issue the command >iptables -t nat -L.

the result is

Chain PREROUTING (policy ACCEPT)
target           DNAT
prot              all
opt                --
source          anywhere
destination    0.0.0.0   to:0.0.0.0


I gave the command with verbose
>iptables -v -t nat -A PREROUTING -d 1.1.1.1 -j DNAT --to-destination
2.2.2.2

it showed
DNAT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0 to:0.0.0.0


for any command which has an ipaddress, the ip address is always taken as
0.0.0.0

I am using Redhat Linux 2.4.25
iptables v1.3.3
MIPS embedded system.

I am confused. Any help will be greatly appreciated.

regards
Salim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.