Guest User

Untitled

a guest
Sep 30th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. diff --git a/include/netfilter.mk b/include/netfilter.mk
  2. index 5d532ce..474a48b 100644
  3. --- a/include/netfilter.mk
  4. +++ b/include/netfilter.mk
  5. @@ -262,6 +262,9 @@ $(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_TARGET_TPROXY, $(P_XT)xt_TPR
  6. # led
  7. $(eval $(call nf_add,IPT_LED,CONFIG_NETFILTER_XT_TARGET_LED, $(P_XT)xt_LED))
  8.  
  9. +# tcpoptstrip
  10. +$(eval $(call nf_add,IPT_TCPOPTSTRIP,CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP, $(P_XT)xt_TCPOPTSTRIP))
  11. +
  12. # tee
  13.  
  14. $(eval $(call nf_add,IPT_TEE,CONFIG_NETFILTER_XT_TARGET_TEE, $(P_XT)xt_TEE))
  15. diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk
  16. index 51f3544..f36db6b 100644
  17. --- a/package/kernel/linux/modules/netfilter.mk
  18. +++ b/package/kernel/linux/modules/netfilter.mk
  19. @@ -549,6 +549,24 @@ endef
  20.  
  21. $(eval $(call KernelPackage,ipt-led))
  22.  
  23. +define KernelPackage/ipt-tcpoptstrip
  24. + TITLE:=Module to strip a TCP option
  25. + KCONFIG:= \
  26. + CONFIG_NETFILTER=y \
  27. + CONFIG_NETFILTER_ADVANCED=y \
  28. + CONFIG_IP_NF_MANGLE=y \
  29. + $(KCONFIG_IPT_TCPOPTSTRIP)
  30. + FILES:=$(foreach mod,$(IPT_TCPOPTSTRIP-m),$(LINUX_DIR)/net/$(mod).ko)
  31. + AUTOLOAD:=$(call AutoProbe,$(notdir $(IPT_TCPOPTSTRIP-m)))
  32. + $(call AddDepends/ipt)
  33. +endef
  34. +
  35. +define KernelPackage/ipt-tcpoptstrip/description
  36. + Netfilter target to strip a TCP option.
  37. +endef
  38. +
  39. +$(eval $(call KernelPackage,ipt-tcpoptstrip))
  40. +
  41. define KernelPackage/ipt-tproxy
  42. TITLE:=Transparent proxying support
  43. DEPENDS+=+kmod-ipt-conntrack +IPV6:kmod-nf-conntrack6 +IPV6:kmod-ip6tables
  44. diff --git a/package/network/utils/iptables/Makefile b/package/network/utils/iptables/Makefile
  45. index 1d758ed..40b096d 100644
  46. --- a/package/network/utils/iptables/Makefile
  47. +++ b/package/network/utils/iptables/Makefile
  48. @@ -377,6 +377,19 @@ iptables extension for triggering a LED.
Add Comment
Please, Sign In to add comment