LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptables --comment not working (https://www.linuxquestions.org/questions/linux-networking-3/iptables-comment-not-working-500386/)

mfcarroll 11-10-2006 12:50 PM

iptables --comment not working
 
Hi

Code:

# iptables -A trust-out-ssh -d X.X.X.X -m comment --comment "COMMENT" -j ACCEPT
iptables: Unknown error 4294967295

Any ideas why I'm getting the error? Without the ' -m comment --comment "COMMENT" ' it's working just fine, but I'd like to be able to add comments to my rules.

This is debian testing.

Thanks
Matthew

b0uncer 11-10-2006 12:53 PM

Are you sure it's not --comment="COMMENT" instead of --comment "COMMENT" ?

Just a thought, haven't used comments myself..

mfcarroll 11-10-2006 12:57 PM

Thanks for the speedy reply b0uncer.

From the man page:

Code:

Example:
iptables -A INPUT -s 192.168.0.0/16 -m comment --comment "A privatized IP block"

...I tried it with --comment="COMMENT" and that gave the same error.

Anyone else have an idea?

Thanks
Matthew

mfcarroll 11-10-2006 02:25 PM

The --comment option works fine in Ubuntu, so I have filed a bug in Debian:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=397968

Matthew

amitsharma_26 11-11-2006 06:04 AM

mfcaroll,
Which iptables version are we talking about here ?


All times are GMT -5. The time now is 09:20 PM.