Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2151 - kmod-ipt-tproxy package doesn't have xt_socket.ko, just xt_TPROXY.ko #7380

Closed
openwrt-bot opened this issue Feb 27, 2019 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

siweixiang:

branch: openwrt-18.06
commit: 9ee8c8d
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant