LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2006, 12:50 PM   #1
mfcarroll
LQ Newbie
 
Registered: Mar 2004
Location: Vancouver, Canada
Distribution: debian testing / ubuntu
Posts: 11

Rep: Reputation: 0
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
 
Old 11-10-2006, 12:53 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Are you sure it's not --comment="COMMENT" instead of --comment "COMMENT" ?

Just a thought, haven't used comments myself..
 
Old 11-10-2006, 12:57 PM   #3
mfcarroll
LQ Newbie
 
Registered: Mar 2004
Location: Vancouver, Canada
Distribution: debian testing / ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 11-10-2006, 02:25 PM   #4
mfcarroll
LQ Newbie
 
Registered: Mar 2004
Location: Vancouver, Canada
Distribution: debian testing / ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 11-11-2006, 06:04 AM   #5
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
mfcaroll,
Which iptables version are we talking about here ?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
working with iptables shahz Linux - Security 14 06-28-2008 06:52 PM
Iptables is not working under RH 3.0 aronnok Linux - Security 3 12-25-2004 05:40 PM
iptables not working ashfaq Linux - Software 1 03-24-2004 05:02 AM
Iptables not working? powerchord81 Linux - Networking 22 10-31-2003 09:18 AM
IPtables: almost working but... psychoholic Linux - Networking 4 09-11-2003 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration