* iptables error
@ 2002-11-12 0:07 jelenkovic
0 siblings, 0 replies; 19+ 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] 19+ messages in thread
* IPTables error
@ 2004-01-15 0:08 Jerry Rasmussen
2004-01-15 0:17 ` Antony Stone
0 siblings, 1 reply; 19+ 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] 19+ 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; 19+ 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] 19+ messages in thread
* Iptables error
@ 2004-08-25 8:19 Paulo Andre
0 siblings, 0 replies; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ messages in thread
* Re: Iptables error
2006-01-20 19:32 ` Harald Welte
@ 2006-01-20 19:46 ` David S. Miller
2006-01-21 11:05 ` Harald Welte
0 siblings, 1 reply; 19+ messages in thread
From: David S. Miller @ 2006-01-20 19:46 UTC (permalink / raw)
To: laforge; +Cc: torvalds, bboissin, xslaby, akpm, linux-kernel
From: Harald Welte <laforge@netfilter.org>
Date: Fri, 20 Jan 2006 20:32:01 +0100
> The problem seems to have been accidentially introduced by DaveM's
> "simplification" of my original patch.
>
> I've already asked Dave to revert his change and apply my original
> patch (see attachment), which _should_ fix the problem.
Your struct won't be 8-byte aligned either as far as I
can tell on x86_64.
We need to use the aligned_u64 thing if you want that.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Iptables error
2006-01-20 18:13 ` Valdis.Kletnieks
@ 2006-01-20 19:52 ` David S. Miller
0 siblings, 0 replies; 19+ messages in thread
From: David S. Miller @ 2006-01-20 19:52 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: xslaby, akpm, linux-kernel, torvalds
From: Valdis.Kletnieks@vt.edu
Date: Fri, 20 Jan 2006 13:13:36 -0500
> Confirmed here. Backing out this one-liner makes iptables work for me.
> i686 on a Pentium-4, gcc 4.1.0 from Fedora -devel tree.
Ok this is on x86. I think I see how it breaks, but I thought
Harald's patch would have the same problem.
I just ran a test program, and indeed __alignof__() gives 8
for "long long" and 4 for a struct containing a "long long"
on x86. Yikes...
Linus is likely about to be on his way to the airport so I'll
push the fix in New Zealand.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Iptables error
2006-01-20 16:49 ` Linus Torvalds
2006-01-20 19:32 ` Harald Welte
@ 2006-01-20 20:02 ` David S. Miller
1 sibling, 0 replies; 19+ messages in thread
From: David S. Miller @ 2006-01-20 20:02 UTC (permalink / raw)
To: torvalds; +Cc: bboissin, laforge, xslaby, akpm, linux-kernel
From: Linus Torvalds <torvalds@osdl.org>
Date: Fri, 20 Jan 2006 11:49:46 -0500 (EST)
> Interestingly, __alignof__(unsigned long long) is 8 these days, even
> though I think historically on x86 it was 4. Is this perhaps different in
> gcc-3 and gcc-4?
>
> Or do I just remember wrong?
I think I remember the gcc folks talking about changing this
some time long in the past, aparently they did.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Iptables error
2006-01-20 19:46 ` Iptables error David S. Miller
@ 2006-01-21 11:05 ` Harald Welte
0 siblings, 0 replies; 19+ messages in thread
From: Harald Welte @ 2006-01-21 11:05 UTC (permalink / raw)
To: David S. Miller; +Cc: torvalds, bboissin, xslaby, akpm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]
On Fri, Jan 20, 2006 at 11:46:13AM -0800, David S. Miller wrote:
> Your struct won't be 8-byte aligned either as far as I can tell on
> x86_64.
According to my tests, the struct is 8-byte-aligned on x86_64, and
that's how I'd like it to be.
Please don't ask me why it happens, I know that the alignment constraint
of a u64 on x86_64 is only 4. But at least gcc-3.3.6 and gcc-4.0.3
(debian) result in __alignof__ of that test structure (and a 'u_int64_t
alone') to 8 bytes.
When it comes to these things, I can only do trial+error.
Maybe it's because __alignof__ returns the recommended alignment, not
the required alignment.
> We need to use the aligned_u64 thing if you want that.
That should make sure that we always get what we want, yes.
--
- Harald Welte <laforge@netfilter.org> http://netfilter.org/
============================================================================
"Fragmentation is like classful addressing -- an interesting early
architectural error that shows how much experimentation was going
on while IP was being designed." -- Paul Vixie
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* iptables error
@ 2008-08-30 13:00 Nishit Shah
2008-09-01 13:38 ` Patrick McHardy
0 siblings, 1 reply; 19+ messages in thread
From: Nishit Shah @ 2008-08-30 13:00 UTC (permalink / raw)
To: netfilter-devel
Hi,
I am using 2.6.16.13 kernel in smp configuration. Machine is working
as a gateway and frequent iptables commands are fired as users logged in and
logged out.
I got following error in between
[root@manage /root]# iptables -nvx -L INPUT
ERROR: 7 not a valid target)
Aborted (core dumped)
So, I tried to flush INPUT and got following
[root@manage /root]# iptables -F INPUT
iptables: Too many levels of symbolic links
following is a message I got in /var/log/messages
Aug 26 14:38:30 1219741710 kernel: iptables: loop hook 1 pos 0 00000022.
Rgds,
Nishit Shah.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: iptables error
2008-08-30 13:00 iptables error Nishit Shah
@ 2008-09-01 13:38 ` Patrick McHardy
2008-09-02 8:57 ` Nishit Shah
0 siblings, 1 reply; 19+ messages in thread
From: Patrick McHardy @ 2008-09-01 13:38 UTC (permalink / raw)
To: Nishit Shah; +Cc: netfilter-devel
Nishit Shah wrote:
> Hi,
> I am using 2.6.16.13 kernel in smp configuration. Machine is working
> as a gateway and frequent iptables commands are fired as users logged in and
> logged out.
>
> I got following error in between
>
> [root@manage /root]# iptables -nvx -L INPUT
> ERROR: 7 not a valid target)
> Aborted (core dumped)
>
> So, I tried to flush INPUT and got following
>
> [root@manage /root]# iptables -F INPUT
> iptables: Too many levels of symbolic links
>
> following is a message I got in /var/log/messages
>
> Aug 26 14:38:30 1219741710 kernel: iptables: loop hook 1 pos 0 00000022.
That kernel version has an iptables locking bug that might
lead to corruption. Latest 2.6.16 version has this fixed.
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: iptables error
2008-09-01 13:38 ` Patrick McHardy
@ 2008-09-02 8:57 ` Nishit Shah
0 siblings, 0 replies; 19+ messages in thread
From: Nishit Shah @ 2008-09-02 8:57 UTC (permalink / raw)
To: 'Patrick McHardy'; +Cc: netfilter-devel
Thanks :)
Rgds,
Nishit Shah.
-----Original Message-----
From: Patrick McHardy [mailto:kaber@trash.net]
Sent: Monday, September 01, 2008 7:08 PM
To: Nishit Shah
Cc: netfilter-devel@vger.kernel.org
Subject: Re: iptables error
Nishit Shah wrote:
> Hi,
> I am using 2.6.16.13 kernel in smp configuration. Machine is working
> as a gateway and frequent iptables commands are fired as users logged in
and
> logged out.
>
> I got following error in between
>
> [root@manage /root]# iptables -nvx -L INPUT
> ERROR: 7 not a valid target)
> Aborted (core dumped)
>
> So, I tried to flush INPUT and got following
>
> [root@manage /root]# iptables -F INPUT
> iptables: Too many levels of symbolic links
>
> following is a message I got in /var/log/messages
>
> Aug 26 14:38:30 1219741710 kernel: iptables: loop hook 1 pos 0 00000022.
That kernel version has an iptables locking bug that might
lead to corruption. Latest 2.6.16 version has this fixed.
^ permalink raw reply [flat|nested] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ messages in thread
* Re: iptables ERROR
@ 2009-06-25 13:39 ` Richard Horton
0 siblings, 0 replies; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ messages in thread
* Re: iptables ERROR
2009-06-25 15:11 ` Jan Engelhardt
@ 2009-06-25 18:08 ` Jozsef Kadlecsik
0 siblings, 0 replies; 19+ 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] 19+ messages in thread
end of thread, other threads:[~2009-06-25 18:08 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-25 12:56 iptables ERROR Ritesh Majumdar
2009-06-25 13:39 ` Richard Horton
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
-- strict thread matches above, loose matches on Subject: below --
2008-08-30 13:00 iptables error Nishit Shah
2008-09-01 13:38 ` Patrick McHardy
2008-09-02 8:57 ` Nishit Shah
2006-01-20 16:36 Iptables error [Was: 2.6.16-rc1-mm2] Harald Welte
2006-01-20 16:43 ` Benoit Boissinot
2006-01-20 16:49 ` Linus Torvalds
2006-01-20 19:32 ` Harald Welte
2006-01-20 19:46 ` Iptables error David S. Miller
2006-01-21 11:05 ` Harald Welte
2006-01-20 20:02 ` David S. Miller
2006-01-20 16:23 Iptables error [Was: 2.6.16-rc1-mm2] Jiri Slaby
2006-01-20 18:13 ` Valdis.Kletnieks
2006-01-20 19:52 ` Iptables error David S. Miller
2004-08-25 12:56 Jason Opperisano
2004-08-25 19:25 ` Jose Maria Lopez
2004-08-25 8:19 Paulo Andre
2004-01-15 0:08 IPTables error Jerry Rasmussen
2004-01-15 0:17 ` Antony Stone
2002-11-12 0:07 iptables error jelenkovic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.