Skip to contentSkip to conversation

iptables ERROR

DISCUSSION Ritesh Majumdar 4 participants 5 messages Jun 25, 2009 netfilter

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

2009/6/25 Ritesh Majumdar <[email protected]>:

Quoted 6 lines

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)

Signature · 5 lines
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
#2 lore raw
In reply to Ritesh Majumdar

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,

Quoted 27 lines · Ritesh Majumdar

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

Quoted 8 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 7 lines · Ritesh Majumdar

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.

#4 lore raw
Quoted 10 lines · Jan Engelhardt
Quoted 5 lines · Ritesh Majumdar

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 : [email protected], [email protected] 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