coolsnowwolf / lede

Lean's LEDE source
Other
29.69k stars 19.51k forks source link

编译后tproxy模块丢失 #7939

Open nJhEqnvK opened 3 years ago

nJhEqnvK commented 3 years ago

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

2. 详细叙述

(1) 具体问题

A:编译并安装固件后,无法使用iptables -t mangle相关命令(无报错,但不能正常转发给xray,相同配置在p2w_r619ac及cm520-79f上测试过没问题),检查发现疑似kmod-ipt-tproxyiptables-mod-tproxy未被正常编译,make menuconfig都已勾选上述包

(2) 路由器型号和固件版本

A:

  1. p2w_r619ac-128m (20210801 的代码能正常编译tproxy,20210925 的代码编译后tproxy丢失)
  2. xiaomi_ax3600 (20210831 编译后tproxy丢失)
  3. x86_64 (20210921 编译后tproxy丢失)

    (3) 详细日志

A:一共五个文件,四个config.buildinfo,一个.config

1. p2w_r619ac-128m 在 20210801 编译得到的 config.buildinfo ,tproxy正常 ``` CONFIG_TARGET_ipq40xx=y CONFIG_TARGET_MULTI_PROFILE=y CONFIG_TARGET_DEVICE_ipq40xx_DEVICE_mobipromo_cm520-79f=y CONFIG_TARGET_DEVICE_ipq40xx_DEVICE_mobipromo_cm520-79f=y CONFIG_TARGET_DEVICE_ipq40xx_DEVICE_p2w_r619ac-128m=y CONFIG_DEFAULT_luci-app-pptp-server=y CONFIG_LIBCURL_COOKIES=y CONFIG_LIBCURL_FILE=y CONFIG_LIBCURL_FTP=y CONFIG_LIBCURL_HTTP=y CONFIG_LIBCURL_NO_SMB="!" CONFIG_LIBCURL_OPENSSL=y CONFIG_LIBCURL_PROXY=y CONFIG_PACKAGE_6in4=y CONFIG_PACKAGE_curl=y CONFIG_PACKAGE_ip-full=y # CONFIG_PACKAGE_ip-tiny is not set CONFIG_PACKAGE_ip6tables=y CONFIG_PACKAGE_iperf3=y CONFIG_PACKAGE_iptables-mod-tproxy=y CONFIG_PACKAGE_ipv6helper=y CONFIG_PACKAGE_kmod-crypto-lib-blake2s=y CONFIG_PACKAGE_kmod-crypto-lib-chacha20=y CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=y CONFIG_PACKAGE_kmod-crypto-lib-curve25519=y CONFIG_PACKAGE_kmod-crypto-lib-poly1305=y CONFIG_PACKAGE_kmod-gre=y CONFIG_PACKAGE_kmod-ip6tables=y CONFIG_PACKAGE_kmod-ipt-nat6=y CONFIG_PACKAGE_kmod-ipt-tproxy=y CONFIG_PACKAGE_kmod-iptunnel=y CONFIG_PACKAGE_kmod-l2tp=y CONFIG_PACKAGE_kmod-lib-lzo=y CONFIG_PACKAGE_kmod-nf-ipt6=y CONFIG_PACKAGE_kmod-nf-nat6=y CONFIG_PACKAGE_kmod-nf-reject6=y CONFIG_PACKAGE_kmod-pppol2tp=y CONFIG_PACKAGE_kmod-sit=y CONFIG_PACKAGE_kmod-udptunnel4=y CONFIG_PACKAGE_kmod-udptunnel6=y CONFIG_PACKAGE_kmod-wireguard=y CONFIG_PACKAGE_kmod-zram=y CONFIG_PACKAGE_libbpf=y CONFIG_PACKAGE_libcap=y CONFIG_PACKAGE_libcurl=y CONFIG_PACKAGE_libelf=y CONFIG_PACKAGE_libsensors=y CONFIG_PACKAGE_libsysfs=y CONFIG_PACKAGE_lm-sensors=y CONFIG_PACKAGE_luci-app-pptp-server=y CONFIG_PACKAGE_luci-i18n-pptp-server-zh-cn=y CONFIG_PACKAGE_luci-proto-ipv6=y CONFIG_PACKAGE_ntpdate=y CONFIG_PACKAGE_odhcp6c=y CONFIG_PACKAGE_odhcp6c_ext_cer_id=0 CONFIG_PACKAGE_odhcpd-ipv6only=y CONFIG_PACKAGE_odhcpd_ipv6only_ext_cer_id=0 CONFIG_PACKAGE_ppp-mod-pppol2tp=y CONFIG_PACKAGE_pptpd=y CONFIG_PACKAGE_resolveip=y CONFIG_PACKAGE_screen=y CONFIG_PACKAGE_sysfsutils=y CONFIG_PACKAGE_wireguard-tools=y CONFIG_PACKAGE_xl2tpd=y CONFIG_PACKAGE_zram-swap=y CONFIG_DEFAULT_luci-app-pptp-server=y # CONFIG_PACKAGE_kmod-crypto-kpp is not set ```
2. p2w_r619ac-128m 在 20210925 编译得到的 config.buildinfo ,tproxy丢失 ``` CONFIG_TARGET_ipq40xx=y CONFIG_TARGET_MULTI_PROFILE=y CONFIG_TARGET_DEVICE_ipq40xx_DEVICE_mobipromo_cm520-79f=y CONFIG_TARGET_DEVICE_ipq40xx_DEVICE_mobipromo_cm520-79f=y CONFIG_TARGET_DEVICE_ipq40xx_DEVICE_p2w_r619ac-128m=y CONFIG_DEFAULT_luci-app-pptp-server=y CONFIG_LIBCURL_COOKIES=y CONFIG_LIBCURL_FILE=y CONFIG_LIBCURL_FTP=y CONFIG_LIBCURL_HTTP=y CONFIG_LIBCURL_NO_SMB="!" CONFIG_LIBCURL_OPENSSL=y CONFIG_LIBCURL_PROXY=y CONFIG_PACKAGE_6in4=y CONFIG_PACKAGE_curl=y CONFIG_PACKAGE_ip-full=y # CONFIG_PACKAGE_ip-tiny is not set CONFIG_PACKAGE_ip6tables=y CONFIG_PACKAGE_iperf3=y CONFIG_PACKAGE_iptables-mod-tproxy=y CONFIG_PACKAGE_ipv6helper=y CONFIG_PACKAGE_kmod-crypto-lib-blake2s=y CONFIG_PACKAGE_kmod-crypto-lib-chacha20=y CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=y CONFIG_PACKAGE_kmod-crypto-lib-curve25519=y CONFIG_PACKAGE_kmod-crypto-lib-poly1305=y CONFIG_PACKAGE_kmod-gre=y CONFIG_PACKAGE_kmod-ip6tables=y CONFIG_PACKAGE_kmod-ipt-nat6=y CONFIG_PACKAGE_kmod-ipt-tproxy=y CONFIG_PACKAGE_kmod-iptunnel=y CONFIG_PACKAGE_kmod-l2tp=y CONFIG_PACKAGE_kmod-lib-lzo=y CONFIG_PACKAGE_kmod-nf-ipt6=y CONFIG_PACKAGE_kmod-nf-nat6=y CONFIG_PACKAGE_kmod-nf-reject6=y CONFIG_PACKAGE_kmod-pppol2tp=y CONFIG_PACKAGE_kmod-sit=y CONFIG_PACKAGE_kmod-udptunnel4=y CONFIG_PACKAGE_kmod-udptunnel6=y CONFIG_PACKAGE_kmod-wireguard=y CONFIG_PACKAGE_kmod-zram=y CONFIG_PACKAGE_libbpf=y CONFIG_PACKAGE_libcap=y CONFIG_PACKAGE_libcurl=y CONFIG_PACKAGE_libelf=y CONFIG_PACKAGE_libsensors=y CONFIG_PACKAGE_libsysfs=y CONFIG_PACKAGE_lm-sensors=y CONFIG_PACKAGE_luci-app-pptp-server=y CONFIG_PACKAGE_luci-i18n-pptp-server-zh-cn=y CONFIG_PACKAGE_luci-proto-ipv6=y CONFIG_PACKAGE_ntpdate=y CONFIG_PACKAGE_odhcp6c=y CONFIG_PACKAGE_odhcp6c_ext_cer_id=0 CONFIG_PACKAGE_odhcpd-ipv6only=y CONFIG_PACKAGE_odhcpd_ipv6only_ext_cer_id=0 CONFIG_PACKAGE_ppp-mod-pppol2tp=y CONFIG_PACKAGE_pptpd=y CONFIG_PACKAGE_resolveip=y CONFIG_PACKAGE_screen=y CONFIG_PACKAGE_sysfsutils=y CONFIG_PACKAGE_wireguard-tools=y CONFIG_PACKAGE_xl2tpd=y CONFIG_PACKAGE_zram-swap=y CONFIG_DEFAULT_luci-app-pptp-server=y # CONFIG_PACKAGE_kmod-crypto-kpp is not set ```
3. x86_64 在 20210921 编译得到的 config.buildinfo ,tproxy丢失 ``` CONFIG_TARGET_x86=y CONFIG_TARGET_x86_64=y CONFIG_TARGET_x86_64_DEVICE_generic=y CONFIG_PACKAGE_6in4=y # CONFIG_PACKAGE_UnblockNeteaseMusic-Go is not set # CONFIG_PACKAGE_adbyby is not set CONFIG_PACKAGE_bash=y CONFIG_PACKAGE_btrfs-progs=y CONFIG_PACKAGE_ca-certificates=y CONFIG_PACKAGE_containerd=y CONFIG_PACKAGE_coreutils-nohup=y # CONFIG_PACKAGE_dns2socks is not set CONFIG_PACKAGE_docker=y CONFIG_PACKAGE_docker-compose=y CONFIG_PACKAGE_dockerd=y CONFIG_PACKAGE_fdisk=y # CONFIG_PACKAGE_ip-full is not set CONFIG_PACKAGE_ip-tiny=y CONFIG_PACKAGE_ip6tables=y CONFIG_PACKAGE_iperf3=y CONFIG_PACKAGE_iptables-mod-extra=y # CONFIG_PACKAGE_iptables-mod-ipsec is not set CONFIG_PACKAGE_ipv6helper=y CONFIG_PACKAGE_kmod-br-netfilter=y # CONFIG_PACKAGE_kmod-crypto-deflate is not set # CONFIG_PACKAGE_kmod-crypto-des is not set # CONFIG_PACKAGE_kmod-crypto-echainiv is not set CONFIG_PACKAGE_kmod-crypto-kpp=y CONFIG_PACKAGE_kmod-crypto-lib-blake2s=y CONFIG_PACKAGE_kmod-crypto-lib-chacha20=y CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=y CONFIG_PACKAGE_kmod-crypto-lib-curve25519=y CONFIG_PACKAGE_kmod-crypto-lib-poly1305=y # CONFIG_PACKAGE_kmod-crypto-md5 is not set CONFIG_PACKAGE_kmod-dax=y CONFIG_PACKAGE_kmod-dm=y CONFIG_PACKAGE_kmod-fs-btrfs=y CONFIG_PACKAGE_kmod-ikconfig=y # CONFIG_PACKAGE_kmod-ipsec is not set CONFIG_PACKAGE_kmod-ipt-extra=y # CONFIG_PACKAGE_kmod-ipt-ipsec is not set CONFIG_PACKAGE_kmod-ipt-nat6=y CONFIG_PACKAGE_kmod-iptunnel=y # CONFIG_PACKAGE_kmod-iptunnel6 is not set CONFIG_PACKAGE_kmod-keys-encrypted=y CONFIG_PACKAGE_kmod-keys-trusted=y CONFIG_PACKAGE_kmod-lib-lzo=y CONFIG_PACKAGE_kmod-lib-raid6=y CONFIG_PACKAGE_kmod-lib-xor=y CONFIG_PACKAGE_kmod-lib-zstd=y CONFIG_PACKAGE_kmod-nf-ipvs=y CONFIG_PACKAGE_kmod-nf-nat6=y CONFIG_PACKAGE_kmod-random-core=y CONFIG_PACKAGE_kmod-sit=y CONFIG_PACKAGE_kmod-tpm=y CONFIG_PACKAGE_kmod-udptunnel4=y CONFIG_PACKAGE_kmod-udptunnel6=y CONFIG_PACKAGE_kmod-veth=y CONFIG_PACKAGE_kmod-wireguard=y CONFIG_PACKAGE_libattr=y # CONFIG_PACKAGE_libbpf is not set CONFIG_PACKAGE_libbz2=y # CONFIG_PACKAGE_libcares is not set CONFIG_PACKAGE_libdb47=y CONFIG_PACKAGE_libdevmapper=y # CONFIG_PACKAGE_libelf is not set # CONFIG_PACKAGE_libev is not set CONFIG_PACKAGE_libffi=y CONFIG_PACKAGE_libgdbm=y # CONFIG_PACKAGE_libgmp is not set CONFIG_PACKAGE_liblzma=y CONFIG_PACKAGE_liblzo=y # CONFIG_PACKAGE_libmbedtls is not set CONFIG_PACKAGE_libnetwork=y CONFIG_PACKAGE_libpopt=y CONFIG_PACKAGE_libpython3=y CONFIG_PACKAGE_libseccomp=y CONFIG_PACKAGE_libsqlite3=y # CONFIG_PACKAGE_libudns is not set CONFIG_PACKAGE_libyaml=y CONFIG_PACKAGE_logrotate=y # CONFIG_PACKAGE_luci-app-accesscontrol is not set # CONFIG_PACKAGE_luci-app-adbyby-plus is not set # CONFIG_PACKAGE_luci-app-arpbind is not set # CONFIG_PACKAGE_luci-app-autoreboot is not set CONFIG_PACKAGE_luci-app-clash=y # CONFIG_PACKAGE_luci-app-ddns is not set CONFIG_PACKAGE_luci-app-docker=y # CONFIG_PACKAGE_luci-app-filetransfer is not set # CONFIG_PACKAGE_luci-app-ipsec-vpnd is not set # CONFIG_PACKAGE_luci-app-nlbwmon is not set # CONFIG_PACKAGE_luci-app-qbittorrent is not set # CONFIG_PACKAGE_luci-app-ramfree is not set # CONFIG_PACKAGE_luci-app-ssr-plus is not set # CONFIG_PACKAGE_luci-app-unblockmusic is not set # CONFIG_PACKAGE_luci-app-uugamebooster is not set CONFIG_PACKAGE_luci-app-wireguard=y # CONFIG_PACKAGE_luci-app-xlnetacc is not set CONFIG_PACKAGE_luci-i18n-docker-zh-cn=y CONFIG_PACKAGE_luci-i18n-wireguard-zh-cn=y # CONFIG_PACKAGE_luci-lib-fs is not set CONFIG_PACKAGE_luci-proto-ipv6=y CONFIG_PACKAGE_luci-proto-wireguard=y CONFIG_PACKAGE_luci-theme-material=y # CONFIG_PACKAGE_microsocks is not set # CONFIG_PACKAGE_nlbwmon is not set CONFIG_PACKAGE_odhcp6c=y CONFIG_PACKAGE_odhcp6c_ext_cer_id=0 CONFIG_PACKAGE_odhcpd-ipv6only=y CONFIG_PACKAGE_odhcpd_ipv6only_ext_cer_id=0 CONFIG_PACKAGE_python3=y CONFIG_PACKAGE_python3-asyncio=y CONFIG_PACKAGE_python3-attrs=y CONFIG_PACKAGE_python3-base=y CONFIG_PACKAGE_python3-bcrypt=y CONFIG_PACKAGE_python3-cached-property=y CONFIG_PACKAGE_python3-certifi=y CONFIG_PACKAGE_python3-cffi=y CONFIG_PACKAGE_python3-cgi=y CONFIG_PACKAGE_python3-cgitb=y CONFIG_PACKAGE_python3-chardet=y CONFIG_PACKAGE_python3-codecs=y CONFIG_PACKAGE_python3-cryptography=y CONFIG_PACKAGE_python3-ctypes=y CONFIG_PACKAGE_python3-dbm=y CONFIG_PACKAGE_python3-decimal=y CONFIG_PACKAGE_python3-distro=y CONFIG_PACKAGE_python3-distutils=y CONFIG_PACKAGE_python3-docker=y CONFIG_PACKAGE_python3-dockerpty=y CONFIG_PACKAGE_python3-docopt=y CONFIG_PACKAGE_python3-dotenv=y CONFIG_PACKAGE_python3-email=y CONFIG_PACKAGE_python3-gdbm=y CONFIG_PACKAGE_python3-idna=y CONFIG_PACKAGE_python3-jsonschema=y CONFIG_PACKAGE_python3-light=y CONFIG_PACKAGE_python3-logging=y CONFIG_PACKAGE_python3-lzma=y CONFIG_PACKAGE_python3-multiprocessing=y CONFIG_PACKAGE_python3-ncurses=y CONFIG_PACKAGE_python3-openssl=y CONFIG_PACKAGE_python3-paramiko=y CONFIG_PACKAGE_python3-pkg-resources=y CONFIG_PACKAGE_python3-ply=y CONFIG_PACKAGE_python3-pycparser=y CONFIG_PACKAGE_python3-pydoc=y CONFIG_PACKAGE_python3-pynacl=y CONFIG_PACKAGE_python3-pyrsistent=y CONFIG_PACKAGE_python3-readline=y CONFIG_PACKAGE_python3-requests=y CONFIG_PACKAGE_python3-setuptools=y CONFIG_PACKAGE_python3-six=y CONFIG_PACKAGE_python3-sqlite3=y CONFIG_PACKAGE_python3-texttable=y CONFIG_PACKAGE_python3-unittest=y CONFIG_PACKAGE_python3-urllib=y CONFIG_PACKAGE_python3-urllib3=y CONFIG_PACKAGE_python3-websocket-client=y CONFIG_PACKAGE_python3-xml=y CONFIG_PACKAGE_python3-yaml=y # CONFIG_PACKAGE_qBittorrent-static is not set # CONFIG_PACKAGE_resolveip is not set CONFIG_PACKAGE_runc=y # CONFIG_PACKAGE_shadowsocks-libev-ss-local is not set # CONFIG_PACKAGE_shadowsocks-libev-ss-redir is not set # CONFIG_PACKAGE_shadowsocks-libev-ss-server is not set # CONFIG_PACKAGE_shadowsocksr-libev-ssr-check is not set # CONFIG_PACKAGE_shadowsocksr-libev-ssr-local is not set # CONFIG_PACKAGE_shadowsocksr-libev-ssr-redir is not set # CONFIG_PACKAGE_shadowsocksr-libev-ssr-server is not set # CONFIG_PACKAGE_simple-obfs is not set # CONFIG_PACKAGE_strongswan is not set # CONFIG_PACKAGE_tcping is not set CONFIG_PACKAGE_tini=y # CONFIG_PACKAGE_uugamebooster is not set CONFIG_PACKAGE_wireguard-tools=y # CONFIG_PACKAGE_xray-core is not set CONFIG_QCOW2_IMAGES=y CONFIG_SQLITE3_DYNAMIC_EXTENSIONS=y CONFIG_SQLITE3_FTS3=y CONFIG_SQLITE3_FTS4=y CONFIG_SQLITE3_FTS5=y CONFIG_SQLITE3_JSON1=y CONFIG_SQLITE3_RTREE=y CONFIG_TARGET_EXT4_BLOCKSIZE=4096 CONFIG_TARGET_EXT4_BLOCKSIZE_4K=y CONFIG_TARGET_EXT4_RESERVED_PCT=0 CONFIG_TARGET_ROOTFS_EXT4FS=y CONFIG_TARGET_ROOTFS_PARTSIZE=1024 ```

4. xiaomi_ax3600 在 20210831 编译得到的 config.buildinfo ,tproxy丢失 ``` CONFIG_TARGET_ipq807x=y CONFIG_TARGET_ipq807x_generic=y CONFIG_TARGET_ipq807x_generic_DEVICE_xiaomi_ax3600=y CONFIG_PACKAGE_6in4=y CONFIG_PACKAGE_TURBOACC_INCLUDE_SHORTCUT_FE=y # CONFIG_PACKAGE_UnblockNeteaseMusic-Go is not set # CONFIG_PACKAGE_adbyby is not set CONFIG_PACKAGE_bash=y CONFIG_PACKAGE_ca-certificates=y # CONFIG_PACKAGE_coreutils-base64 is not set CONFIG_PACKAGE_coreutils-nohup=y # CONFIG_PACKAGE_dns2socks is not set CONFIG_PACKAGE_ip6tables=y CONFIG_PACKAGE_ip6tables-extra=y CONFIG_PACKAGE_ip6tables-mod-nat=y CONFIG_PACKAGE_iperf3=y # CONFIG_PACKAGE_iptables-mod-ipsec is not set CONFIG_PACKAGE_ipv6helper=y # CONFIG_PACKAGE_kmod-crypto-cbc is not set # CONFIG_PACKAGE_kmod-crypto-deflate is not set # CONFIG_PACKAGE_kmod-crypto-des is not set # CONFIG_PACKAGE_kmod-crypto-echainiv is not set CONFIG_PACKAGE_kmod-crypto-kpp=y CONFIG_PACKAGE_kmod-crypto-lib-blake2s=y CONFIG_PACKAGE_kmod-crypto-lib-chacha20=y CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=y CONFIG_PACKAGE_kmod-crypto-lib-curve25519=y CONFIG_PACKAGE_kmod-crypto-lib-poly1305=y # CONFIG_PACKAGE_kmod-crypto-md5 is not set CONFIG_PACKAGE_kmod-fast-classifier=y CONFIG_PACKAGE_kmod-ip6tables-extra=y # CONFIG_PACKAGE_kmod-ipsec is not set # CONFIG_PACKAGE_kmod-ipt-ipsec is not set CONFIG_PACKAGE_kmod-ipt-nat6=y CONFIG_PACKAGE_kmod-iptunnel=y # CONFIG_PACKAGE_kmod-iptunnel6 is not set CONFIG_PACKAGE_kmod-lib-lzo=y # CONFIG_PACKAGE_kmod-nf-conntrack-netlink is not set CONFIG_PACKAGE_kmod-nf-nat6=y CONFIG_PACKAGE_kmod-shortcut-fe=y CONFIG_PACKAGE_kmod-sit=y CONFIG_PACKAGE_kmod-udptunnel4=y CONFIG_PACKAGE_kmod-udptunnel6=y CONFIG_PACKAGE_kmod-wireguard=y CONFIG_PACKAGE_kmod-zram=y CONFIG_PACKAGE_libcap=y CONFIG_PACKAGE_libcap-bin=y CONFIG_PACKAGE_libcap-bin-capsh-shell="/bin/sh" CONFIG_PACKAGE_libdb47=y # CONFIG_PACKAGE_libev is not set # CONFIG_PACKAGE_libminiupnpc is not set # CONFIG_PACKAGE_libnatpmp is not set CONFIG_PACKAGE_libpopt=y CONFIG_PACKAGE_libreadline=y CONFIG_PACKAGE_libruby=y # CONFIG_PACKAGE_libsodium is not set # CONFIG_PACKAGE_libstdcpp is not set # CONFIG_PACKAGE_libudns is not set CONFIG_PACKAGE_libyaml=y CONFIG_PACKAGE_logrotate=y # CONFIG_PACKAGE_luci-app-accesscontrol is not set # CONFIG_PACKAGE_luci-app-adbyby-plus is not set # CONFIG_PACKAGE_luci-app-arpbind is not set # CONFIG_PACKAGE_luci-app-autoreboot is not set # CONFIG_PACKAGE_luci-app-ddns is not set # CONFIG_PACKAGE_luci-app-diskman_INCLUDE_btrfs_progs is not set # CONFIG_PACKAGE_luci-app-diskman_INCLUDE_lsblk is not set # CONFIG_PACKAGE_luci-app-filetransfer is not set # CONFIG_PACKAGE_luci-app-ipsec-vpnd is not set # CONFIG_PACKAGE_luci-app-nlbwmon is not set CONFIG_PACKAGE_luci-app-openclash=y # CONFIG_PACKAGE_luci-app-rclone_INCLUDE_fuse-utils is not set # CONFIG_PACKAGE_luci-app-rclone_INCLUDE_rclone-ng is not set # CONFIG_PACKAGE_luci-app-rclone_INCLUDE_rclone-webui is not set # CONFIG_PACKAGE_luci-app-ssr-plus is not set # CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_ShadowsocksR_Libev_Client is not set # CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadowsocks_Rust_Client is not set # CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Shadowsocks_Rust_Server is not set # CONFIG_PACKAGE_luci-app-ssr-plus_INCLUDE_Xray is not set # CONFIG_PACKAGE_luci-app-unblockmusic is not set # CONFIG_PACKAGE_luci-app-unblockmusic_INCLUDE_UnblockNeteaseMusic_Go is not set # CONFIG_PACKAGE_luci-app-vssr_INCLUDE_ShadowsocksR_Libev_Server is not set # CONFIG_PACKAGE_luci-app-vssr_INCLUDE_Trojan is not set # CONFIG_PACKAGE_luci-app-vssr_INCLUDE_Xray is not set # CONFIG_PACKAGE_luci-app-vssr_INCLUDE_Xray_plugin is not set # CONFIG_PACKAGE_luci-app-zerotier is not set # CONFIG_PACKAGE_luci-lib-fs is not set CONFIG_PACKAGE_luci-proto-ipv6=y CONFIG_PACKAGE_luci-proto-wireguard=y CONFIG_PACKAGE_luci-theme-material=y # CONFIG_PACKAGE_microsocks is not set # CONFIG_PACKAGE_nlbwmon is not set CONFIG_PACKAGE_ntpdate=y CONFIG_PACKAGE_odhcp6c=y CONFIG_PACKAGE_odhcp6c_ext_cer_id=0 CONFIG_PACKAGE_odhcpd-ipv6only=y CONFIG_PACKAGE_odhcpd_ipv6only_ext_cer_id=0 # CONFIG_PACKAGE_resolveip is not set CONFIG_PACKAGE_ruby=y CONFIG_PACKAGE_ruby-bigdecimal=y CONFIG_PACKAGE_ruby-date=y CONFIG_PACKAGE_ruby-dbm=y CONFIG_PACKAGE_ruby-digest=y CONFIG_PACKAGE_ruby-enc=y CONFIG_PACKAGE_ruby-forwardable=y CONFIG_PACKAGE_ruby-pstore=y CONFIG_PACKAGE_ruby-psych=y CONFIG_PACKAGE_ruby-stringio=y CONFIG_PACKAGE_ruby-strscan=y CONFIG_PACKAGE_ruby-yaml=y # CONFIG_PACKAGE_shadowsocks-rust-sslocal is not set # CONFIG_PACKAGE_shadowsocks-rust-ssserver is not set # CONFIG_PACKAGE_shadowsocksr-libev-ssr-check is not set # CONFIG_PACKAGE_shadowsocksr-libev-ssr-local is not set # CONFIG_PACKAGE_shadowsocksr-libev-ssr-redir is not set # CONFIG_PACKAGE_strongswan is not set CONFIG_PACKAGE_wireguard-tools=y # CONFIG_PACKAGE_zerotier is not set CONFIG_PACKAGE_zram-swap=y CONFIG_PACKAGE_kmod-tun=y CONFIG_PACKAGE_tcping=y CONFIG_PACKAGE_xray-core=y # CONFIG_PACKAGE_xray-example is not set # CONFIG_PACKAGE_xray-geodata is not set # CONFIG_XRAY_CORE_COMPRESS_GOPROXY is not set CONFIG_XRAY_CORE_COMPRESS_UPX=y ```

feeds中引入了两个custom源,之前都是正常的:

src-git small https://github.com/kenzok8/small
src-git kenzo https://github.com/kenzok8/openwrt-packages

还想麻烦大佬看一看是咋回事,谢谢!

(p2w_r619ac-128m 在 20210925 编译时的config太大,请见附件) config.txt

nJhEqnvK commented 3 years ago

重新编译了xiaomi_ax3600的固件,这次没有添加第三方源,编译后有tproxy,但无法正常使用

root@OpenWrt:~# ls /lib/modules/5.10.64/ | grep tproxy
nf_tproxy_ipv4.ko
nf_tproxy_ipv6.ko

root@OpenWrt:~# modprobe -v xt_TPROXY
xt_TPROXY is already loaded

root@OpenWrt:~# lsmod | grep -i tproxy
nf_defrag_ipv4         16384  3 xt_socket,xt_TPROXY,nf_conntrack
nf_defrag_ipv6         20480  3 xt_socket,xt_TPROXY,nf_conntrack
nf_tproxy_ipv4         16384  1 xt_TPROXY
nf_tproxy_ipv6         16384  1 xt_TPROXY
x_tables               32768 38 xt_FULLCONENAT,ipt_REJECT,xt_time,xt_tcpudp,xt_state,xt_socket,xt_quota,xt_policy,xt_pkttype,xt_physdev,xt_owner,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_esp,xt_conntrack,xt_comment,xt_cgroup,xt_addrtype,xt_TPROXY,xt_TCPMSS,xt_REDIRECT,xt_MASQUERADE,xt_LOG,xt_CT,iptable_raw,iptable_mangle,iptable_filter,ipt_ah,ip_tables,xt_set,ip6t_NPT,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xt_TPROXY              16384  0

root@OpenWrt:~# iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
XRAY       all  --  anywhere             anywhere

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
TCPMSS     tcp  --  anywhere             anywhere             tcp flags:SYN,RST/SYN /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU
TCPMSS     tcp  --  anywhere             anywhere             tcp flags:SYN,RST/SYN /* !fw3: Zone wan MTU fixing */ TCPMSS clamp to PMTU

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Chain XRAY (1 references)
target     prot opt source               destination
RETURN     all  --  anywhere             0.0.0.0/8
RETURN     all  --  anywhere             10.0.0.0/8
RETURN     all  --  anywhere             100.64.0.0/10
RETURN     all  --  anywhere             127.0.0.0/8
RETURN     all  --  anywhere             169.254.0.0/16
RETURN     all  --  anywhere             172.16.0.0/12
RETURN     all  --  anywhere             192.0.0.0/24
RETURN     all  --  anywhere             192.0.2.0/24
RETURN     all  --  anywhere             192.88.99.0/24
RETURN     all  --  anywhere             198.18.0.0/15
RETURN     all  --  anywhere             198.51.100.0/24
RETURN     all  --  anywhere             203.0.113.0/24
RETURN     all  --  anywhere             base-address.mcast.net/4
RETURN     all  --  anywhere             240.0.0.0/4
RETURN     all  --  anywhere             255.255.255.255
RETURN     tcp  --  anywhere             192.168.0.0/16       tcp dpt:!3389
RETURN     udp  --  anywhere             192.168.0.0/16       udp dpt:!3389
RETURN     all  --  anywhere             anywhere             mark match 0xff
TPROXY     udp  --  anywhere             anywhere             TPROXY redirect 0.0.0.0:12345 mark 0x1/0xffffffff
TPROXY     tcp  --  anywhere             anywhere             TPROXY redirect 0.0.0.0:12345 mark 0x1/0xffffffff

tproxy转发脚本如下:

#!/bin/sh

# 设置策略路由
ip route add local default dev lo table 100
ip rule add fwmark 1 lookup 100

# 代理局域网设备
iptables -t mangle -N XRAY

iptables -t mangle -A XRAY -d 0.0.0.0/8 -j RETURN
iptables -t mangle -A XRAY -d 10.0.0.0/8 -j RETURN
iptables -t mangle -A XRAY -d 100.64.0.0/10 -j RETURN
iptables -t mangle -A XRAY -d 127.0.0.0/8 -j RETURN
iptables -t mangle -A XRAY -d 169.254.0.0/16 -j RETURN
iptables -t mangle -A XRAY -d 172.16.0.0/12 -j RETURN
iptables -t mangle -A XRAY -d 192.0.0.0/24 -j RETURN
iptables -t mangle -A XRAY -d 192.0.2.0/24 -j RETURN
iptables -t mangle -A XRAY -d 192.88.99.0/24 -j RETURN
# iptables -t mangle -A XRAY -d  192.168.0.0/16 -j RETURN
iptables -t mangle -A XRAY -d 198.18.0.0/15 -j RETURN
iptables -t mangle -A XRAY -d 198.51.100.0/24 -j RETURN
iptables -t mangle -A XRAY -d 203.0.113.0/24 -j RETURN
iptables -t mangle -A XRAY -d 224.0.0.0/4 -j RETURN
iptables -t mangle -A XRAY -d 240.0.0.0/4 -j RETURN
iptables -t mangle -A XRAY -d 255.255.255.255/32 -j RETURN
iptables -t mangle -A XRAY -d 192.168.0.0/16 -p tcp ! --dport 3389 -j RETURN
iptables -t mangle -A XRAY -d 192.168.0.0/16 -p udp ! --dport 3389 -j RETURN

iptables -t mangle -A XRAY -m mark --mark 0xff -j RETURN 
iptables -t mangle -A XRAY -p udp -j TPROXY --on-port 12345 --tproxy-mark 1 # 给 UDP 打标记 1,转发至 12345 端口
iptables -t mangle -A XRAY -p tcp -j TPROXY --on-port 12345 --tproxy-mark 1 # 给 TCP 打标记 1,转发至 12345 端口
iptables -t mangle -A PREROUTING -j XRAY # 应用规则

xray已开debug,无任何流量进入:

2021/09/26 13:06:19 [Debug] app/router: MphDomainMatcher is enabled for 71354 domain rule(s)
2021/09/26 13:06:20 [Debug] app/router: MphDomainMatcher is enabled for 60813 domain rule(s)
2021/09/26 13:06:20 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:2053
2021/09/26 13:06:20 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:12345
2021/09/26 13:06:20 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:12345
2021/09/26 13:06:20 [Info] transport/internet/udp: listening UDP on 0.0.0.0:12345
2021/09/26 13:06:20 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:2053
2021/09/26 13:06:20 [Info] transport/internet/udp: listening UDP on 0.0.0.0:2053
2021/09/26 13:06:20 [Warning] core: Xray 1.4.5 started

麻烦各位大佬指点一下,谢谢!

w311ang commented 1 year ago

是不是请求也超时?

w311ang commented 1 year ago

楼主解决了吗,我K2P貌似也遇到了同样的问题

w311ang commented 1 year ago

只能是回退到20210801了

w311ang commented 1 year ago

已通过移除hnat模块解决

devioa commented 6 months ago

已通过移除hnat模块解决

你好我最近折腾 openwrt 透明代理也遇到了这个问题,你说的 hnat 模块是指的什么,谷歌搜了下好像是硬件 NAT 相关的,我是 x86 软路由,应该没有这个东西吧? tproxy 模块都是载入正常的,但是无法通过 tproxy 转发任何流量

root@OpenWrt:~# lsmod | grep -i tproxy
nf_defrag_ipv4         12288  2 xt_TPROXY,nf_conntrack
nf_defrag_ipv6         16384  2 xt_TPROXY,nf_conntrack
nf_tproxy_ipv4         12288  1 xt_TPROXY
nf_tproxy_ipv6         12288  1 xt_TPROXY
x_tables               24576 36 xt_FULLCONENAT,ipt_REJECT,xt_time,xt_tcpudp,xt_state,xt_quota,xt_pkttype,xt_physdev,xt_owner,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_cgroup,xt_addrtype,xt_TPROXY,xt_TCPMSS,xt_REDIRECT,xt_MASQUERADE,xt_LOG,xt_CT,iptable_raw,iptable_nat,iptable_mangle,iptable_filter,ip_tables,xt_set,ip6table_nat,ip6t_NPT,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xt_TPROXY              12288  0
devioa commented 6 months ago

是不是防火墙FullCone-NAT也要关闭? 改天有空关了试试看