Re: iptables problem

Arne Brodowski <[email protected]> Thu, 15 Feb 2007 07:54:35 +0100
Newsgroups gmane.linux.trustix.general
Message-ID <[email protected]>
Hi Willy,

the DNAT target is only valid in the nat table, have you added a "-t 
nat" at the beginning of the rule?
e.g. iptables -t nat -A PREROUTING <rest of the rule>

According to the man-page, please use "-j DNAT --to-destination 
192.168.0.30:80" instead of "-j DNAT --to 192.168.0.30:80".

Regards,
Arne

[email protected] wrote:
> hi,
> i am trying to do portforwarding using iptables with this rule: -s 0.0.0.0/0 -d 1.2.3.4/32 -i eth0 -p tcp --dport 8080 -j DNAT --to 192.168.0.30:80 and fail. Please help me and thanks for the reply.
> 
> Regards
> 
> 
> Willy
> _______________________________________________
> tsl-discuss mailing list
> [email protected]
> http://lists.trustix.org/mailman/listinfo/tsl-discuss