diff options
-rw-r--r-- | net/ipv4/netfilter/Kconfig | 38 | ||||
-rw-r--r-- | net/ipv6/netfilter/Kconfig | 18 | ||||
-rw-r--r-- | net/netfilter/Kconfig | 20 |
3 files changed, 37 insertions, 39 deletions
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig index 59f883d9cadf..fb20f363151f 100644 --- a/net/ipv4/netfilter/Kconfig +++ b/net/ipv4/netfilter/Kconfig | |||
@@ -36,24 +36,16 @@ config NF_CONNTRACK_PROC_COMPAT | |||
36 | 36 | ||
37 | If unsure, say Y. | 37 | If unsure, say Y. |
38 | 38 | ||
39 | config NF_LOG_ARP | 39 | if NF_TABLES |
40 | tristate "ARP packet logging" | ||
41 | default m if NETFILTER_ADVANCED=n | ||
42 | select NF_LOG_COMMON | ||
43 | |||
44 | config NF_LOG_IPV4 | ||
45 | tristate "IPv4 packet logging" | ||
46 | default m if NETFILTER_ADVANCED=n | ||
47 | select NF_LOG_COMMON | ||
48 | 40 | ||
49 | config NF_TABLES_IPV4 | 41 | config NF_TABLES_IPV4 |
50 | depends on NF_TABLES | ||
51 | tristate "IPv4 nf_tables support" | 42 | tristate "IPv4 nf_tables support" |
52 | help | 43 | help |
53 | This option enables the IPv4 support for nf_tables. | 44 | This option enables the IPv4 support for nf_tables. |
54 | 45 | ||
46 | if NF_TABLES_IPV4 | ||
47 | |||
55 | config NFT_CHAIN_ROUTE_IPV4 | 48 | config NFT_CHAIN_ROUTE_IPV4 |
56 | depends on NF_TABLES_IPV4 | ||
57 | tristate "IPv4 nf_tables route chain support" | 49 | tristate "IPv4 nf_tables route chain support" |
58 | help | 50 | help |
59 | This option enables the "route" chain for IPv4 in nf_tables. This | 51 | This option enables the "route" chain for IPv4 in nf_tables. This |
@@ -61,22 +53,34 @@ config NFT_CHAIN_ROUTE_IPV4 | |||
61 | fields such as the source, destination, type of service and | 53 | fields such as the source, destination, type of service and |
62 | the packet mark. | 54 | the packet mark. |
63 | 55 | ||
64 | config NF_REJECT_IPV4 | ||
65 | tristate "IPv4 packet rejection" | ||
66 | default m if NETFILTER_ADVANCED=n | ||
67 | |||
68 | config NFT_REJECT_IPV4 | 56 | config NFT_REJECT_IPV4 |
69 | depends on NF_TABLES_IPV4 | ||
70 | select NF_REJECT_IPV4 | 57 | select NF_REJECT_IPV4 |
71 | default NFT_REJECT | 58 | default NFT_REJECT |
72 | tristate | 59 | tristate |
73 | 60 | ||
61 | endif # NF_TABLES_IPV4 | ||
62 | |||
74 | config NF_TABLES_ARP | 63 | config NF_TABLES_ARP |
75 | depends on NF_TABLES | ||
76 | tristate "ARP nf_tables support" | 64 | tristate "ARP nf_tables support" |
77 | help | 65 | help |
78 | This option enables the ARP support for nf_tables. | 66 | This option enables the ARP support for nf_tables. |
79 | 67 | ||
68 | endif # NF_TABLES | ||
69 | |||
70 | config NF_LOG_ARP | ||
71 | tristate "ARP packet logging" | ||
72 | default m if NETFILTER_ADVANCED=n | ||
73 | select NF_LOG_COMMON | ||
74 | |||
75 | config NF_LOG_IPV4 | ||
76 | tristate "IPv4 packet logging" | ||
77 | default m if NETFILTER_ADVANCED=n | ||
78 | select NF_LOG_COMMON | ||
79 | |||
80 | config NF_REJECT_IPV4 | ||
81 | tristate "IPv4 packet rejection" | ||
82 | default m if NETFILTER_ADVANCED=n | ||
83 | |||
80 | config NF_NAT_IPV4 | 84 | config NF_NAT_IPV4 |
81 | tristate "IPv4 NAT" | 85 | tristate "IPv4 NAT" |
82 | depends on NF_CONNTRACK_IPV4 | 86 | depends on NF_CONNTRACK_IPV4 |
diff --git a/net/ipv6/netfilter/Kconfig b/net/ipv6/netfilter/Kconfig index a069822936e6..ca6998345b42 100644 --- a/net/ipv6/netfilter/Kconfig +++ b/net/ipv6/netfilter/Kconfig | |||
@@ -25,14 +25,16 @@ config NF_CONNTRACK_IPV6 | |||
25 | 25 | ||
26 | To compile it as a module, choose M here. If unsure, say N. | 26 | To compile it as a module, choose M here. If unsure, say N. |
27 | 27 | ||
28 | if NF_TABLES | ||
29 | |||
28 | config NF_TABLES_IPV6 | 30 | config NF_TABLES_IPV6 |
29 | depends on NF_TABLES | ||
30 | tristate "IPv6 nf_tables support" | 31 | tristate "IPv6 nf_tables support" |
31 | help | 32 | help |
32 | This option enables the IPv6 support for nf_tables. | 33 | This option enables the IPv6 support for nf_tables. |
33 | 34 | ||
35 | if NF_TABLES_IPV6 | ||
36 | |||
34 | config NFT_CHAIN_ROUTE_IPV6 | 37 | config NFT_CHAIN_ROUTE_IPV6 |
35 | depends on NF_TABLES_IPV6 | ||
36 | tristate "IPv6 nf_tables route chain support" | 38 | tristate "IPv6 nf_tables route chain support" |
37 | help | 39 | help |
38 | This option enables the "route" chain for IPv6 in nf_tables. This | 40 | This option enables the "route" chain for IPv6 in nf_tables. This |
@@ -40,16 +42,18 @@ config NFT_CHAIN_ROUTE_IPV6 | |||
40 | fields such as the source, destination, flowlabel, hop-limit and | 42 | fields such as the source, destination, flowlabel, hop-limit and |
41 | the packet mark. | 43 | the packet mark. |
42 | 44 | ||
43 | config NF_REJECT_IPV6 | ||
44 | tristate "IPv6 packet rejection" | ||
45 | default m if NETFILTER_ADVANCED=n | ||
46 | |||
47 | config NFT_REJECT_IPV6 | 45 | config NFT_REJECT_IPV6 |
48 | depends on NF_TABLES_IPV6 | ||
49 | select NF_REJECT_IPV6 | 46 | select NF_REJECT_IPV6 |
50 | default NFT_REJECT | 47 | default NFT_REJECT |
51 | tristate | 48 | tristate |
52 | 49 | ||
50 | endif # NF_TABLES_IPV6 | ||
51 | endif # NF_TABLES | ||
52 | |||
53 | config NF_REJECT_IPV6 | ||
54 | tristate "IPv6 packet rejection" | ||
55 | default m if NETFILTER_ADVANCED=n | ||
56 | |||
53 | config NF_LOG_IPV6 | 57 | config NF_LOG_IPV6 |
54 | tristate "IPv6 packet logging" | 58 | tristate "IPv6 packet logging" |
55 | default m if NETFILTER_ADVANCED=n | 59 | default m if NETFILTER_ADVANCED=n |
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index c68c3b441381..971cd7526f4b 100644 --- a/net/netfilter/Kconfig +++ b/net/netfilter/Kconfig | |||
@@ -438,8 +438,10 @@ config NF_TABLES | |||
438 | 438 | ||
439 | To compile it as a module, choose M here. | 439 | To compile it as a module, choose M here. |
440 | 440 | ||
441 | if NF_TABLES | ||
442 | |||
441 | config NF_TABLES_INET | 443 | config NF_TABLES_INET |
442 | depends on NF_TABLES && IPV6 | 444 | depends on IPV6 |
443 | select NF_TABLES_IPV4 | 445 | select NF_TABLES_IPV4 |
444 | select NF_TABLES_IPV6 | 446 | select NF_TABLES_IPV6 |
445 | tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support" | 447 | tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support" |
@@ -447,21 +449,18 @@ config NF_TABLES_INET | |||
447 | This option enables support for a mixed IPv4/IPv6 "inet" table. | 449 | This option enables support for a mixed IPv4/IPv6 "inet" table. |
448 | 450 | ||
449 | config NFT_EXTHDR | 451 | config NFT_EXTHDR |
450 | depends on NF_TABLES | ||
451 | tristate "Netfilter nf_tables IPv6 exthdr module" | 452 | tristate "Netfilter nf_tables IPv6 exthdr module" |
452 | help | 453 | help |
453 | This option adds the "exthdr" expression that you can use to match | 454 | This option adds the "exthdr" expression that you can use to match |
454 | IPv6 extension headers. | 455 | IPv6 extension headers. |
455 | 456 | ||
456 | config NFT_META | 457 | config NFT_META |
457 | depends on NF_TABLES | ||
458 | tristate "Netfilter nf_tables meta module" | 458 | tristate "Netfilter nf_tables meta module" |
459 | help | 459 | help |
460 | This option adds the "meta" expression that you can use to match and | 460 | This option adds the "meta" expression that you can use to match and |
461 | to set packet metainformation such as the packet mark. | 461 | to set packet metainformation such as the packet mark. |
462 | 462 | ||
463 | config NFT_CT | 463 | config NFT_CT |
464 | depends on NF_TABLES | ||
465 | depends on NF_CONNTRACK | 464 | depends on NF_CONNTRACK |
466 | tristate "Netfilter nf_tables conntrack module" | 465 | tristate "Netfilter nf_tables conntrack module" |
467 | help | 466 | help |
@@ -469,42 +468,36 @@ config NFT_CT | |||
469 | connection tracking information such as the flow state. | 468 | connection tracking information such as the flow state. |
470 | 469 | ||
471 | config NFT_RBTREE | 470 | config NFT_RBTREE |
472 | depends on NF_TABLES | ||
473 | tristate "Netfilter nf_tables rbtree set module" | 471 | tristate "Netfilter nf_tables rbtree set module" |
474 | help | 472 | help |
475 | This option adds the "rbtree" set type (Red Black tree) that is used | 473 | This option adds the "rbtree" set type (Red Black tree) that is used |
476 | to build interval-based sets. | 474 | to build interval-based sets. |
477 | 475 | ||
478 | config NFT_HASH | 476 | config NFT_HASH |
479 | depends on NF_TABLES | ||
480 | tristate "Netfilter nf_tables hash set module" | 477 | tristate "Netfilter nf_tables hash set module" |
481 | help | 478 | help |
482 | This option adds the "hash" set type that is used to build one-way | 479 | This option adds the "hash" set type that is used to build one-way |
483 | mappings between matchings and actions. | 480 | mappings between matchings and actions. |
484 | 481 | ||
485 | config NFT_COUNTER | 482 | config NFT_COUNTER |
486 | depends on NF_TABLES | ||
487 | tristate "Netfilter nf_tables counter module" | 483 | tristate "Netfilter nf_tables counter module" |
488 | help | 484 | help |
489 | This option adds the "counter" expression that you can use to | 485 | This option adds the "counter" expression that you can use to |
490 | include packet and byte counters in a rule. | 486 | include packet and byte counters in a rule. |
491 | 487 | ||
492 | config NFT_LOG | 488 | config NFT_LOG |
493 | depends on NF_TABLES | ||
494 | tristate "Netfilter nf_tables log module" | 489 | tristate "Netfilter nf_tables log module" |
495 | help | 490 | help |
496 | This option adds the "log" expression that you can use to log | 491 | This option adds the "log" expression that you can use to log |
497 | packets matching some criteria. | 492 | packets matching some criteria. |
498 | 493 | ||
499 | config NFT_LIMIT | 494 | config NFT_LIMIT |
500 | depends on NF_TABLES | ||
501 | tristate "Netfilter nf_tables limit module" | 495 | tristate "Netfilter nf_tables limit module" |
502 | help | 496 | help |
503 | This option adds the "limit" expression that you can use to | 497 | This option adds the "limit" expression that you can use to |
504 | ratelimit rule matchings. | 498 | ratelimit rule matchings. |
505 | 499 | ||
506 | config NFT_MASQ | 500 | config NFT_MASQ |
507 | depends on NF_TABLES | ||
508 | depends on NF_CONNTRACK | 501 | depends on NF_CONNTRACK |
509 | depends on NF_NAT | 502 | depends on NF_NAT |
510 | tristate "Netfilter nf_tables masquerade support" | 503 | tristate "Netfilter nf_tables masquerade support" |
@@ -513,7 +506,6 @@ config NFT_MASQ | |||
513 | to perform NAT in the masquerade flavour. | 506 | to perform NAT in the masquerade flavour. |
514 | 507 | ||
515 | config NFT_REDIR | 508 | config NFT_REDIR |
516 | depends on NF_TABLES | ||
517 | depends on NF_CONNTRACK | 509 | depends on NF_CONNTRACK |
518 | depends on NF_NAT | 510 | depends on NF_NAT |
519 | tristate "Netfilter nf_tables redirect support" | 511 | tristate "Netfilter nf_tables redirect support" |
@@ -522,7 +514,6 @@ config NFT_REDIR | |||
522 | to perform NAT in the redirect flavour. | 514 | to perform NAT in the redirect flavour. |
523 | 515 | ||
524 | config NFT_NAT | 516 | config NFT_NAT |
525 | depends on NF_TABLES | ||
526 | depends on NF_CONNTRACK | 517 | depends on NF_CONNTRACK |
527 | select NF_NAT | 518 | select NF_NAT |
528 | tristate "Netfilter nf_tables nat module" | 519 | tristate "Netfilter nf_tables nat module" |
@@ -531,7 +522,6 @@ config NFT_NAT | |||
531 | typical Network Address Translation (NAT) packet transformations. | 522 | typical Network Address Translation (NAT) packet transformations. |
532 | 523 | ||
533 | config NFT_QUEUE | 524 | config NFT_QUEUE |
534 | depends on NF_TABLES | ||
535 | depends on NETFILTER_XTABLES | 525 | depends on NETFILTER_XTABLES |
536 | depends on NETFILTER_NETLINK_QUEUE | 526 | depends on NETFILTER_NETLINK_QUEUE |
537 | tristate "Netfilter nf_tables queue module" | 527 | tristate "Netfilter nf_tables queue module" |
@@ -540,7 +530,6 @@ config NFT_QUEUE | |||
540 | infrastructure (also known as NFQUEUE) from nftables. | 530 | infrastructure (also known as NFQUEUE) from nftables. |
541 | 531 | ||
542 | config NFT_REJECT | 532 | config NFT_REJECT |
543 | depends on NF_TABLES | ||
544 | default m if NETFILTER_ADVANCED=n | 533 | default m if NETFILTER_ADVANCED=n |
545 | tristate "Netfilter nf_tables reject support" | 534 | tristate "Netfilter nf_tables reject support" |
546 | help | 535 | help |
@@ -554,7 +543,6 @@ config NFT_REJECT_INET | |||
554 | tristate | 543 | tristate |
555 | 544 | ||
556 | config NFT_COMPAT | 545 | config NFT_COMPAT |
557 | depends on NF_TABLES | ||
558 | depends on NETFILTER_XTABLES | 546 | depends on NETFILTER_XTABLES |
559 | tristate "Netfilter x_tables over nf_tables module" | 547 | tristate "Netfilter x_tables over nf_tables module" |
560 | help | 548 | help |
@@ -562,6 +550,8 @@ config NFT_COMPAT | |||
562 | x_tables match/target extensions over the nf_tables | 550 | x_tables match/target extensions over the nf_tables |
563 | framework. | 551 | framework. |
564 | 552 | ||
553 | endif # NF_TABLES | ||
554 | |||
565 | config NETFILTER_XTABLES | 555 | config NETFILTER_XTABLES |
566 | tristate "Netfilter Xtables support (required for ip_tables)" | 556 | tristate "Netfilter Xtables support (required for ip_tables)" |
567 | default m if NETFILTER_ADVANCED=n | 557 | default m if NETFILTER_ADVANCED=n |