Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables v1.3.4: "--dport unknown argument"

Reply
Thread Tools Display Modes

iptables v1.3.4: "--dport unknown argument"

 
 
Dimitry
Guest
Posts: n/a

 
      01-23-2007, 06:37 AM
I have tried different ways of using iptables - from iptables manuals,
books etc.

For example:
# iptables -A INPUT -i eth0 -p udp --dport 41031 -j DROP

But I always have "--dport unknown argument".

What do I miss?

Thank you,

Dimitry

 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      01-23-2007, 10:16 AM

Dimitry wrote:
> I have tried different ways of using iptables - from iptables manuals,
> books etc.
>
> For example:
> # iptables -A INPUT -i eth0 -p udp --dport 41031 -j DROP
>
> But I always have "--dport unknown argument".
>
> What do I miss?


For reasons nobody seems to know, the '--port' abbreviation is only
valid for TCP. For UDP, you must use the full option name,
'--destination-port'.

DS

 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      01-23-2007, 07:50 PM
Dimitry wrote:
> # iptables -A INPUT -i eth0 -p udp --dport 41031 -j DROP
> But I always have "--dport unknown argument".


David Schwartz <(E-Mail Removed)> wrote:
> For reasons nobody seems to know, the '--port' abbreviation is only
> valid for TCP. For UDP, you must use the full option name,
> '--destination-port'.


If it's any consolation, it works here as expected, using version 1.3.6.
Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Local forwarding with "iptables" gives "invalid arguments" newsfuzzy@geekmail.de Linux Networking 0 07-19-2006 02:47 PM
Loaded Dell laptop with RH9, it says "eth0: unknown interface: No such device" GS Linux Networking 4 05-14-2006 04:01 PM
IPSEC tunnel fails with "pfkey UPDATE failed: Invalid argument" George Linux Networking 1 09-29-2005 02:40 PM
"iptables mark with filter fw" vs "u32 match" =?ISO-8859-2?Q?Pawe=B3?= Staszewski Linux Networking 3 03-05-2005 09:23 PM
iptables - "invalid argument" error ? martin02 Linux Networking 4 10-05-2003 08:47 PM



1 2 3 4 5 6 7 8 9 10 11