kmod-ipt-tproxy package doesn't have xt_socket.ko, just xt_TPROXY.ko

Username: siweixiang

Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2151

branch

: openwrt-18.06

commit

: 9ee8c8da

platform

: mt7621

issue

: kmod-ipt-tproxy package doesn’t have xt_socket.ko, just xt_TPROXY.ko.

The following is my result:

mt7621 default kernel version is 4.14.103, but xt_socket.ko depends on CONFIG_NF_SOCKET_IPV4 CONFIG_NF_SOCKET_IPV6.

diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk index 3a989104d7..3398f7ff3a 100644 --- a/package/kernel/linux/modules/netfilter.mk +++ b/package/kernel/linux/modules/netfilter.mk @@ -554,6 +554,8 @@ define KernelPackage/ipt-tproxy TITLE:=Transparent proxying support DEPENDS+=+kmod-ipt-conntrack +IPV6:kmod-nf-conntrack6 +IPV6:kmod-ip6tables KCONFIG:= \

  •   CONFIG_NF_SOCKET_IPV4 \
  •   CONFIG_NF_SOCKET_IPV6 \
      CONFIG_NETFILTER_XT_MATCH_SOCKET \
      CONFIG_NETFILTER_XT_TARGET_TPROXY
    FILES:= \

But, I don’t know how to add CONFIG_NF_SOCKET_IPV4 or CONFIG_NF_SOCKET_IPV6 based on kernel version that built

Assignee Loading
Time tracking Loading