netfilter.mk 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # $Id$
  8. NFMENU:=Netfilter Extensions
  9. define KernelPackage/ipt-conntrack
  10. TITLE:=Modules for connection tracking
  11. DESCRIPTION:=\
  12. Netfilter (IPv4) kernel modules for connection tracking\\\
  13. \\\
  14. Includes: \\\
  15. - ipt_conntrack \\\
  16. - ipt_helper \\\
  17. - ipt_connmark/CONNMARK
  18. FILES:=$(foreach mod,$(IPT_CONNTRACK-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  19. SUBMENU:=$(NFMENU)
  20. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_CONNTRACK-m)))
  21. endef
  22. $(eval $(call KernelPackage,ipt-conntrack))
  23. define KernelPackage/ipt-filter
  24. TITLE:=Modules for packet content inspection
  25. DESCRIPTION:=\
  26. Netfilter (IPv4) kernel modules for packet content inspection \\\
  27. \\\
  28. Includes: \\\
  29. - ipt_ipp2p \\\
  30. - ipt_layer7
  31. FILES:=$(foreach mod,$(IPT_FILTER-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  32. SUBMENU:=$(NFMENU)
  33. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_FILTER-m)))
  34. endef
  35. $(eval $(call KernelPackage,ipt-filter))
  36. define KernelPackage/ipt-ipopt
  37. TITLE:=Modules for matching/changing IP packet options
  38. DESCRIPTION:=\
  39. Netfilter (IPv4) modules for matching/changing IP packet options \\\
  40. \\\
  41. Includes: \\\
  42. - ipt_CLASSIFY \\\
  43. - ipt_dscp/DSCP \\\
  44. - ipt_ecn/ECN \\\
  45. - ipt_length \\\
  46. - ipt_mac \\\
  47. - ipt_tos/TOS \\\
  48. - ipt_tcpmms \\\
  49. - ipt_ttl/TTL \\\
  50. - ipt_unclean
  51. FILES:=$(foreach mod,$(IPT_IPOPT-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  52. SUBMENU:=$(NFMENU)
  53. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_IPOPT-m)))
  54. endef
  55. $(eval $(call KernelPackage,ipt-ipopt))
  56. define KernelPackage/ipt-ipsec
  57. TITLE:=Modules for matching IPSec packets
  58. DESCRIPTION:=\
  59. Netfilter (IPv4) modules for matching IPSec packets \\\
  60. \\\
  61. Includes: \\\
  62. - ipt_ah \\\
  63. - ipt_esp
  64. FILES:=$(foreach mod,$(IPT_IPSEC-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  65. SUBMENU:=$(NFMENU)
  66. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_IPSEC-m)))
  67. endef
  68. $(eval $(call KernelPackage,ipt-ipsec))
  69. define KernelPackage/ipt-nat
  70. TITLE:=Modules for extra NAT targets
  71. DESCRIPTION:=\
  72. Netfilter (IPv4) modules for extra NAT targets \\\
  73. \\\
  74. Includes: \\\
  75. - ipt_REDIRECT \\\
  76. - ipt_NETMAP
  77. FILES:=$(foreach mod,$(IPT_NAT-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  78. SUBMENU:=$(NFMENU)
  79. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_NAT-m)))
  80. endef
  81. $(eval $(call KernelPackage,ipt-nat))
  82. define KernelPackage/ipt-nathelper
  83. TITLE:=Default Conntrack and NAT helpers
  84. DESCRIPTION:=\
  85. Default Netfilter (IPv4) Conntrack and NAT helpers \\\
  86. \\\
  87. Includes: \\\
  88. - ip_conntrack_ftp \\\
  89. - ip_nat_ftp \\\
  90. - ip_conntrack_irc \\\
  91. - ip_nat_irc \\\
  92. - ip_conntrack_tftp
  93. FILES:=$(foreach mod,$(IPT_NAT_DEFAULT-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  94. SUBMENU:=$(NFMENU)
  95. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_NAT_DEFAULT-m)))
  96. endef
  97. $(eval $(call KernelPackage,ipt-nathelper))
  98. define KernelPackage/ipt-nathelper-extra
  99. TITLE:=Extra Conntrack and NAT helpers
  100. DESCRIPTION:=\
  101. Extra Netfilter (IPv4) Conntrack and NAT helpers \\\
  102. \\\
  103. Includes: \\\
  104. - ip_conntrack_amanda \\\
  105. - ip_conntrack_proto_gre \\\
  106. - ip_nat_proto_gre \\\
  107. - ip_conntrack_pptp \\\
  108. - ip_nat_pptp \\\
  109. - ip_conntrack_sip \\\
  110. - ip_nat_sip \\\
  111. - ip_nat_snmp_basic
  112. FILES:=$(foreach mod,$(IPT_NAT_EXTRA-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  113. SUBMENU:=$(NFMENU)
  114. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_NAT_EXTRA-m)))
  115. endef
  116. $(eval $(call KernelPackage,ipt-nathelper-extra))
  117. define KernelPackage/ipt-imq
  118. TITLE:=Intermediate Queueing support
  119. DESCRIPTION:=\
  120. Kernel support for Intermediate Queueing devices
  121. KCONFIG:=$(CONFIG_IP_NF_TARGET_IMQ)
  122. FILES:=$(LINUX_DIR)/net/ipv4/netfilter/*IMQ*.$(LINUX_KMOD_SUFFIX) $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX)
  123. SUBMENU:=$(NFMENU)
  124. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,$(wildcard $(LINUX_DIR)/net/ipv4/netfilter/*IMQ*.$(LINUX_KMOD_SUFFIX) $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX)))))
  125. endef
  126. $(eval $(call KernelPackage,ipt-imq))
  127. define KernelPackage/ipt-queue
  128. TITLE:=Module for user-space packet queueing
  129. DESCRIPTION:=\
  130. Netfilter (IPv4) module for user-space packet queueing \\\
  131. \\\
  132. Includes: \\\
  133. - ipt_QUEUE
  134. FILES:=$(foreach mod,$(IPT_QUEUE-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  135. SUBMENU:=$(NFMENU)
  136. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_QUEUE-m)))
  137. endef
  138. $(eval $(call KernelPackage,ipt-queue))
  139. define KernelPackage/ipt-ulog
  140. TITLE:=Module for user-space packet logging
  141. DESCRIPTION:=\
  142. Netfilter (IPv4) module for user-space packet logging \\\
  143. \\\
  144. Includes: \\\
  145. - ipt_ULOG
  146. FILES:=$(foreach mod,$(IPT_ULOG-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  147. SUBMENU:=$(NFMENU)
  148. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_ULOG-m)))
  149. endef
  150. $(eval $(call KernelPackage,ipt-ulog))
  151. define KernelPackage/ipt-iprange
  152. TITLE:=Module for matching ip ranges
  153. DESCRIPTION:=\
  154. Netfilter (IPv4) module for matching ip ranges \\\
  155. \\\
  156. Includes: \\\
  157. - ipt_IPRANGE
  158. FILES:=$(LINUX_DIR)/net/ipv4/netfilter/ipt_iprange.$(LINUX_KMOD_SUFFIX)
  159. SUBMENU:=$(NFMENU)
  160. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_IPRANGE-m)))
  161. endef
  162. $(eval $(call KernelPackage,ipt-iprange))
  163. define KernelPackage/ipt-ipset
  164. TITLE:=IPSET Modules
  165. DESCRIPTION:=\
  166. Netfilter kernel modules for ipset
  167. FILES:=$(foreach mod,$(IPT_IPSET-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  168. SUBMENU:=$(NFMENU)
  169. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_IPSET-m)))
  170. endef
  171. $(eval $(call KernelPackage,ipt-ipset))
  172. define KernelPackage/ipt-extra
  173. TITLE:=Extra modules
  174. DESCRIPTION:=\
  175. Other Netfilter (IPv4) kernel modules\\\
  176. Includes: \\\
  177. - ipt_limit \\\
  178. - ipt_owner \\\
  179. - ipt_physdev \\\
  180. - ipt_pkttype \\\
  181. - ipt_recent \\\
  182. - iptable_raw \\\
  183. - xt_NOTRACK
  184. FILES:=$(foreach mod,$(IPT_EXTRA-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
  185. SUBMENU:=$(NFMENU)
  186. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_EXTRA-m)))
  187. endef
  188. $(eval $(call KernelPackage,ipt-extra))
  189. define KernelPackage/ip6tables
  190. TITLE:=IPv6 modules
  191. DESCRIPTION:=\
  192. Netfilter IPv6 firewalling support
  193. KCONFIG:=$(CONFIG_IP6_NF_IPTABLES)
  194. FILES:=$(LINUX_DIR)/net/ipv6/netfilter/ip*.$(LINUX_KMOD_SUFFIX)
  195. SUBMENU:=$(NFMENU)
  196. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,$(wildcard $(LINUX_DIR)/net/ipv6/netfilter/ip6_*.$(LINUX_KMOD_SUFFIX)) $(wildcard $(LINUX_DIR)/net/ipv6/netfilter/ip6table_*.$(LINUX_KMOD_SUFFIX)) $(wildcard $(LINUX_DIR)/net/ipv6/netfilter/ip6t_*.$(LINUX_KMOD_SUFFIX)))))
  197. endef
  198. $(eval $(call KernelPackage,ip6tables))
  199. define KernelPackage/arptables
  200. TITLE:=ARP firewalling modules
  201. DESCRIPTION:=\
  202. Kernel modules for ARP firewalling
  203. FILES:=$(LINUX_DIR)/net/ipv4/netfilter/arp*.$(LINUX_KMOD_SUFFIX)
  204. KCONFIG:=$(CONFIG_IP_NF_ARPTABLES)
  205. SUBMENU:=$(NFMENU)
  206. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,$(wildcard $(LINUX_DIR)/net/ipv4/netfilter/arp*.$(LINUX_KMOD_SUFFIX)))))
  207. endef
  208. $(eval $(call KernelPackage,arptables))
  209. define KernelPackage/ebtables
  210. TITLE:=Bridge firewalling modules
  211. DESCRIPTION:=\
  212. Kernel modules for Ethernet Bridge firewalling
  213. FILES:=$(LINUX_DIR)/net/bridge/netfilter/*.$(LINUX_KMOD_SUFFIX)
  214. KCONFIG:=$(CONFIG_BRIDGE_NF_EBTABLES)
  215. SUBMENU:=$(NFMENU)
  216. AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,ebtables.ko $(wildcard $(LINUX_DIR)/net/bridge/netfilter/ebtable_*.$(LINUX_KMOD_SUFFIX)) $(wildcard $(LINUX_DIR)/net/bridge/netfilter/ebt_*.$(LINUX_KMOD_SUFFIX)))))
  217. endef
  218. $(eval $(call KernelPackage,ebtables))