Giter Club home page Giter Club logo

turboacc's People

Contributors

chenmozhijin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

turboacc's Issues

ax6 immortalwrt 23.05 编译出错

删除了953 613补丁
编译错误提示如下
patching file include/uapi/linux/in.h
patching file tools/include/uapi/linux/in.h
patching file net/netfilter/nf_conntrack_ecache.c
Hunk #1 FAILED at 266.
1 out of 1 hunk FAILED -- saving rejects to file net/netfilter/nf_conntrack_ecache.c.rej
patching file include/net/netns/conntrack.h
patching file net/netfilter/nf_conntrack_proto_tcp.c
patching file net/netfilter/nf_conntrack_standalone.c
Patch failed! Please fix /home/core/ax6-immortalwrt/target/linux/qualcommax/patches-6.6/0600-1-qca-nss-ecm-support-CORE.patch!
make[4]: *** [Makefile:32: /home/core/ax6-immortalwrt/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.6.30/.prepared_1e42c204ee5948ef57272df366bdfacb] Error 1
make[4]: Leaving directory '/home/core/ax6-immortalwrt/target/linux/qualcommax'
make[3]: *** [Makefile:11: compile] Error 2
make[3]: Leaving directory '/home/core/ax6-immortalwrt/target/linux'
time: target/linux/compile#2.45#10.23#9.27
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:32: target/linux/compile] Error 1
make[2]: Leaving directory '/home/core/ax6-immortalwrt'
make[1]: *** [target/Makefile:25: /home/core/ax6-immortalwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/core/ax6-immortalwrt'
make: *** [/home/core/ax6-immortalwrt/include/toplevel.mk:233: world] Error 2
core@ubuntu:~/ax6-immortalwrt$ make menuconfig
WARNING: Makefile 'package/feeds/telephony/freeswitch/Makefile' has a dependency on 'libpcre', which does not exist
tmp/.config-package.in:61501:error: recursive dependency detected!
tmp/.config-package.in:61501: symbol PACKAGE_luci-app-turboacc depends on PACKAGE_kmod-nft-fullcone
tmp/.config-package.in:15370: symbol PACKAGE_kmod-nft-fullcone is selected by PACKAGE_luci-app-turboacc
For a resolution refer to Documentation/kbuild/kconfig-language.rst
subsection "Kconfig recursive dependency limitations"
大佬,请问这是啥原因

可以重新加入DNS的开关吗

提个建议:turboacc作为一个便捷的开关集合,希望作者修改下原版的DNS开关,相比其他的dns插件dnsproxy支持的协议最全,但没有luci,用命令行控器比较麻烦,如果可以在这里直接控制dnsproxy就很方便

FullCone NAT 无法开启

图片
OpenWRT主线,前两天最新的master分支,没打其他的任何patch,几周前第一次尝试这个插件就有此问题,一直是master分支
图片
似乎nft_fullcone这个内核模块是挂上了的
图片
稍微读了下源码,然后发现/sys/module/nft_fullcone/refcnt是0,不知道是不是应该把issues发到nft-fullcone这个项目那边去
dmesg | grep fullconelogread | grep fullcone的结果都是空的,我不知道我应该去哪里找日志,如果有日志的话,还请告诉我

以下是我编译时安装的一些插件

luci

luci-app-acme
luci-app-ddns
luci-app-nlbwmon
luci-app-passwall2
luci-app-smartdns
luci-app-sqm
luci-app-statistics
luci-app-upnp
luci-app-wol

luci-theme-argon

luci-proto-wireguard

bind-dig
bind-host
bind-nslookup

ncat-full
nmap-full

acme-acmesh-dnsapi
ethtool-full
iperf3
tcpdump

nano-full
vim-full

acl
btrfs-progs
- Built with zstd support
ntfs-3g

dmesg
hwinfo
irqbalance
qrencode
smartmontools
whereis
which

collectd
- Enable ability to use with encrypted networking
collectd-mod-dns
collectd-mod-ethstat
collectd-mod-interface
collectd-mod-ping
collectd-mod-sensors
collectd-mod-thermal
collectd-mod-wireless

python3-speedtest-cli⏎                         

R6S的ImmortalWrt固件装不了...

Collected errors:

  • pkg_hash_check_unresolved: cannot find dependency nft-fullcone for luci-app-turboacc
  • pkg_hash_fetch_best_installation_candidate: Packages for luci-app-turboacc found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package luci-app-turboacc.
    ========================================================================================
    需要nft-fullcone,但软件包搜索到的是kmod-nft-fullcone(没有shortcut-fe,因为我弄不到)........

无fullcone的选项

image
用的这条命令curl -sSL https://raw.githubusercontent.com/chenmozhijin/turboacc/luci/add_turboacc.sh -o add_turboacc.sh && bash add_turboacc.sh
下面是命令执行过程

  • trap 'rm -rf "$TMPDIR"' EXIT
    ++ mktemp -d
  • TMPDIR=/tmp/tmp.9o03hu6wdf
  • '[' -d ./package ']'
    ++ sed -n '/VERSION_NUMBER:=$(if $(VERSION_NUMBER),$(VERSION_NUMBER),.)/p' include/version.mk
    ++ sed -e 's/.
    $(VERSION_NUMBER),//' -e 's/)//'
  • VERSION_NUMBER=SNAPSHOT
    ++ find ./include
    ++ sed -n '/kernel-[0-9]/p'
    ++ sed ':a;N;$!ba;s/\n/ /g'
    ++ sed -e s@./include/kernel-@@
  • kernel_versions='6.6 6.1 5.15'
  • '[' -z '6.6 6.1 5.15' ']'
  • echo 'kernel version: 6.6 6.1 5.15'
  • '[' -d ./package/turboacc ']'
    kernel version: 6.6 6.1 5.15
  • git clone --depth=1 --single-branch https://github.com/fullcone-nat-nftables/nft-fullcone /tmp/tmp.9o03hu6wdf/turboacc/nft-fullcone
    Cloning into '/tmp/tmp.9o03hu6wdf/turboacc/nft-fullcone'...
  • git clone --depth=1 --single-branch https://github.com/chenmozhijin/turboacc /tmp/tmp.9o03hu6wdf/turboacc/turboacc
    Cloning into '/tmp/tmp.9o03hu6wdf/turboacc/turboacc'...
  • [[ 0 = 2 ]]
  • git clone --depth=1 --single-branch --branch package https://github.com/chenmozhijin/turboacc /tmp/tmp.9o03hu6wdf/package
    Cloning into '/tmp/tmp.9o03hu6wdf/package'...
  • cp -r /tmp/tmp.9o03hu6wdf/turboacc/turboacc/luci-app-turboacc /tmp/tmp.9o03hu6wdf/turboacc/luci-app-turboacc
  • rm -rf /tmp/tmp.9o03hu6wdf/turboacc/turboacc
  • cp -r /tmp/tmp.9o03hu6wdf/package/shortcut-fe /tmp/tmp.9o03hu6wdf/turboacc/shortcut-fe
  • for kernel_version in $kernel_versions
  • patch_953_path=./target/linux/generic/hack-6.6/953-net-patch-linux-kernel-to-support-shortcut-fe.patch
  • patch_613_path=./target/linux/generic/pending-6.6/613-netfilter_optional_tcp_window_check.patch
  • '[' 6.6 = 6.6 ']'
  • patch_952_path=./target/linux/generic/hack-6.6/952-add-net-conntrack-events-support-multiple-registrant.patch
  • patch_952=952-add-net-conntrack-events-support-multiple-registrant.patch
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/hack-6.6/952-add-net-conntrack-events-support-multiple-registrant.patch ']'
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/hack-6.6/953-net-patch-linux-kernel-to-support-shortcut-fe.patch ']'
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/pending-6.6/613-netfilter_optional_tcp_window_check.patch ']'
  • cp -f /tmp/tmp.9o03hu6wdf/package/hack-6.6/952-add-net-conntrack-events-support-multiple-registrant.patch ./target/linux/generic/hack-6.6/952-add-net-conntrack-events-support-multiple-registrant.patch
  • cp -f /tmp/tmp.9o03hu6wdf/package/hack-6.6/953-net-patch-linux-kernel-to-support-shortcut-fe.patch ./target/linux/generic/hack-6.6/953-net-patch-linux-kernel-to-support-shortcut-fe.patch
  • cp -f /tmp/tmp.9o03hu6wdf/package/pending-6.6/613-netfilter_optional_tcp_window_check.patch ./target/linux/generic/pending-6.6/613-netfilter_optional_tcp_window_check.patch
  • grep -q CONFIG_NF_CONNTRACK_CHAIN_EVENTS ./target/linux/generic/config-6.6
  • echo '# CONFIG_NF_CONNTRACK_CHAIN_EVENTS is not set'
  • grep -q CONFIG_SHORTCUT_FE ./target/linux/generic/config-6.6
  • echo '# CONFIG_SHORTCUT_FE is not set'
  • for kernel_version in $kernel_versions
  • patch_953_path=./target/linux/generic/hack-6.1/953-net-patch-linux-kernel-to-support-shortcut-fe.patch
  • patch_613_path=./target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch
  • '[' 6.1 = 6.6 ']'
  • '[' 6.1 = 6.1 ']'
  • patch_952_path=./target/linux/generic/hack-6.1/952-add-net-conntrack-events-support-multiple-registrant.patch
  • patch_952=952-add-net-conntrack-events-support-multiple-registrant.patch
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/hack-6.1/952-add-net-conntrack-events-support-multiple-registrant.patch ']'
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/hack-6.1/953-net-patch-linux-kernel-to-support-shortcut-fe.patch ']'
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch ']'
  • cp -f /tmp/tmp.9o03hu6wdf/package/hack-6.1/952-add-net-conntrack-events-support-multiple-registrant.patch ./target/linux/generic/hack-6.1/952-add-net-conntrack-events-support-multiple-registrant.patch
  • cp -f /tmp/tmp.9o03hu6wdf/package/hack-6.1/953-net-patch-linux-kernel-to-support-shortcut-fe.patch ./target/linux/generic/hack-6.1/953-net-patch-linux-kernel-to-support-shortcut-fe.patch
  • cp -f /tmp/tmp.9o03hu6wdf/package/pending-6.1/613-netfilter_optional_tcp_window_check.patch ./target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch
  • grep -q CONFIG_NF_CONNTRACK_CHAIN_EVENTS ./target/linux/generic/config-6.1
  • echo '# CONFIG_NF_CONNTRACK_CHAIN_EVENTS is not set'
  • grep -q CONFIG_SHORTCUT_FE ./target/linux/generic/config-6.1
  • echo '# CONFIG_SHORTCUT_FE is not set'
  • for kernel_version in $kernel_versions
  • patch_953_path=./target/linux/generic/hack-5.15/953-net-patch-linux-kernel-to-support-shortcut-fe.patch
  • patch_613_path=./target/linux/generic/pending-5.15/613-netfilter_optional_tcp_window_check.patch
  • '[' 5.15 = 6.6 ']'
  • '[' 5.15 = 6.1 ']'
  • '[' 5.15 = 5.15 ']'
  • patch_952_path=./target/linux/generic/hack-5.15/952-add-net-conntrack-events-support-multiple-registrant.patch
  • patch_952=952-add-net-conntrack-events-support-multiple-registrant.patch
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/hack-5.15/952-add-net-conntrack-events-support-multiple-registrant.patch ']'
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/hack-5.15/953-net-patch-linux-kernel-to-support-shortcut-fe.patch ']'
  • for file_path in "$patch_952_path" "$patch_953_path" "$patch_613_path"
  • '[' -a ./target/linux/generic/pending-5.15/613-netfilter_optional_tcp_window_check.patch ']'
  • cp -f /tmp/tmp.9o03hu6wdf/package/hack-5.15/952-add-net-conntrack-events-support-multiple-registrant.patch ./target/linux/generic/hack-5.15/952-add-net-conntrack-events-support-multiple-registrant.patch
  • cp -f /tmp/tmp.9o03hu6wdf/package/hack-5.15/953-net-patch-linux-kernel-to-support-shortcut-fe.patch ./target/linux/generic/hack-5.15/953-net-patch-linux-kernel-to-support-shortcut-fe.patch
  • cp -f /tmp/tmp.9o03hu6wdf/package/pending-5.15/613-netfilter_optional_tcp_window_check.patch ./target/linux/generic/pending-5.15/613-netfilter_optional_tcp_window_check.patch
  • grep -q CONFIG_NF_CONNTRACK_CHAIN_EVENTS ./target/linux/generic/config-5.15
  • echo '# CONFIG_NF_CONNTRACK_CHAIN_EVENTS is not set'
  • grep -q CONFIG_SHORTCUT_FE ./target/linux/generic/config-5.15
  • echo '# CONFIG_SHORTCUT_FE is not set'
  • cp -r /tmp/tmp.9o03hu6wdf/turboacc ./package/turboacc
  • rm -rf ./package/libs/libnftnl ./package/network/config/firewall4 ./package/network/utils/nftables
  • [[ SNAPSHOT =~ ^22.03.* ]]
    ++ grep -o 'FIREWALL4_VERSION=.*' /tmp/tmp.9o03hu6wdf/package/version
    ++ cut -d = -f 2
  • FIREWALL4_VERSION=698a53354fd280aae097efe08803c0c9a10c14c2
    ++ grep -o 'LIBNFTNL_VERSION=.*' /tmp/tmp.9o03hu6wdf/package/version
    ++ cut -d = -f 2
  • LIBNFTNL_VERSION=1.2.6
    ++ grep -o 'NFTABLES_VERSION=.*' /tmp/tmp.9o03hu6wdf/package/version
    ++ cut -d = -f 2
  • NFTABLES_VERSION=1.0.9
  • cp -RT /tmp/tmp.9o03hu6wdf/package/firewall4-698a53354fd280aae097efe08803c0c9a10c14c2/firewall4 ./package/network/config/firewall4
  • cp -RT /tmp/tmp.9o03hu6wdf/package/libnftnl-1.2.6/libnftnl ./package/libs/libnftnl
  • cp -RT /tmp/tmp.9o03hu6wdf/package/nftables-1.0.9/nftables ./package/network/utils/nftables
  • echo Finish
    Finish
  • exit 0
  • rm -rf /tmp/tmp.9o03hu6wdf
    使用的immortalwrt源码,master分支,编译的时候已经把/package/network/utils/fullconenat-nft文件删除
    编译出来还是没有fullcone选项,
    包括官方opemwrt源码也一样没有这个选项

找不到fullcone的选项

使用immortalwrt的openwrt-23.05源码按照README的使用方法编译,没有fullcone的选项
Screenshot 2024-01-12 162210
执行/etc/init.d/firewall restart显示:

root@N1:~# /etc/init.d/firewall restart
nft_try_fullcone: cmd /usr/sbin/nft -c 'add table inet fw4-fullcone-test; add chain inet fw4-fullcone-test dstnat { type nat hook prerouting priority -100; policy accept; fullcone; }; add chain inet fw4-fullcone-test srcnat { type nat hook postrouting priority -100; policy accept; fullcone; }; ' 2>/dev/null
nft_try_fullcone failed, disable fullcone globally
nft_try_fullcone: cmd /usr/sbin/nft -c 'add table inet fw4-fullcone-test; add chain inet fw4-fullcone-test dstnat { type nat hook prerouting priority -100; policy accept; fullcone; }; add chain inet fw4-fullcone-test srcnat { type nat hook postrouting priority -100; policy accept; fullcone; }; ' 2>/dev/null
nft_try_fullcone failed, disable fullcone globally
Section @zone[0] (lan) fullcone in defaults not enabled, ignore zone fullcone settings
Section @zone[1] (wan) fullcone in defaults not enabled, ignore zone fullcone settings
Section docker (docker) fullcone in defaults not enabled, ignore zone fullcone settings
Section @rule[9] (Support-UDP-Traceroute) is disabled, ignoring section
Section @include[0] is not marked as compatible with fw4, ignoring section
Section @include[0] requires 'option fw4_compatible 1' to be considered compatible
Section miniupnpd option 'family' is not supported by fw4
Section miniupnpd option 'reload' is not supported by fw4
Section miniupnpd specifies unreachable path '/usr/share/miniupnpd/firewall.include', ignoring section
Section koolproxy option 'reload' is not supported by fw4
Section koolproxy specifies unreachable path '/var/etc/koolproxy.include', ignoring section
Section pptpd option 'reload' is not supported by fw4
Section pptpd specifies unreachable path '/etc/pptpd.include', ignoring section
Section vssr option 'reload' is not supported by fw4
Section vssr specifies unreachable path '/var/etc/vssr.include', ignoring section
Automatically including '/usr/share/nftables.d/table-post/20-miniupnpd.nft'
Automatically including '/usr/share/nftables.d/chain-post/dstnat/20-miniupnpd.nft'
Automatically including '/usr/share/nftables.d/chain-post/forward/20-miniupnpd.nft'
Automatically including '/usr/share/nftables.d/chain-post/srcnat/20-miniupnpd.nft'

请问一下这是什么情况?

Error on compiling

Hello,

I experiencing a error when I compile this with openwrt 23.05.0/23.05.2:

telegram-cloud-photo-size-4-6050608515262824469-y

I followed step by step your guide but I can't compile the code.

Can you help me?

无法启用Fullcone NAT

image
如上

# find /lib/modules/ | grep nft_fullcone.ko
/lib/modules/5.15.137/nft_fullcone.ko
# /etc/init.d/firewall restart
Section @defaults[0] specifies unknown option 'fullcone'
# cat "/sys/module/nft_flow_offload/refcnt"
1
# cat "/proc/sys/net/ipv4/tcp_congestion_control"
bbr
# cat "/sys/module/nft_fullcone/refcnt"
0

编译时发生错误

CC [M] net/netfilter/nf_conntrack_proto_tcp.o
In file included from ./include/linux/linkage.h:7,
from ./include/linux/kernel.h:8,
from ./include/linux/list.h:9,
from ./include/linux/timer.h:5,
from net/netfilter/nf_conntrack_proto_tcp.c:9:
net/netfilter/nf_conntrack_proto_tcp.c:35:19: error: 'nf_ct_tcp_no_window_check' undeclared here (not in a function)
35 | EXPORT_SYMBOL_GPL(nf_ct_tcp_no_window_check);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/export.h:104:23: note: in definition of macro '___EXPORT_SYMBOL'
104 | extern typeof(sym) sym;
| ^~~
./include/linux/export.h:161:41: note: in expansion of macro '__EXPORT_SYMBOL'
161 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
./include/linux/export.h:165:41: note: in expansion of macro '_EXPORT_SYMBOL'
165 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
net/netfilter/nf_conntrack_proto_tcp.c:35:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
35 | EXPORT_SYMBOL_GPL(nf_ct_tcp_no_window_check);

请问一下这是什么情况?吗,同时编译了MWAN3,WIREGUARD,UPNP

[openwrt/23.05]An error occurred while building Netfilter in the linux kernel

System: Windows11 WSL Ubuntu22.04
Openwrt Version: Official Openwrt / openwrt-23.05
Building target: ramips/mt7621/Xiaomi redmi AC2100
Error log: log
Error log summary:

Register multiple callbacks to ct events (NF_CONNTRACK_CHAIN_EVENTS) [N/y/?] (NEW) make[7]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[6]: *** [Makefile:628: syncconfig] Error 2
make[5]: *** [Makefile:748: include/config/auto.conf.cmd] Error 2

Diffconfig: config

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.