Re: DNAT not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 18 March 2004 8:49 pm, John A. Sullivan III wrote:

> On Thu, 2004-03-18 at 15:26, Stuart Lamble wrote:
> > Hello netfilter lists
> >
> > Can any one help me here. I have the following rule...
> >
> > iptables -t nat -A PREROUTING -i ppp0 -p tcp -d $FW-EXT-IP --dport 22
> > -j DNAT --to 192.168.100.6:22
>
> Perhaps you were just saving typing but isn't the correct syntax -j DNAT
> --to-destination 192.168.100.6:22

Both are valid.

The DNAT target takes --to-destination or --to as its argument; similarly the 
SNAT target happily takes --to-source or --to as its argument.

Regards,

Antony.

-- 
What makes you think I know what I'm talking about?
I just have more O'Reilly books than most people.

                                                     Please reply to the list;
                                                           please don't CC me.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux