Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables error
@ 2002-11-12  0:07 jelenkovic
  0 siblings, 0 replies; 11+ messages in thread
From: jelenkovic @ 2002-11-12  0:07 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]

ok i'm having problems with the new iptables and 1.4.19 kernel.
here is the log error:
Nov 11 04:55:29 BAKER kernel: ASSERT ip_conntrack_core.c:1063 &ip_conntrack_lock not readlocked
Nov 11 04:55:29 BAKER kernel: ASSERT: ip_nat_core.c:839 &ip_conntrack_lock not readlocked

and then this is what happens later at some point:
Nov 11 20:57:58 BAKER kernel: IPTABLES Dead Input: IN=eth0 OUT= MAC=00:50:04:55:d1:a4:00:02:4b:13:33:60:08:00 SRC=213.250.59.123 DST=************ LEN=48 TOS=0x00 PREC=0x00 TTL=125 ID=19471 DF PROTO=TCP SPT=4682 DPT=10 WINDOW=16384 RES=0x00 SYN URGP=0 

notice that the destination port is 10.it shows that for all ports i think?
this was logged when i tried to use the web server.
so it should have recognized port 80 and not logged anything.
I've seen other ppl having the same problem (searched google) but no one knows what the problem might be.

any ideas?

[-- Attachment #2: Type: text/html, Size: 1767 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* IPTables error
@ 2004-01-15  0:08 Jerry Rasmussen
  2004-01-15  0:17 ` Antony Stone
  0 siblings, 1 reply; 11+ messages in thread
From: Jerry Rasmussen @ 2004-01-15  0:08 UTC (permalink / raw)
  To: netfilter

When I try to add a command with eth1:1 get this error 'iptables -t nat
-A PREROUTING -p tcp -i $ex_dev -d 216.27.xxx.xx --dport 3389 -j DNAT
--to 192.168.xx.xxx
Warning: wierd character in interface `eth1:1' (No aliases, :, ! or *)."

I have done a good bit of Googleing I am sure there is an easy answer
that I am missing any help would be apperciated.  I need to have more
than 1 ip address on eth1

Thanks
Jerry


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: IPTables error
  2004-01-15  0:08 IPTables error Jerry Rasmussen
@ 2004-01-15  0:17 ` Antony Stone
  0 siblings, 0 replies; 11+ messages in thread
From: Antony Stone @ 2004-01-15  0:17 UTC (permalink / raw)
  To: netfilter

On Thursday 15 January 2004 12:08 am, Jerry Rasmussen wrote:

> When I try to add a command with eth1:1 get this error 'iptables -t nat
> -A PREROUTING -p tcp -i $ex_dev -d 216.27.xxx.xx --dport 3389 -j DNAT
> --to 192.168.xx.xxx
> Warning: wierd character in interface `eth1:1' (No aliases, :, ! or *)."
>
> I have done a good bit of Googleing I am sure there is an easy answer
> that I am missing

You are correct.   The easy answer is: "leave out the :1 on the interface 
name".

Multiple IPs are still bound to one real interface (this is more obvious if 
you use the recommended ip addr command instead of ifconfig eth1:1), and your 
netfilter rules should simply refer to the real interface which the packets 
come in on.

Antony

-- 
This email was created using 100% recycled electrons.

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Iptables error
@ 2004-08-25  8:19 Paulo Andre
  0 siblings, 0 replies; 11+ messages in thread
From: Paulo Andre @ 2004-08-25  8:19 UTC (permalink / raw)
  To: netfilter

This morning I rebooted one of our firewalls, I have created a new kernel for 
it (2.4.20, patched kernel with latest p-o-m ng). 
When I run my firewall script, all I get is errors, seems to be a problem with 
iptables 'tables' as none of the rules are create but the default policies 
are in place, in dmesg I have the following error:

ip_tables: table screwed up!

This firewall is a production server and I can only really take it down 
tonight to check it, anyone had something like this before?

Paulo



^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Iptables error
@ 2004-08-25 12:56 Jason Opperisano
  2004-08-25 19:25 ` Jose Maria Lopez
  0 siblings, 1 reply; 11+ messages in thread
From: Jason Opperisano @ 2004-08-25 12:56 UTC (permalink / raw)
  To: netfilter

> This morning I rebooted one of our firewalls, I have created a new kernel for
> it (2.4.20, patched kernel with latest p-o-m ng).
> When I run my firewall script, all I get is errors, seems to be a problem with
> iptables 'tables' as none of the rules are create but the default policies
> are in place, in dmesg I have the following error:
>
> ip_tables: table screwed up!
>
> This firewall is a production server and I can only really take it down
> tonight to check it, anyone had something like this before?
>
> Paulo

sounds to me like you applied p-o-m, rebuilt your kernel, but did not rebuild your userspace.  anytime you apply a patch from pom that changes structures, or requires additional libraries, you need to recompile your userspace iptables utilities.  since it's unclear to me when the userspace rebuild is required--i do it everytime.  sounds like it was in this case for you...

-j




^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Iptables error
  2004-08-25 12:56 Jason Opperisano
@ 2004-08-25 19:25 ` Jose Maria Lopez
  0 siblings, 0 replies; 11+ messages in thread
From: Jose Maria Lopez @ 2004-08-25 19:25 UTC (permalink / raw)
  To: netfilter@lists.netfilter.org

El mié, 25 de 08 de 2004 a las 14:56, Jason Opperisano escribió:
> > This morning I rebooted one of our firewalls, I have created a new kernel for
> > it (2.4.20, patched kernel with latest p-o-m ng).
> > When I run my firewall script, all I get is errors, seems to be a problem with
> > iptables 'tables' as none of the rules are create but the default policies
> > are in place, in dmesg I have the following error:
> >
> > ip_tables: table screwed up!
> >
> > This firewall is a production server and I can only really take it down
> > tonight to check it, anyone had something like this before?
> >
> > Paulo
> 
> sounds to me like you applied p-o-m, rebuilt your kernel, but did not rebuild your userspace.  anytime you apply a patch from pom that changes structures, or requires additional libraries, you need to recompile your userspace iptables utilities.  since it's unclear to me when the userspace rebuild is required--i do it everytime.  sounds like it was in this case for you...
> 
> -j
> 

I also agree the problem could be that you have not recompiled the
userspace utils, but it's strage, because I think p-o-m use to ask
for the iptables sources to be executed. Maybe you have a too old
version of iptables or maybe the p-o-m ng it's too new for your
quite old (2.4.20) kernel. Why don't updating the iptables to the
last version and also the kernel to 2.4.27 so you have to recompile
both of them?

-- 
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"



^ permalink raw reply	[flat|nested] 11+ messages in thread

* iptables ERROR
@ 2009-06-25 12:56 Ritesh Majumdar
  2009-06-25 13:39 ` Richard Horton
  2009-06-25 14:00 ` Ritesh Majumdar
  0 siblings, 2 replies; 11+ messages in thread
From: Ritesh Majumdar @ 2009-06-25 12:56 UTC (permalink / raw)
  To: netfilter, netfilter-devel

Hello List,

I have recently added ipset code in to my kernel, so all the ipset
ralated ko's can be compiled while I compile kernel.
my compilation works fine and I can add ipset rules successfully.
but when I add iptables rules to macth specific set I get error.

Here is what I am trying to do.



ipset -N a_ipset iphash 
iptables -N a 
iptables -N b 
iptables -A a -p udp -m set --set a_ipset dst -j b 





when I try to add the last rule,(iptables -A a -p udp -m set --set
a_ipset dst -j b)  it fails with the error as below.

iptables: Invalid argument



I am not sure if its ipset issue or iptables.

I am using "kernel 2.6.27" "ipset-2.4.9" and "iptables-1.4.1.91"


Many Thanks.
Ritesh.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: iptables ERROR
  2009-06-25 12:56 iptables ERROR Ritesh Majumdar
@ 2009-06-25 13:39 ` Richard Horton
  2009-06-25 14:00 ` Ritesh Majumdar
  1 sibling, 0 replies; 11+ messages in thread
From: Richard Horton @ 2009-06-25 13:39 UTC (permalink / raw)
  Cc: netfilter, netfilter-devel

2009/6/25 Ritesh Majumdar <r.majumdar@globallogic.com>:
>
> ipset -N a_ipset iphash
> iptables -N a
> iptables -N b
> iptables -A a -p udp -m set --set a_ipset dst -j b
>

Isn't it meant to be:-
iptables -A a -p udp -m set --set a_ipset,dst -j b

(note the insertion of a comma)
-- 
Richard Horton
Users are like a virus: Each causing a thousand tiny crises until the
host finally dies.
http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats
http://www.pbase.com/arimus - My online photogallery

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: iptables ERROR
  2009-06-25 12:56 iptables ERROR Ritesh Majumdar
  2009-06-25 13:39 ` Richard Horton
@ 2009-06-25 14:00 ` Ritesh Majumdar
  2009-06-25 15:11   ` Jan Engelhardt
  1 sibling, 1 reply; 11+ messages in thread
From: Ritesh Majumdar @ 2009-06-25 14:00 UTC (permalink / raw)
  To: netfilter; +Cc: netfilter-devel

Hello,

As per my earlier mail.

Here is error I get on my /var/log/messages.

kernel: ip_tables: set match: invalid size 96 != 32



Thanks,




On Thu, 2009-06-25 at 18:26 +0530, Ritesh Majumdar wrote:
> Hello List,
> 
> I have recently added ipset code in to my kernel, so all the ipset
> ralated ko's can be compiled while I compile kernel.
> my compilation works fine and I can add ipset rules successfully.
> but when I add iptables rules to macth specific set I get error.
> 
> Here is what I am trying to do.
> 
> 
> 
> ipset -N a_ipset iphash 
> iptables -N a 
> iptables -N b 
> iptables -A a -p udp -m set --set a_ipset dst -j b 
> 
> 
> 
> 
> 
> when I try to add the last rule,(iptables -A a -p udp -m set --set
> a_ipset dst -j b)  it fails with the error as below.
> 
> iptables: Invalid argument
> 
> 
> 
> I am not sure if its ipset issue or iptables.
> 
> I am using "kernel 2.6.27" "ipset-2.4.9" and "iptables-1.4.1.91"
> 
> 
> Many Thanks.
> Ritesh.
> 
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: iptables ERROR
  2009-06-25 14:00 ` Ritesh Majumdar
@ 2009-06-25 15:11   ` Jan Engelhardt
  2009-06-25 18:08     ` Jozsef Kadlecsik
  0 siblings, 1 reply; 11+ messages in thread
From: Jan Engelhardt @ 2009-06-25 15:11 UTC (permalink / raw)
  To: Ritesh Majumdar; +Cc: netfilter, netfilter-devel


On Thursday 2009-06-25 16:00, Ritesh Majumdar wrote:

>Hello,
>
>As per my earlier mail.
>
>Here is error I get on my /var/log/messages.
>
>kernel: ip_tables: set match: invalid size 96 != 32

This could be related to http://markmail.org/message/dijxb6i6325t6hge
So be sure to use ipset 3.0 (it's out now) with iptables 1.4.4.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: iptables ERROR
  2009-06-25 15:11   ` Jan Engelhardt
@ 2009-06-25 18:08     ` Jozsef Kadlecsik
  0 siblings, 0 replies; 11+ messages in thread
From: Jozsef Kadlecsik @ 2009-06-25 18:08 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Ritesh Majumdar, netfilter, netfilter-devel

On Thu, 25 Jun 2009, Jan Engelhardt wrote:

> On Thursday 2009-06-25 16:00, Ritesh Majumdar wrote:
> 
> >As per my earlier mail.
> >
> >Here is error I get on my /var/log/messages.
> >
> >kernel: ip_tables: set match: invalid size 96 != 32
> 
> This could be related to http://markmail.org/message/dijxb6i6325t6hge
> So be sure to use ipset 3.0 (it's out now) with iptables 1.4.4.

Yes, exactly: with ipset 3.0 you need iptables 1.4.4.

I'm sorry for breaking backward compatibility.

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlec@mail.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-06-25 18:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-12  0:07 iptables error jelenkovic
  -- strict thread matches above, loose matches on Subject: below --
2004-01-15  0:08 IPTables error Jerry Rasmussen
2004-01-15  0:17 ` Antony Stone
2004-08-25  8:19 Iptables error Paulo Andre
2004-08-25 12:56 Jason Opperisano
2004-08-25 19:25 ` Jose Maria Lopez
2009-06-25 12:56 iptables ERROR Ritesh Majumdar
2009-06-25 13:39 ` Richard Horton
2009-06-25 14:00 ` Ritesh Majumdar
2009-06-25 15:11   ` Jan Engelhardt
2009-06-25 18:08     ` Jozsef Kadlecsik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox