[ILUG] netfilter Q
John Reilly
jr at inconspicuous.org
Tue Sep 14 17:16:08 IST 2004
On Tue, Sep 14, 2004 at 02:52:23PM +0100, P at draigBrady.com wrote:
> I want to forward all traffic directed to 172.18.2.35 to 192.168.111.2
> I thought one DNAT rule would do it, but apparently not :-(
>
> The rule I added was:
> iptables -t nat -A PREROUTING -d 172.18.2.35 -j DNAT --to 192.168.111.2
>
> Note also /proc/sys/net/ipv4/ip_forward is 1
That should do it, except afaik it should be --to-destination rather
than --to (unless --to is a shortened version?).
Cheers,
John
More information about the ILUG
mailing list