bol-van / zapret

DPI bypass multi platform
6.09k stars 528 forks source link

Проблемы с curl`ом поле установки запрет #422

Closed arsants closed 2 weeks ago

arsants commented 2 weeks ago

На OpenWrt 23.05.4 наблюдаются проблемы с curl`ом Error relocating /usr/bin/curl: curl_global_trace: symbol not found после установки zapret

BusyBox v1.36.1 (2024-07-15 22:14:18 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 23.05.4, r24012-d8dd03c46f, 240822

Прикрепляю вывод консоли

root@OpenWrt:/opt/zapret# curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

root@OpenWrt:/opt/zapret# ./install_bin.sh
x86_64 is NOT OK
x86 is NOT OK
aarch64 is OK
installing binaries ...
linking : ../binaries/aarch64/ip2net => /opt/zapret/ip2net
linking : ../binaries/aarch64/mdig => /opt/zapret/mdig
linking : ../binaries/aarch64/nfqws => /opt/zapret/nfq
linking : ../binaries/aarch64/tpws => /opt/zapret/tpws

root@OpenWrt:/opt/zapret# ./install_prereq.sh
* checking system
system is based on openwrt
openwrt firewall uses fw4. flow offloading requires nftables.
* checking privileges

WARNING ! you are running a low RAM system
WARNING ! nft requires lots of RAM to load huge ip sets, much more than ipsets require
WARNING ! if you need large lists it may be necessary to fall back to iptables+ipset firewall
select firewall type :
1 : iptables
2 : nftables
your choice (default : iptables) : 1
selected : iptables

enable ipv6 support (default : N) (Y/N) ? n
* checking prerequisites
* installing prerequisites
Downloading https://fantastic-packages.github.io/packages/releases/23.05/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/fantastic_packages_luci
Downloading https://fantastic-packages.github.io/packages/releases/23.05/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://fantastic-packages.github.io/packages/releases/23.05/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/fantastic_packages_packages
Downloading https://fantastic-packages.github.io/packages/releases/23.05/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
Upgrading curl on root from 8.1.2-1 to 8.7.1-r1...
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/packages/curl_8.7.1-r1_aarch64_cortex-a53.ipk
Installing ipset (7.17-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/base/ipset_7.17-1_aarch64_cortex-a53.ipk
Installing kmod-ipt-ipset (5.15.162-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/kmod-ipt-ipset_5.15.162-1_aarch64_cortex-a53.ipk
Installing libipset13 (7.17-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/base/libipset13_7.17-1_aarch64_cortex-a53.ipk
Package iptables-nft (1.8.8-2) installed in root is up to date.
Installing iptables-mod-extra (1.8.8-2) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/iptables-mod-extra_1.8.8-2_aarch64_cortex-a53.ipk
Installing kmod-ipt-extra (5.15.162-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/kmod-ipt-extra_5.15.162-1_aarch64_cortex-a53.ipk
Installing iptables-mod-nfqueue (1.8.8-2) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/iptables-mod-nfqueue_1.8.8-2_aarch64_cortex-a53.ipk
Installing kmod-nfnetlink-queue (5.15.162-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/kmod-nfnetlink-queue_5.15.162-1_aarch64_cortex-a53.ipk
Installing kmod-ipt-nfqueue (5.15.162-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/kmod-ipt-nfqueue_5.15.162-1_aarch64_cortex-a53.ipk
Installing iptables-mod-filter (1.8.8-2) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/iptables-mod-filter_1.8.8-2_aarch64_cortex-a53.ipk
Installing kmod-ipt-conntrack (5.15.162-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/kmod-ipt-conntrack_5.15.162-1_aarch64_cortex-a53.ipk
Installing kmod-ipt-filter (5.15.162-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/kmod-ipt-filter_5.15.162-1_aarch64_cortex-a53.ipk
Package iptables-mod-ipopt (1.8.8-2) installed in root is up to date.
Installing iptables-mod-conntrack-extra (1.8.8-2) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/iptables-mod-conntrack-extra_1.8.8-2_aarch64_cortex-a53.ipk
Installing kmod-nf-conncount (5.15.162-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/kmod-nf-conncount_5.15.162-1_aarch64_cortex-a53.ipk
Installing kmod-ipt-conntrack-extra (5.15.162-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages/kmod-ipt-conntrack-extra_5.15.162-1_aarch64_cortex-a53.ipk
Configuring kmod-nfnetlink-queue.
Configuring kmod-ipt-nfqueue.
Configuring kmod-ipt-extra.
Configuring iptables-mod-extra.
Configuring kmod-ipt-conntrack.
Configuring kmod-ipt-filter.
Configuring kmod-nf-conncount.
Configuring kmod-ipt-conntrack-extra.
Configuring iptables-mod-nfqueue.
Configuring curl.
Configuring kmod-ipt-ipset.
Configuring libipset13.
Configuring ipset.
Configuring iptables-mod-filter.
Configuring iptables-mod-conntrack-extra.

your system uses default busybox gzip. its several times slower than GNU gzip.
ip/host list scripts will run much faster with GNU gzip
installer can install GNU gzip but it requires about 100 Kb space
do you want to install GNU gzip (default : N) (Y/N) ? y
Installing gzip (1.12-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/packages/gzip_1.12-1_aarch64_cortex-a53.ipk
Configuring gzip.

press enter to continue

root@OpenWrt:/opt/zapret# curl google.com
Error relocating /usr/bin/curl: curl_global_trace: symbol not found

Что могло пойти не так?

bol-van commented 2 weeks ago

непонятно на кой черт было ставить iptables на openwrt 23. какой-то левый репозиторий подключен, который сломал curl причем тут zapret ?

arsants commented 2 weeks ago

Есть ли какие-то предложения по исправлению?

bol-van commented 2 weeks ago

см /etc/opkg там убрать все плюшки, видимо засевшие туда от чьей-то "сборки" отказаться от iptables

arsants commented 2 weeks ago

Спасибо, но дело оказалось не в этом, поправил ручной доустановкой libcurl4 для данной версии OpenWRT

bol-van commented 2 weeks ago

В своих репах все совместимо. Чужие репы могли появиться только из-за собственных действий, либо от васянской сборки

fantastic-packages.github.io

это левак

arsants commented 2 weeks ago

Да, я убирал из /etc/opkg/customfeeds.conf, эффект тот же, просто по какой-то причине не обновляется libcurl4 при обновлении curl

bol-van commented 2 weeks ago

В fantastic packages нет вроде ничего с curl связанного. distfeeds не правился на предмет версии ? Если захотеть таким образом обновиться на новый openwrt - так не выйдет

arsants commented 2 weeks ago

Ну тут вроде нет ничего криминального

root@OpenWrt:/etc/opkg# cat distfeeds.conf
src/gz openwrt_core https://downloads.openwrt.org/releases/23.05.4/targets/mediatek/filogic/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/base
# src/gz openwrt__alpine_fan_control https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/_alpine_fan_control
# src/gz openwrt__amneziawg https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/_amneziawg
# src/gz openwrt__ruantiblock https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/_ruantiblock
src/gz openwrt_luci https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://downloads.openwrt.org/releases/23.05.4/packages/aarch64_cortex-a53/telephony
bol-van commented 2 weeks ago

В любом случае с zapret это никак не связано. Может разрабы не дописали версию в зависимостях

arsants commented 2 weeks ago

В любом случае, спасибо за наводку, надеюсь кому-нибудь пригодится.