Changeset 21883


Ignore:
Timestamp:
2010-06-23T00:39:22+02:00 (6 years ago)
Author:
jow
Message:

[netfilter] package TPROXY target and module infrastructure

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/netfilter.mk

    r21796 r21883  
    278278 
    279279 
     280# tproxy 
     281 
     282$(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_MATCH_SOCKET, $(P_XT)xt_socket)) 
     283$(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_TARGET_TPROXY, $(P_XT)xt_TPROXY)) 
     284 
     285 
    280286# 
    281287# ebtables 
     
    330336IPT_BUILTIN += $(IPT_NATHELPER_EXTRA-y) 
    331337IPT_BUILTIN += $(IPT_ULOG-y) 
     338IPT_BUILTIN += $(IPT_TPROXY-y) 
    332339IPT_BUILTIN += $(EBTABLES-y) 
    333340IPT_BUILTIN += $(EBTABLES_IP4-y) 
  • trunk/package/iptables/Makefile

    r21799 r21883  
    214214- libipt_recent 
    215215endef 
     216 
     217define Package/iptables-mod-tproxy 
     218$(call Package/iptables/Module, +kmod-ipt-tproxy) 
     219  TITLE:=Transparent proxy iptables extensions 
     220endef 
     221 
     222define Package/iptables-mod-tproxy/description 
     223Transparent proxy iptables extensions. 
     224Includes: 
     225- libxt_socket 
     226- libxt_TPROXY 
     227endef 
     228 
    216229 
    217230define Package/iptables-utils 
     
    381394$(eval $(call BuildPlugin,iptables-mod-iprange,$(IPT_IPRANGE-m))) 
    382395$(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m))) 
     396$(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m))) 
    383397$(eval $(call BuildPackage,ip6tables)) 
    384398$(eval $(call BuildPackage,ip6tables-utils)) 
  • trunk/package/kernel/modules/netfilter.mk

    r21700 r21883  
    284284 
    285285 
     286define KernelPackage/ipt-tproxy 
     287  TITLE:=Transparent proxying support 
     288  DEPENDS:=@LINUX_2_6 
     289  KCONFIG:= \ 
     290        CONFIG_NETFILTER_TPROXY \ 
     291        CONFIG_NETFILTER_XT_MATCH_SOCKET \ 
     292        CONFIG_NETFILTER_XT_TARGET_TPROXY 
     293  FILES:= \ 
     294        $(LINUX_DIR)/net/netfilter/nf_tproxy_core.$(LINUX_KMOD_SUFFIX) \ 
     295        $(foreach mod,$(IPT_TPROXY-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX)) 
     296  AUTOLOAD:=$(call AutoLoad,45,$(notdir nf_tproxy_core $(IPT_TPROXY-m))) 
     297  $(call AddDepends/ipt) 
     298endef 
     299 
     300define KernelPackage/ipt-tproxy/description 
     301  Kernel modules for Transparent Proxying 
     302endef 
     303 
     304$(eval $(call KernelPackage,ipt-tproxy)) 
     305 
     306 
    286307define KernelPackage/ipt-iprange 
    287308  TITLE:=Module for matching ip ranges 
  • trunk/target/linux/generic-2.6/config-2.6.25

    r21356 r21883  
    972972# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set 
    973973# CONFIG_NETFILTER_XT_MATCH_STRING is not set 
     974# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set 
    974975# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set 
    975976# CONFIG_NETFILTER_XT_MATCH_TIME is not set 
     
    985986# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set 
    986987# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set 
     988# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set 
    987989# CONFIG_NETFILTER_XT_TARGET_TRACE is not set 
    988990CONFIG_NETFILTER=y 
  • trunk/target/linux/generic-2.6/config-2.6.30

    r21724 r21883  
    13571357# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set 
    13581358# CONFIG_NETFILTER_XT_MATCH_STRING is not set 
     1359# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set 
    13591360# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set 
    13601361# CONFIG_NETFILTER_XT_MATCH_TIME is not set 
     
    13731374# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set 
    13741375# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set 
     1376# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set 
    13751377# CONFIG_NETFILTER_XT_TARGET_TRACE is not set 
    13761378CONFIG_NETFILTER=y 
  • trunk/target/linux/generic-2.6/config-2.6.31

    r21724 r21883  
    13531353# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set 
    13541354# CONFIG_NETFILTER_XT_MATCH_STRING is not set 
     1355# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set 
    13551356# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set 
    13561357# CONFIG_NETFILTER_XT_MATCH_TIME is not set 
     
    13691370# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set 
    13701371# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set 
     1372# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set 
    13711373# CONFIG_NETFILTER_XT_TARGET_TRACE is not set 
    13721374CONFIG_NETFILTER=y 
  • trunk/target/linux/generic-2.6/config-2.6.32

    r21747 r21883  
    14341434# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set 
    14351435# CONFIG_NETFILTER_XT_MATCH_STRING is not set 
     1436# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set 
    14361437# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set 
    14371438# CONFIG_NETFILTER_XT_MATCH_TIME is not set 
     
    14501451# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set 
    14511452# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set 
     1453# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set 
    14521454# CONFIG_NETFILTER_XT_TARGET_TRACE is not set 
    14531455CONFIG_NETFILTER=y 
  • trunk/target/linux/generic-2.6/config-2.6.33

    r21750 r21883  
    14781478# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set 
    14791479# CONFIG_NETFILTER_XT_MATCH_STRING is not set 
     1480# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set 
    14801481# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set 
    14811482# CONFIG_NETFILTER_XT_MATCH_TIME is not set 
     
    14941495# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set 
    14951496# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set 
     1497# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set 
    14961498# CONFIG_NETFILTER_XT_TARGET_TRACE is not set 
    14971499CONFIG_NETFILTER=y 
  • trunk/target/linux/generic-2.6/config-2.6.34

    r21800 r21883  
    15091509# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set 
    15101510# CONFIG_NETFILTER_XT_MATCH_STRING is not set 
     1511# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set 
    15111512# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set 
    15121513# CONFIG_NETFILTER_XT_MATCH_TIME is not set 
     
    15251526# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set 
    15261527# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set 
     1528# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set 
    15271529# CONFIG_NETFILTER_XT_TARGET_TRACE is not set 
    15281530CONFIG_NETFILTER=y 
  • trunk/target/linux/generic-2.6/config-2.6.35

    r21748 r21883  
    15361536# CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set 
    15371537# CONFIG_NETFILTER_XT_MATCH_STRING is not set 
     1538# CONFIG_NETFILTER_XT_MATCH_SOCKET is not set 
    15381539# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set 
    15391540# CONFIG_NETFILTER_XT_MATCH_TIME is not set 
     
    15531554# CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set 
    15541555# CONFIG_NETFILTER_XT_TARGET_TEE is not set 
     1556# CONFIG_NETFILTER_XT_TARGET_TPROXY is not set 
    15551557# CONFIG_NETFILTER_XT_TARGET_TRACE is not set 
    15561558CONFIG_NETFILTER=y 
Note: See TracChangeset for help on using the changeset viewer.