All of lore.kernel.org
 help / color / mirror / Atom feed
* ipset v6.25.1 does not recognize 'counters' as option
@ 2015-08-21  8:08 Soroosh Sardari
  2015-08-21  9:22 ` Anton Danilov
  0 siblings, 1 reply; 6+ messages in thread
From: Soroosh Sardari @ 2015-08-21  8:08 UTC (permalink / raw)
  To: netfilter

Hi

I'm using ipset v6.25.1 in ubuntu 12.04

uname -a
Linux soroosh 3.2.0-72-generic-pae #107-Ubuntu SMP Thu Nov 6 14:44:10
UTC 2014 i686 i686 i386 GNU/Linux

ipset -V
ipset v6.25.1, protocol version: 6

I compiled the ipset source code as following:
./autogen.sh
./configure
make
make modules
make install
make modules_install

Unfortunately i get this error:
ipset create foo hash:ip timeout 0 counters
ipset v6.25.1: Unknown argument: `counters'
Try `ipset help' for more information.

Any help appreciated

Regards,
Soroosh Sardari

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

* Re: ipset v6.25.1 does not recognize 'counters' as option
  2015-08-21  8:08 ipset v6.25.1 does not recognize 'counters' as option Soroosh Sardari
@ 2015-08-21  9:22 ` Anton Danilov
  2015-08-21  9:57   ` Soroosh Sardari
  0 siblings, 1 reply; 6+ messages in thread
From: Anton Danilov @ 2015-08-21  9:22 UTC (permalink / raw)
  To: Soroosh Sardari; +Cc: netfilter

Hello.
You should be sure of using of right version kernel modules.
Check output of 'ipset help'. May be you still using of old version
kernel modules.

2015-08-21 11:08 GMT+03:00 Soroosh Sardari <soroosh.sardari@gmail.com>:
> Hi
>
> I'm using ipset v6.25.1 in ubuntu 12.04
>
> uname -a
> Linux soroosh 3.2.0-72-generic-pae #107-Ubuntu SMP Thu Nov 6 14:44:10
> UTC 2014 i686 i686 i386 GNU/Linux
>
> ipset -V
> ipset v6.25.1, protocol version: 6
>
> I compiled the ipset source code as following:
> ./autogen.sh
> ./configure
> make
> make modules
> make install
> make modules_install
>
> Unfortunately i get this error:
> ipset create foo hash:ip timeout 0 counters
> ipset v6.25.1: Unknown argument: `counters'
> Try `ipset help' for more information.
>
> Any help appreciated
>
> Regards,
> Soroosh Sardari
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Anton.

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

* Re: ipset v6.25.1 does not recognize 'counters' as option
  2015-08-21  9:22 ` Anton Danilov
@ 2015-08-21  9:57   ` Soroosh Sardari
  2015-08-21 18:01     ` Jozsef Kadlecsik
  0 siblings, 1 reply; 6+ messages in thread
From: Soroosh Sardari @ 2015-08-21  9:57 UTC (permalink / raw)
  To: Anton Danilov; +Cc: netfilter

Thanks, this is the output of ipset help | counters:

    list:set 1 counters support
    hash:net,iface 3 counters support
    hash:net,port 4 counters support
    hash:net 3 counters support
    hash:ip,port,net 4 counters support
    hash:ip,port,ip 2 counters support
    hash:ip,port 2 counters support
    hash:ip 1 counters support
    bitmap:port 1 counters support
    bitmap:ip,mac 1 counters support
    bitmap:ip 1 counters suppor

Seems I'm using the new kernel modules. Is there any make option to
enable counters in ipset user space tool?!

On Fri, Aug 21, 2015 at 1:52 PM, Anton Danilov
<littlesmilingcloud@gmail.com> wrote:
> Hello.
> You should be sure of using of right version kernel modules.
> Check output of 'ipset help'. May be you still using of old version
> kernel modules.
>
> 2015-08-21 11:08 GMT+03:00 Soroosh Sardari <soroosh.sardari@gmail.com>:
>> Hi
>>
>> I'm using ipset v6.25.1 in ubuntu 12.04
>>
>> uname -a
>> Linux soroosh 3.2.0-72-generic-pae #107-Ubuntu SMP Thu Nov 6 14:44:10
>> UTC 2014 i686 i686 i386 GNU/Linux
>>
>> ipset -V
>> ipset v6.25.1, protocol version: 6
>>
>> I compiled the ipset source code as following:
>> ./autogen.sh
>> ./configure
>> make
>> make modules
>> make install
>> make modules_install
>>
>> Unfortunately i get this error:
>> ipset create foo hash:ip timeout 0 counters
>> ipset v6.25.1: Unknown argument: `counters'
>> Try `ipset help' for more information.
>>
>> Any help appreciated
>>
>> Regards,
>> Soroosh Sardari
>> --
>> To unsubscribe from this list: send the line "unsubscribe netfilter" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
> --
> Anton.

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

* Re: ipset v6.25.1 does not recognize 'counters' as option
  2015-08-21  9:57   ` Soroosh Sardari
@ 2015-08-21 18:01     ` Jozsef Kadlecsik
  2015-08-22  4:53       ` Soroosh Sardari
  0 siblings, 1 reply; 6+ messages in thread
From: Jozsef Kadlecsik @ 2015-08-21 18:01 UTC (permalink / raw)
  To: Soroosh Sardari; +Cc: Anton Danilov, netfilter

On Fri, 21 Aug 2015, Soroosh Sardari wrote:

> Thanks, this is the output of ipset help | counters:
> 
>     list:set 1 counters support
>     hash:net,iface 3 counters support
>     hash:net,port 4 counters support
>     hash:net 3 counters support
>     hash:ip,port,net 4 counters support
>     hash:ip,port,ip 2 counters support
>     hash:ip,port 2 counters support
>     hash:ip 1 counters support
>     bitmap:port 1 counters support
>     bitmap:ip,mac 1 counters support
>     bitmap:ip 1 counters suppor
> 
> Seems I'm using the new kernel modules. Is there any make option to
> enable counters in ipset user space tool?!

No, the output above means that the ipset userspace utility supports the 
counters. Your kernel still may use the old ip_set* modules, without 
counters support. You can check it out by "modinfo ip_set_hash_net": it 
should support revision 3 too.

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
          H-1525 Budapest 114, POB. 49, Hungary

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

* Re: ipset v6.25.1 does not recognize 'counters' as option
  2015-08-21 18:01     ` Jozsef Kadlecsik
@ 2015-08-22  4:53       ` Soroosh Sardari
  2015-08-22 18:05         ` Jozsef Kadlecsik
  0 siblings, 1 reply; 6+ messages in thread
From: Soroosh Sardari @ 2015-08-22  4:53 UTC (permalink / raw)
  To: Jozsef Kadlecsik; +Cc: Anton Danilov, netfilter

On Fri, Aug 21, 2015 at 10:31 PM, Jozsef Kadlecsik
<kadlec@blackhole.kfki.hu> wrote:
> On Fri, 21 Aug 2015, Soroosh Sardari wrote:
>
>> Thanks, this is the output of ipset help | counters:
>>
>>     list:set 1 counters support
>>     hash:net,iface 3 counters support
>>     hash:net,port 4 counters support
>>     hash:net 3 counters support
>>     hash:ip,port,net 4 counters support
>>     hash:ip,port,ip 2 counters support
>>     hash:ip,port 2 counters support
>>     hash:ip 1 counters support
>>     bitmap:port 1 counters support
>>     bitmap:ip,mac 1 counters support
>>     bitmap:ip 1 counters suppor
>>
>> Seems I'm using the new kernel modules. Is there any make option to
>> enable counters in ipset user space tool?!
>
> No, the output above means that the ipset userspace utility supports the
> counters. Your kernel still may use the old ip_set* modules, without
> counters support. You can check it out by "modinfo ip_set_hash_net": it
> should support revision 3 too.
>
> Best regards,
> Jozsef
> -
> E-mail  : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
> PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
> Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
>           H-1525 Budapest 114, POB. 49, Hungary

modinfo ip_set_hash_net
filename:
/lib/modules/3.2.0-4-amd64/extra/netfilter/ipset/ip_set_hash_net.ko
alias:          ip_set_hash:net
description:    hash:net type of IP sets, revisions 0-6
author:         Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
license:        GPL
depends:        ip_set,ip_set
vermagic:       3.2.0-4-amd64 SMP mod_unload modversions

This is the ko file that i just compiled from latest source codes.

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

* Re: ipset v6.25.1 does not recognize 'counters' as option
  2015-08-22  4:53       ` Soroosh Sardari
@ 2015-08-22 18:05         ` Jozsef Kadlecsik
  0 siblings, 0 replies; 6+ messages in thread
From: Jozsef Kadlecsik @ 2015-08-22 18:05 UTC (permalink / raw)
  To: Soroosh Sardari; +Cc: Anton Danilov, netfilter

On Sat, 22 Aug 2015, Soroosh Sardari wrote:

> On Fri, Aug 21, 2015 at 10:31 PM, Jozsef Kadlecsik
> <kadlec@blackhole.kfki.hu> wrote:
> > On Fri, 21 Aug 2015, Soroosh Sardari wrote:
> >
> >> Thanks, this is the output of ipset help | counters:
> >>
> >>     list:set 1 counters support
> >>     hash:net,iface 3 counters support
> >>     hash:net,port 4 counters support
> >>     hash:net 3 counters support
> >>     hash:ip,port,net 4 counters support
> >>     hash:ip,port,ip 2 counters support
> >>     hash:ip,port 2 counters support
> >>     hash:ip 1 counters support
> >>     bitmap:port 1 counters support
> >>     bitmap:ip,mac 1 counters support
> >>     bitmap:ip 1 counters suppor
> >>
> >> Seems I'm using the new kernel modules. Is there any make option to
> >> enable counters in ipset user space tool?!
> >
> > No, the output above means that the ipset userspace utility supports the
> > counters. Your kernel still may use the old ip_set* modules, without
> > counters support. You can check it out by "modinfo ip_set_hash_net": it
> > should support revision 3 too.
> >
> > Best regards,
> > Jozsef
> > -
> > E-mail  : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
> > PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
> > Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
> >           H-1525 Budapest 114, POB. 49, Hungary
> 
> modinfo ip_set_hash_net
> filename:
> /lib/modules/3.2.0-4-amd64/extra/netfilter/ipset/ip_set_hash_net.ko
> alias:          ip_set_hash:net
> description:    hash:net type of IP sets, revisions 0-6
> author:         Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
> license:        GPL
> depends:        ip_set,ip_set
> vermagic:       3.2.0-4-amd64 SMP mod_unload modversions
> 
> This is the ko file that i just compiled from latest source codes.

Then you have got the original ip_set* modules loaded in. rmmod the old 
modules so that the new one could be loaded in by the system.

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
          H-1525 Budapest 114, POB. 49, Hungary

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

end of thread, other threads:[~2015-08-22 18:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-21  8:08 ipset v6.25.1 does not recognize 'counters' as option Soroosh Sardari
2015-08-21  9:22 ` Anton Danilov
2015-08-21  9:57   ` Soroosh Sardari
2015-08-21 18:01     ` Jozsef Kadlecsik
2015-08-22  4:53       ` Soroosh Sardari
2015-08-22 18:05         ` Jozsef Kadlecsik

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.