xref: /linux-6.15/net/netfilter/ipset/Kconfig (revision 6a7a2c18)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2a7b4f989SJozsef Kadlecsikmenuconfig IP_SET
3a7b4f989SJozsef Kadlecsik	tristate "IP set support"
4a7b4f989SJozsef Kadlecsik	depends on INET && NETFILTER
5d9628bbeSJozsef Kadlecsik	select NETFILTER_NETLINK
6a7b4f989SJozsef Kadlecsik	help
7a7b4f989SJozsef Kadlecsik	  This option adds IP set support to the kernel.
8a7b4f989SJozsef Kadlecsik	  In order to define and use the sets, you need the userspace utility
9a7b4f989SJozsef Kadlecsik	  ipset(8). You can use the sets in netfilter via the "set" match
10a7b4f989SJozsef Kadlecsik	  and "SET" target.
11a7b4f989SJozsef Kadlecsik
12a7b4f989SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
13a7b4f989SJozsef Kadlecsik
14a7b4f989SJozsef Kadlecsikif IP_SET
15a7b4f989SJozsef Kadlecsik
16a7b4f989SJozsef Kadlecsikconfig IP_SET_MAX
17a7b4f989SJozsef Kadlecsik	int "Maximum number of IP sets"
18a7b4f989SJozsef Kadlecsik	default 256
19a7b4f989SJozsef Kadlecsik	range 2 65534
20a7b4f989SJozsef Kadlecsik	depends on IP_SET
21a7b4f989SJozsef Kadlecsik	help
22a7b4f989SJozsef Kadlecsik	  You can define here default value of the maximum number
23a7b4f989SJozsef Kadlecsik	  of IP sets for the kernel.
24a7b4f989SJozsef Kadlecsik
255065a706SMasanari Iida	  The value can be overridden by the 'max_sets' module
26a7b4f989SJozsef Kadlecsik	  parameter of the 'ip_set' module.
27a7b4f989SJozsef Kadlecsik
2872205fc6SJozsef Kadlecsikconfig IP_SET_BITMAP_IP
2972205fc6SJozsef Kadlecsik	tristate "bitmap:ip set support"
3072205fc6SJozsef Kadlecsik	depends on IP_SET
3172205fc6SJozsef Kadlecsik	help
3272205fc6SJozsef Kadlecsik	  This option adds the bitmap:ip set type support, by which one
33*6a7a2c18SRandy Dunlap	  can store IPv4 addresses (or network addresses) from a range.
3472205fc6SJozsef Kadlecsik
3572205fc6SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
3672205fc6SJozsef Kadlecsik
37de76021aSJozsef Kadlecsikconfig IP_SET_BITMAP_IPMAC
38de76021aSJozsef Kadlecsik	tristate "bitmap:ip,mac set support"
39de76021aSJozsef Kadlecsik	depends on IP_SET
40de76021aSJozsef Kadlecsik	help
41de76021aSJozsef Kadlecsik	  This option adds the bitmap:ip,mac set type support, by which one
42de76021aSJozsef Kadlecsik	  can store IPv4 address and (source) MAC address pairs from a range.
43de76021aSJozsef Kadlecsik
44de76021aSJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
45de76021aSJozsef Kadlecsik
4654326190SJozsef Kadlecsikconfig IP_SET_BITMAP_PORT
4754326190SJozsef Kadlecsik	tristate "bitmap:port set support"
4854326190SJozsef Kadlecsik	depends on IP_SET
4954326190SJozsef Kadlecsik	help
5054326190SJozsef Kadlecsik	  This option adds the bitmap:port set type support, by which one
5154326190SJozsef Kadlecsik	  can store TCP/UDP port numbers from a range.
5254326190SJozsef Kadlecsik
5354326190SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
5454326190SJozsef Kadlecsik
556c027889SJozsef Kadlecsikconfig IP_SET_HASH_IP
566c027889SJozsef Kadlecsik	tristate "hash:ip set support"
576c027889SJozsef Kadlecsik	depends on IP_SET
586c027889SJozsef Kadlecsik	help
596c027889SJozsef Kadlecsik	  This option adds the hash:ip set type support, by which one
606c027889SJozsef Kadlecsik	  can store arbitrary IPv4 or IPv6 addresses (or network addresses)
616c027889SJozsef Kadlecsik	  in a set.
626c027889SJozsef Kadlecsik
636c027889SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
646c027889SJozsef Kadlecsik
653b02b56cSVytas Dauksaconfig IP_SET_HASH_IPMARK
663b02b56cSVytas Dauksa	tristate "hash:ip,mark set support"
673b02b56cSVytas Dauksa	depends on IP_SET
683b02b56cSVytas Dauksa	help
693b02b56cSVytas Dauksa	  This option adds the hash:ip,mark set type support, by which one
703b02b56cSVytas Dauksa	  can store IPv4/IPv6 address and mark pairs.
713b02b56cSVytas Dauksa
723b02b56cSVytas Dauksa	  To compile it as a module, choose M here.  If unsure, say N.
733b02b56cSVytas Dauksa
7407896ed3SJozsef Kadlecsikconfig IP_SET_HASH_IPPORT
7507896ed3SJozsef Kadlecsik	tristate "hash:ip,port set support"
7607896ed3SJozsef Kadlecsik	depends on IP_SET
7707896ed3SJozsef Kadlecsik	help
7807896ed3SJozsef Kadlecsik	  This option adds the hash:ip,port set type support, by which one
7907896ed3SJozsef Kadlecsik	  can store IPv4/IPv6 address and protocol/port pairs.
8007896ed3SJozsef Kadlecsik
8107896ed3SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
8207896ed3SJozsef Kadlecsik
835663bc30SJozsef Kadlecsikconfig IP_SET_HASH_IPPORTIP
845663bc30SJozsef Kadlecsik	tristate "hash:ip,port,ip set support"
855663bc30SJozsef Kadlecsik	depends on IP_SET
865663bc30SJozsef Kadlecsik	help
875663bc30SJozsef Kadlecsik	  This option adds the hash:ip,port,ip set type support, by which
885663bc30SJozsef Kadlecsik	  one can store IPv4/IPv6 address, protocol/port, and IPv4/IPv6
895663bc30SJozsef Kadlecsik	  address triples in a set.
905663bc30SJozsef Kadlecsik
915663bc30SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
925663bc30SJozsef Kadlecsik
9341d22f7bSJozsef Kadlecsikconfig IP_SET_HASH_IPPORTNET
9441d22f7bSJozsef Kadlecsik	tristate "hash:ip,port,net set support"
9541d22f7bSJozsef Kadlecsik	depends on IP_SET
9641d22f7bSJozsef Kadlecsik	help
9741d22f7bSJozsef Kadlecsik	  This option adds the hash:ip,port,net set type support, by which
9841d22f7bSJozsef Kadlecsik	  one can store IPv4/IPv6 address, protocol/port, and IPv4/IPv6
9941d22f7bSJozsef Kadlecsik	  network address/prefix triples in a set.
10041d22f7bSJozsef Kadlecsik
10141d22f7bSJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
10241d22f7bSJozsef Kadlecsik
103c0db95c7STomasz Chilinskiconfig IP_SET_HASH_IPMAC
104c0db95c7STomasz Chilinski	tristate "hash:ip,mac set support"
105c0db95c7STomasz Chilinski	depends on IP_SET
106c0db95c7STomasz Chilinski	help
107c0db95c7STomasz Chilinski	  This option adds the hash:ip,mac set type support, by which
108c0db95c7STomasz Chilinski	  one can store IPv4/IPv6 address and MAC (ethernet address) pairs in a set.
109c0db95c7STomasz Chilinski
110c0db95c7STomasz Chilinski	  To compile it as a module, choose M here.  If unsure, say N.
111c0db95c7STomasz Chilinski
11207034aeaSJozsef Kadlecsikconfig IP_SET_HASH_MAC
11307034aeaSJozsef Kadlecsik	tristate "hash:mac set support"
11407034aeaSJozsef Kadlecsik	depends on IP_SET
11507034aeaSJozsef Kadlecsik	help
11607034aeaSJozsef Kadlecsik	  This option adds the hash:mac set type support, by which
11707034aeaSJozsef Kadlecsik	  one can store MAC (ethernet address) elements in a set.
11807034aeaSJozsef Kadlecsik
11907034aeaSJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
12007034aeaSJozsef Kadlecsik
1217c3ad056SOliver Smithconfig IP_SET_HASH_NETPORTNET
1227c3ad056SOliver Smith	tristate "hash:net,port,net set support"
1237c3ad056SOliver Smith	depends on IP_SET
1247c3ad056SOliver Smith	help
1257c3ad056SOliver Smith	  This option adds the hash:net,port,net set type support, by which
1267c3ad056SOliver Smith	  one can store two IPv4/IPv6 subnets, and a protocol/port in a set.
1277c3ad056SOliver Smith
1287c3ad056SOliver Smith	  To compile it as a module, choose M here.  If unsure, say N.
1297c3ad056SOliver Smith
130b3837029SJozsef Kadlecsikconfig IP_SET_HASH_NET
131b3837029SJozsef Kadlecsik	tristate "hash:net set support"
132b3837029SJozsef Kadlecsik	depends on IP_SET
133b3837029SJozsef Kadlecsik	help
134b3837029SJozsef Kadlecsik	  This option adds the hash:net set type support, by which
135b3837029SJozsef Kadlecsik	  one can store IPv4/IPv6 network address/prefix elements in a set.
136b3837029SJozsef Kadlecsik
137b3837029SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
138b3837029SJozsef Kadlecsik
139ea53ac5bSOliver Smithconfig IP_SET_HASH_NETNET
140ea53ac5bSOliver Smith	tristate "hash:net,net set support"
141ea53ac5bSOliver Smith	depends on IP_SET
142ea53ac5bSOliver Smith	help
143ea53ac5bSOliver Smith	  This option adds the hash:net,net  set type support, by which
144ea53ac5bSOliver Smith	  one can store IPv4/IPv6 network address/prefix pairs in a set.
145ea53ac5bSOliver Smith
146ea53ac5bSOliver Smith	  To compile it as a module, choose M here.  If unsure, say N.
147ea53ac5bSOliver Smith
14821f45020SJozsef Kadlecsikconfig IP_SET_HASH_NETPORT
14921f45020SJozsef Kadlecsik	tristate "hash:net,port set support"
15021f45020SJozsef Kadlecsik	depends on IP_SET
15121f45020SJozsef Kadlecsik	help
15221f45020SJozsef Kadlecsik	  This option adds the hash:net,port set type support, by which
15321f45020SJozsef Kadlecsik	  one can store IPv4/IPv6 network address/prefix and
15421f45020SJozsef Kadlecsik	  protocol/port pairs as elements in a set.
15521f45020SJozsef Kadlecsik
15621f45020SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
15721f45020SJozsef Kadlecsik
158e385357aSJozsef Kadlecsikconfig IP_SET_HASH_NETIFACE
159e385357aSJozsef Kadlecsik	tristate "hash:net,iface set support"
160e385357aSJozsef Kadlecsik	depends on IP_SET
161e385357aSJozsef Kadlecsik	help
162e385357aSJozsef Kadlecsik	  This option adds the hash:net,iface set type support, by which
163e385357aSJozsef Kadlecsik	  one can store IPv4/IPv6 network address/prefix and
164e385357aSJozsef Kadlecsik	  interface name pairs as elements in a set.
165e385357aSJozsef Kadlecsik
166e385357aSJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
167e385357aSJozsef Kadlecsik
168f830837fSJozsef Kadlecsikconfig IP_SET_LIST_SET
169f830837fSJozsef Kadlecsik	tristate "list:set set support"
170f830837fSJozsef Kadlecsik	depends on IP_SET
171f830837fSJozsef Kadlecsik	help
172f830837fSJozsef Kadlecsik	  This option adds the list:set set type support. In this
173f830837fSJozsef Kadlecsik	  kind of set one can store the name of other sets and it forms
174f830837fSJozsef Kadlecsik	  an ordered union of the member sets.
175f830837fSJozsef Kadlecsik
176f830837fSJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
177f830837fSJozsef Kadlecsik
178a7b4f989SJozsef Kadlecsikendif # IP_SET
179