Mailinglist Archive: opensuse-security (757 mails)

< Previous Next >
Re: [suse-security] Re: Masquerading unter Kernel 2.4
  • From: Bjoern Engels <bengels@xxxxxxxxxxx>
  • Date: Wed, 9 Jan 2002 14:02:32 +0100
  • Message-id: <01c444407130912WEB@xxxxxxxxxxxxxxx>
On Wednesday, 9. January 2002 13:53, OKDesign oHG Security Administrator
wrote:

>> "iptables -t nat -A PREROUTING -i <ext_IF_of_firewall> -d
>> <ip_of_firewall> --dport <desired_port> -j DNAT --to-destination <ip_of
>> internal_machine>"


> Thank you for your hint, but the command-line you told doesn't work. The
> system keeps complaining (unknowg arg --dport). I also tried out the long
> version --destination-port with the same result. I looked at the manpage
> and found that iptables should know this argument, so there seems to be a
> syntax error.
> Anyone has an idea what is wrong and how the correct syntax is ?

The protocol is missing. No [TCP|UDP], no ports.

HTH

Bjoern

< Previous Next >
Follow Ups