Makefile 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. #
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=iptables
  10. PKG_VERSION:=1.6.2
  11. PKG_RELEASE:=2
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://git.netfilter.org/iptables
  14. PKG_SOURCE_VERSION:=c16bdec15137b241586310d0e61bc88cc3726004
  15. PKG_MIRROR_HASH:=72e4bec94a56dd600097846c773e1074ff705e38f800ef221db646c064371a53
  16. PKG_FIXUP:=autoreconf
  17. PKG_FLAGS:=nonshared
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_LICENSE:=GPL-2.0
  21. PKG_CPE_ID:=cpe:/a:netfilter_core_team:iptables
  22. include $(INCLUDE_DIR)/package.mk
  23. ifeq ($(DUMP),)
  24. -include $(LINUX_DIR)/.config
  25. include $(INCLUDE_DIR)/netfilter.mk
  26. STAMP_CONFIGURED:=$(strip $(STAMP_CONFIGURED))_$(shell grep 'NETFILTER' $(LINUX_DIR)/.config | mkhash md5)
  27. endif
  28. define Package/iptables/Default
  29. SECTION:=net
  30. CATEGORY:=Network
  31. SUBMENU:=Firewall
  32. URL:=http://netfilter.org/
  33. endef
  34. define Package/iptables/Module
  35. $(call Package/iptables/Default)
  36. DEPENDS:=iptables $(1)
  37. endef
  38. define Package/iptables
  39. $(call Package/iptables/Default)
  40. TITLE:=IP firewall administration tool
  41. MENU:=1
  42. DEPENDS+= +kmod-ipt-core +libip4tc +IPV6:libip6tc +libxtables
  43. endef
  44. define Package/iptables/config
  45. config IPTABLES_CONNLABEL
  46. bool "Enable Connlabel support"
  47. default n
  48. help
  49. This enable connlabel support in iptables.
  50. config IPTABLES_NFTABLES
  51. bool "Enable Nftables support"
  52. default n
  53. help
  54. This enable nftables support in iptables.
  55. endef
  56. define Package/iptables/description
  57. IP firewall administration tool.
  58. Matches:
  59. - icmp
  60. - tcp
  61. - udp
  62. - comment
  63. - conntrack
  64. - limit
  65. - mac
  66. - mark
  67. - multiport
  68. - set
  69. - state
  70. - time
  71. Targets:
  72. - ACCEPT
  73. - CT
  74. - DNAT
  75. - DROP
  76. - REJECT
  77. - FLOWOFFLOAD
  78. - LOG
  79. - MARK
  80. - MASQUERADE
  81. - REDIRECT
  82. - SET
  83. - SNAT
  84. - TCPMSS
  85. Tables:
  86. - filter
  87. - mangle
  88. - nat
  89. - raw
  90. endef
  91. define Package/iptables-mod-conntrack-extra
  92. $(call Package/iptables/Module, +kmod-ipt-conntrack-extra)
  93. TITLE:=Extra connection tracking extensions
  94. endef
  95. define Package/iptables-mod-conntrack-extra/description
  96. Extra iptables extensions for connection tracking.
  97. Matches:
  98. - connbytes
  99. - connlimit
  100. - connmark
  101. - recent
  102. - helper
  103. Targets:
  104. - CONNMARK
  105. endef
  106. define Package/iptables-mod-conntrack-label
  107. $(call Package/iptables/Module, +kmod-ipt-conntrack-label @IPTABLES_CONNLABEL)
  108. TITLE:=Connection tracking labeling extension
  109. DEFAULT:=y if IPTABLES_CONNLABEL
  110. endef
  111. define Package/iptables-mod-conntrack-label/description
  112. Match and set label(s) on connection tracking entries
  113. Matches:
  114. - connlabel
  115. endef
  116. define Package/iptables-mod-filter
  117. $(call Package/iptables/Module, +kmod-ipt-filter)
  118. TITLE:=Content inspection extensions
  119. endef
  120. define Package/iptables-mod-filter/description
  121. iptables extensions for packet content inspection.
  122. Includes support for:
  123. Matches:
  124. - string
  125. endef
  126. define Package/iptables-mod-ipopt
  127. $(call Package/iptables/Module, +kmod-ipt-ipopt)
  128. TITLE:=IP/Packet option extensions
  129. endef
  130. define Package/iptables-mod-ipopt/description
  131. iptables extensions for matching/changing IP packet options.
  132. Matches:
  133. - dscp
  134. - ecn
  135. - length
  136. - statistic
  137. - tcpmss
  138. - unclean
  139. - hl
  140. Targets:
  141. - DSCP
  142. - CLASSIFY
  143. - ECN
  144. - HL
  145. endef
  146. define Package/iptables-mod-ipsec
  147. $(call Package/iptables/Module, +kmod-ipt-ipsec)
  148. TITLE:=IPsec extensions
  149. endef
  150. define Package/iptables-mod-ipsec/description
  151. iptables extensions for matching ipsec traffic.
  152. Matches:
  153. - ah
  154. - esp
  155. - policy
  156. endef
  157. define Package/iptables-mod-nat-extra
  158. $(call Package/iptables/Module, +kmod-ipt-nat-extra)
  159. TITLE:=Extra NAT extensions
  160. endef
  161. define Package/iptables-mod-nat-extra/description
  162. iptables extensions for extra NAT targets.
  163. Targets:
  164. - MIRROR
  165. - NETMAP
  166. endef
  167. define Package/iptables-mod-ulog
  168. $(call Package/iptables/Module, +kmod-ipt-ulog)
  169. TITLE:=user-space packet logging
  170. endef
  171. define Package/iptables-mod-ulog/description
  172. iptables extensions for user-space packet logging.
  173. Targets:
  174. - ULOG
  175. endef
  176. define Package/iptables-mod-nflog
  177. $(call Package/iptables/Module, +kmod-nfnetlink-log +kmod-ipt-nflog)
  178. TITLE:=Netfilter NFLOG target
  179. endef
  180. define Package/iptables-mod-nflog/description
  181. iptables extension for user-space logging via NFNETLINK.
  182. Includes:
  183. - libxt_NFLOG
  184. endef
  185. define Package/iptables-mod-trace
  186. $(call Package/iptables/Module, +kmod-ipt-debug)
  187. TITLE:=Netfilter TRACE target
  188. endef
  189. define Package/iptables-mod-trace/description
  190. iptables extension for TRACE target
  191. Includes:
  192. - libxt_TRACE
  193. endef
  194. define Package/iptables-mod-nfqueue
  195. $(call Package/iptables/Module, +kmod-nfnetlink-queue +kmod-ipt-nfqueue)
  196. TITLE:=Netfilter NFQUEUE target
  197. endef
  198. define Package/iptables-mod-nfqueue/description
  199. iptables extension for user-space queuing via NFNETLINK.
  200. Includes:
  201. - libxt_NFQUEUE
  202. endef
  203. define Package/iptables-mod-hashlimit
  204. $(call Package/iptables/Module, +kmod-ipt-hashlimit)
  205. TITLE:=hashlimit matching
  206. endef
  207. define Package/iptables-mod-hashlimit/description
  208. iptables extensions for hashlimit matching
  209. Matches:
  210. - hashlimit
  211. endef
  212. define Package/iptables-mod-rpfilter
  213. $(call Package/iptables/Module, +kmod-ipt-rpfilter)
  214. TITLE:=rpfilter iptables extension
  215. endef
  216. define Package/iptables-mod-rpfilter/description
  217. iptables extensions for reverse path filter test on a packet
  218. Matches:
  219. - rpfilter
  220. endef
  221. define Package/iptables-mod-iprange
  222. $(call Package/iptables/Module, +kmod-ipt-iprange)
  223. TITLE:=IP range extension
  224. endef
  225. define Package/iptables-mod-iprange/description
  226. iptables extensions for matching ip ranges.
  227. Matches:
  228. - iprange
  229. endef
  230. define Package/iptables-mod-cluster
  231. $(call Package/iptables/Module, +kmod-ipt-cluster)
  232. TITLE:=Match cluster extension
  233. endef
  234. define Package/iptables-mod-cluster/description
  235. iptables extensions for matching cluster.
  236. Netfilter (IPv4/IPv6) module for matching cluster
  237. This option allows you to build work-load-sharing clusters of
  238. network servers/stateful firewalls without having a dedicated
  239. load-balancing router/server/switch. Basically, this match returns
  240. true when the packet must be handled by this cluster node. Thus,
  241. all nodes see all packets and this match decides which node handles
  242. what packets. The work-load sharing algorithm is based on source
  243. address hashing.
  244. This module is usable for ipv4 and ipv6.
  245. If you select it, it enables kmod-ipt-cluster.
  246. see `iptables -m cluster --help` for more information.
  247. endef
  248. define Package/iptables-mod-clusterip
  249. $(call Package/iptables/Module, +kmod-ipt-clusterip)
  250. TITLE:=Clusterip extension
  251. endef
  252. define Package/iptables-mod-clusterip/description
  253. iptables extensions for CLUSTERIP.
  254. The CLUSTERIP target allows you to build load-balancing clusters of
  255. network servers without having a dedicated load-balancing
  256. router/server/switch.
  257. If you select it, it enables kmod-ipt-clusterip.
  258. see `iptables -j CLUSTERIP --help` for more information.
  259. endef
  260. define Package/iptables-mod-extra
  261. $(call Package/iptables/Module, +kmod-ipt-extra)
  262. TITLE:=Other extra iptables extensions
  263. endef
  264. define Package/iptables-mod-extra/description
  265. Other extra iptables extensions.
  266. Matches:
  267. - addrtype
  268. - condition
  269. - owner
  270. - pkttype
  271. - quota
  272. endef
  273. define Package/iptables-mod-physdev
  274. $(call Package/iptables/Module, +kmod-ipt-physdev)
  275. TITLE:=physdev iptables extension
  276. endef
  277. define Package/iptables-mod-physdev/description
  278. The iptables physdev match.
  279. endef
  280. define Package/iptables-mod-led
  281. $(call Package/iptables/Module, +kmod-ipt-led)
  282. TITLE:=LED trigger iptables extension
  283. endef
  284. define Package/iptables-mod-led/description
  285. iptables extension for triggering a LED.
  286. Targets:
  287. - LED
  288. endef
  289. define Package/iptables-mod-tproxy
  290. $(call Package/iptables/Module, +kmod-ipt-tproxy)
  291. TITLE:=Transparent proxy iptables extensions
  292. endef
  293. define Package/iptables-mod-tproxy/description
  294. Transparent proxy iptables extensions.
  295. Matches:
  296. - socket
  297. Targets:
  298. - TPROXY
  299. endef
  300. define Package/iptables-mod-tee
  301. $(call Package/iptables/Module, +kmod-ipt-tee)
  302. TITLE:=TEE iptables extensions
  303. endef
  304. define Package/iptables-mod-tee/description
  305. TEE iptables extensions.
  306. Targets:
  307. - TEE
  308. endef
  309. define Package/iptables-mod-u32
  310. $(call Package/iptables/Module, +kmod-ipt-u32)
  311. TITLE:=U32 iptables extensions
  312. endef
  313. define Package/iptables-mod-u32/description
  314. U32 iptables extensions.
  315. Matches:
  316. - u32
  317. endef
  318. define Package/iptables-mod-checksum
  319. $(call Package/iptables/Module, +kmod-ipt-checksum)
  320. TITLE:=IP CHECKSUM target extension
  321. endef
  322. define Package/iptables-mod-checksum/description
  323. iptables extension for the CHECKSUM calculation target
  324. endef
  325. define Package/ip6tables
  326. $(call Package/iptables/Default)
  327. DEPENDS:=@IPV6 +kmod-ip6tables +iptables
  328. CATEGORY:=Network
  329. TITLE:=IPv6 firewall administration tool
  330. MENU:=1
  331. endef
  332. define Package/ip6tables-extra
  333. $(call Package/iptables/Default)
  334. DEPENDS:=ip6tables +kmod-ip6tables-extra
  335. TITLE:=IPv6 header matching modules
  336. endef
  337. define Package/ip6tables-mod-extra/description
  338. iptables header matching modules for IPv6
  339. endef
  340. define Package/ip6tables-mod-nat
  341. $(call Package/iptables/Default)
  342. DEPENDS:=ip6tables +kmod-ipt-nat6
  343. TITLE:=IPv6 NAT extensions
  344. endef
  345. define Package/ip6tables-mod-nat/description
  346. iptables extensions for IPv6-NAT targets.
  347. endef
  348. define Package/libiptc
  349. $(call Package/iptables/Default)
  350. SECTION:=libs
  351. CATEGORY:=Libraries
  352. DEPENDS:=+libip4tc +libip6tc +libxtables
  353. ABI_VERSION:=$(PKG_VERSION)
  354. TITLE:=IPv4/IPv6 firewall - shared libiptc library (compatibility stub)
  355. endef
  356. define Package/libip4tc
  357. $(call Package/iptables/Default)
  358. SECTION:=libs
  359. CATEGORY:=Libraries
  360. TITLE:=IPv4 firewall - shared libiptc library
  361. ABI_VERSION:=$(PKG_VERSION)
  362. DEPENDS:=+libxtables
  363. endef
  364. define Package/libip6tc
  365. $(call Package/iptables/Default)
  366. SECTION:=libs
  367. CATEGORY:=Libraries
  368. TITLE:=IPv6 firewall - shared libiptc library
  369. ABI_VERSION:=$(PKG_VERSION)
  370. DEPENDS:=+libxtables
  371. endef
  372. define Package/libxtables
  373. $(call Package/iptables/Default)
  374. SECTION:=libs
  375. CATEGORY:=Libraries
  376. TITLE:=IPv4/IPv6 firewall - shared xtables library
  377. ABI_VERSION:=$(PKG_VERSION)
  378. DEPENDS:= \
  379. +IPTABLES_CONNLABEL:libnetfilter-conntrack \
  380. +IPTABLES_NFTABLES:libnftnl
  381. endef
  382. TARGET_CPPFLAGS := \
  383. -I$(PKG_BUILD_DIR)/include \
  384. -I$(LINUX_DIR)/user_headers/include \
  385. $(TARGET_CPPFLAGS)
  386. TARGET_CFLAGS += \
  387. -I$(PKG_BUILD_DIR)/include \
  388. -I$(LINUX_DIR)/user_headers/include \
  389. -ffunction-sections -fdata-sections \
  390. -DNO_LEGACY
  391. TARGET_LDFLAGS += \
  392. -Wl,--gc-sections
  393. CONFIGURE_ARGS += \
  394. --enable-shared \
  395. --enable-static \
  396. --enable-devel \
  397. --with-kernel="$(LINUX_DIR)/user_headers" \
  398. --with-xtlibdir=/usr/lib/iptables \
  399. --with-xt-lock-name=/var/run/xtables.lock \
  400. $(if $(CONFIG_IPTABLES_CONNLABEL),,--disable-connlabel) \
  401. $(if $(CONFIG_IPTABLES_NFTABLES),,--disable-nftables) \
  402. $(if $(CONFIG_IPV6),,--disable-ipv6)
  403. MAKE_FLAGS := \
  404. $(TARGET_CONFIGURE_OPTS) \
  405. COPT_FLAGS="$(TARGET_CFLAGS)" \
  406. KERNEL_DIR="$(LINUX_DIR)/user_headers/" PREFIX=/usr \
  407. KBUILD_OUTPUT="$(LINUX_DIR)" \
  408. BUILTIN_MODULES="$(patsubst ip6t_%,%,$(patsubst ipt_%,%,$(patsubst xt_%,%,$(IPT_BUILTIN) $(IPT_CONNTRACK-m) $(IPT_NAT-m))))"
  409. ifneq ($(wildcard $(PKG_BUILD_DIR)/.config_*),$(subst .configured_,.config_,$(STAMP_CONFIGURED)))
  410. define Build/Configure/rebuild
  411. $(FIND) $(PKG_BUILD_DIR) -name \*.o -or -name \*.\?o -or -name \*.a | $(XARGS) rm -f
  412. rm -f $(PKG_BUILD_DIR)/.config_*
  413. rm -f $(PKG_BUILD_DIR)/.configured_*
  414. touch $(subst .configured_,.config_,$(STAMP_CONFIGURED))
  415. endef
  416. endif
  417. define Build/Configure
  418. $(Build/Configure/rebuild)
  419. $(Build/Configure/Default)
  420. endef
  421. define Build/InstallDev
  422. $(INSTALL_DIR) $(1)/usr/include
  423. $(INSTALL_DIR) $(1)/usr/include/iptables
  424. $(INSTALL_DIR) $(1)/usr/include/net/netfilter
  425. # XXX: iptables header fixup, some headers are not installed by iptables anymore
  426. $(CP) $(PKG_BUILD_DIR)/include/iptables/*.h $(1)/usr/include/iptables/
  427. $(CP) $(PKG_BUILD_DIR)/include/iptables.h $(1)/usr/include/
  428. $(CP) $(PKG_BUILD_DIR)/include/ip6tables.h $(1)/usr/include/
  429. $(CP) $(PKG_BUILD_DIR)/include/libipulog $(1)/usr/include/
  430. $(CP) $(PKG_BUILD_DIR)/include/libiptc $(1)/usr/include/
  431. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  432. $(INSTALL_DIR) $(1)/usr/lib
  433. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxtables.so* $(1)/usr/lib/
  434. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libip*tc.so* $(1)/usr/lib/
  435. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  436. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xtables.pc $(1)/usr/lib/pkgconfig/
  437. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libip*tc.pc $(1)/usr/lib/pkgconfig/
  438. # XXX: needed by firewall3
  439. $(CP) $(PKG_BUILD_DIR)/extensions/libiptext*.so $(1)/usr/lib/
  440. endef
  441. define Package/iptables/install
  442. $(INSTALL_DIR) $(1)/usr/sbin
  443. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xtables-multi $(1)/usr/sbin/
  444. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables{,-restore,-save} $(1)/usr/sbin/
  445. $(INSTALL_DIR) $(1)/usr/lib/iptables
  446. endef
  447. define Package/ip6tables/install
  448. $(INSTALL_DIR) $(1)/usr/sbin
  449. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables{,-restore,-save} $(1)/usr/sbin/
  450. endef
  451. define Package/libiptc/install
  452. $(INSTALL_DIR) $(1)/usr/lib
  453. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiptc.so* $(1)/usr/lib/
  454. endef
  455. define Package/libip4tc/install
  456. $(INSTALL_DIR) $(1)/usr/lib
  457. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libip4tc.so* $(1)/usr/lib/
  458. $(CP) $(PKG_BUILD_DIR)/extensions/libiptext4.so $(1)/usr/lib/
  459. endef
  460. define Package/libip6tc/install
  461. $(INSTALL_DIR) $(1)/usr/lib
  462. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libip6tc.so* $(1)/usr/lib/
  463. $(CP) $(PKG_BUILD_DIR)/extensions/libiptext6.so $(1)/usr/lib/
  464. endef
  465. define Package/libxtables/install
  466. $(INSTALL_DIR) $(1)/usr/lib
  467. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxtables.so* $(1)/usr/lib/
  468. $(CP) $(PKG_BUILD_DIR)/extensions/libiptext.so $(1)/usr/lib/
  469. endef
  470. define BuildPlugin
  471. define Package/$(1)/install
  472. $(INSTALL_DIR) $$(1)/usr/lib/iptables
  473. for m in $(patsubst xt_%,ipt_%,$(2)) $(patsubst ipt_%,xt_%,$(2)) $(patsubst xt_%,ip6t_%,$(2)) $(patsubst ip6t_%,xt_%,$(2)); do \
  474. if [ -f $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$$$$$${m}.so ]; then \
  475. $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$$$$$${m}.so $$(1)/usr/lib/iptables/ ; \
  476. fi; \
  477. done
  478. $(3)
  479. endef
  480. $$(eval $$(call BuildPackage,$(1)))
  481. endef
  482. $(eval $(call BuildPackage,iptables))
  483. $(eval $(call BuildPlugin,iptables-mod-conntrack-extra,$(IPT_CONNTRACK_EXTRA-m)))
  484. $(eval $(call BuildPlugin,iptables-mod-conntrack-label,$(IPT_CONNTRACK_LABEL-m)))
  485. $(eval $(call BuildPlugin,iptables-mod-extra,$(IPT_EXTRA-m)))
  486. $(eval $(call BuildPlugin,iptables-mod-physdev,$(IPT_PHYSDEV-m)))
  487. $(eval $(call BuildPlugin,iptables-mod-filter,$(IPT_FILTER-m)))
  488. $(eval $(call BuildPlugin,iptables-mod-ipopt,$(IPT_IPOPT-m)))
  489. $(eval $(call BuildPlugin,iptables-mod-ipsec,$(IPT_IPSEC-m)))
  490. $(eval $(call BuildPlugin,iptables-mod-nat-extra,$(IPT_NAT_EXTRA-m)))
  491. $(eval $(call BuildPlugin,iptables-mod-iprange,$(IPT_IPRANGE-m)))
  492. $(eval $(call BuildPlugin,iptables-mod-cluster,$(IPT_CLUSTER-m)))
  493. $(eval $(call BuildPlugin,iptables-mod-clusterip,$(IPT_CLUSTERIP-m)))
  494. $(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m)))
  495. $(eval $(call BuildPlugin,iptables-mod-hashlimit,$(IPT_HASHLIMIT-m)))
  496. $(eval $(call BuildPlugin,iptables-mod-rpfilter,$(IPT_RPFILTER-m)))
  497. $(eval $(call BuildPlugin,iptables-mod-led,$(IPT_LED-m)))
  498. $(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m)))
  499. $(eval $(call BuildPlugin,iptables-mod-tee,$(IPT_TEE-m)))
  500. $(eval $(call BuildPlugin,iptables-mod-u32,$(IPT_U32-m)))
  501. $(eval $(call BuildPlugin,iptables-mod-nflog,$(IPT_NFLOG-m)))
  502. $(eval $(call BuildPlugin,iptables-mod-trace,$(IPT_DEBUG-m)))
  503. $(eval $(call BuildPlugin,iptables-mod-nfqueue,$(IPT_NFQUEUE-m)))
  504. $(eval $(call BuildPlugin,iptables-mod-checksum,$(IPT_CHECKSUM-m)))
  505. $(eval $(call BuildPackage,ip6tables))
  506. $(eval $(call BuildPlugin,ip6tables-extra,$(IPT_IPV6_EXTRA-m)))
  507. $(eval $(call BuildPlugin,ip6tables-mod-nat,$(IPT_NAT6-m)))
  508. $(eval $(call BuildPackage,libiptc))
  509. $(eval $(call BuildPackage,libip4tc))
  510. $(eval $(call BuildPackage,libip6tc))
  511. $(eval $(call BuildPackage,libxtables))