All of lore.kernel.org
 help / color / mirror / Atom feed
* ipset can't load -N and -A separately
@ 2009-04-06  7:55 Badalian Vyacheslav
  2009-04-06  9:15 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 3+ messages in thread
From: Badalian Vyacheslav @ 2009-04-06  7:55 UTC (permalink / raw)
  To: netfilter-devel

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

Hello.

If i try generate restore file its can't load first all -N and then all
-A fileds.
If we do s/^/ipset / its normal load all rules.

Gzipped example file in attach.
Simple try to load it by `ipset --resore < `
I try ipset v2.5.0.

Thanks!

[-- Attachment #2: ipset_full_tmp.gz --]
[-- Type: application/gzip, Size: 76532 bytes --]

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

* Re: ipset can't load -N and -A separately
  2009-04-06  7:55 ipset can't load -N and -A separately Badalian Vyacheslav
@ 2009-04-06  9:15 ` Jozsef Kadlecsik
  2009-04-06 10:57   ` Badalian Vyacheslav
  0 siblings, 1 reply; 3+ messages in thread
From: Jozsef Kadlecsik @ 2009-04-06  9:15 UTC (permalink / raw)
  To: Badalian Vyacheslav; +Cc: netfilter-devel

On Mon, 6 Apr 2009, Badalian Vyacheslav wrote:

> If i try generate restore file its can't load first all -N and then all
> -A fileds.
> If we do s/^/ipset / its normal load all rules.

That's the normal and documented behaviour, see 'man ipset'. In a restore 
script you must create a set, add all its elements, then create the next 
set, add all of those elements and so on. 
 
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] 3+ messages in thread

* Re: ipset can't load -N and -A separately
  2009-04-06  9:15 ` Jozsef Kadlecsik
@ 2009-04-06 10:57   ` Badalian Vyacheslav
  0 siblings, 0 replies; 3+ messages in thread
From: Badalian Vyacheslav @ 2009-04-06 10:57 UTC (permalink / raw)
  To: Jozsef Kadlecsik; +Cc: netfilter-devel

Oh... Thanks!

> On Mon, 6 Apr 2009, Badalian Vyacheslav wrote:
>
>   
>> If i try generate restore file its can't load first all -N and then all
>> -A fileds.
>> If we do s/^/ipset / its normal load all rules.
>>     
>
> That's the normal and documented behaviour, see 'man ipset'. In a restore 
> script you must create a set, add all its elements, then create the next 
> set, add all of those elements and so on. 
>  
> 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] 3+ messages in thread

end of thread, other threads:[~2009-04-06 10:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06  7:55 ipset can't load -N and -A separately Badalian Vyacheslav
2009-04-06  9:15 ` Jozsef Kadlecsik
2009-04-06 10:57   ` Badalian Vyacheslav

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.