Hi everybody,

I am using Redhat 9.0

Assume my public IP :

What ever requests come to the 5905 port on this ip should go to Http port on the private ip(

For this I Did destanation natting like this:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A PREROUTING -p tcp -d --dport 5905 -j DNAT --to

But it is not working.(

Is this enough or I need to configure anything.
And is DNAT require any changing of kernel parameters.

Please help me where I am doing mistake.

Thanks Inadvance.