All of lore.kernel.org
 help / color / mirror / Atom feed
* IPSet target SET subnet options
@ 2015-06-27 14:43 WaaX
  2015-06-27 21:46 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 2+ messages in thread
From: WaaX @ 2015-06-27 14:43 UTC (permalink / raw)
  To: netfilter-devel

Hi,
I hve explored the manual of SETtarget:

      SET target options:
--add-set name flags [--exist] [--timeout n]
--del-set name flags
          add/del src/dst IP/port from/to named sets,
where flags are the comma separated list of
'src' and 'dst' specifications.

I can not find solution for add a subnet mask to a hash:net with the target.

Thanks for reading.


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

* Re: IPSet target SET subnet options
  2015-06-27 14:43 IPSet target SET subnet options WaaX
@ 2015-06-27 21:46 ` Jozsef Kadlecsik
  0 siblings, 0 replies; 2+ messages in thread
From: Jozsef Kadlecsik @ 2015-06-27 21:46 UTC (permalink / raw)
  To: WaaX; +Cc: netfilter-devel

On Sat, 27 Jun 2015, WaaX wrote:

> I hve explored the manual of SETtarget:
> 
>      SET target options:
> --add-set name flags [--exist] [--timeout n]
> --del-set name flags
>          add/del src/dst IP/port from/to named sets,
> where flags are the comma separated list of
> 'src' and 'dst' specifications.
> 
> I can not find solution for add a subnet mask to a hash:net with the target.

It is documented in the ipset manpage:

   hash:net
       ....

       When  adding/deleting IP addresses  to the set  by  the  SET  netfilter
       target,  it   will   be added/deleted by the most specific prefix which
       can be found in  the set, or by the host prefix value  if  the  set  is
       empty.

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] 2+ messages in thread

end of thread, other threads:[~2015-06-27 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-27 14:43 IPSet target SET subnet options WaaX
2015-06-27 21:46 ` 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.