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

"/bin/ash: naive: not found" on OpenWRT X86-64 #37

Closed
kousyougi opened this issue Feb 2, 2020 · 9 comments
Closed

"/bin/ash: naive: not found" on OpenWRT X86-64 #37

kousyougi opened this issue Feb 2, 2020 · 9 comments

Comments

@kousyougi
Copy link

I used OpenWrt 19.07.1_x86-64 at Qemu.
It can run caddy without error by their linux-x64 version.

When I started naiveproxy-linux-x64.
It showed "/bin/ash: naive: not found"

Should I build a OpenWrt Version? Is it difficult?
Please help. Thanks

@kousyougi
Copy link
Author

I tried to build it.
but still got this message:

/bin/ash: naive: not found

Could you please check what i missed?

My openwrt is
"https://downloads.openwrt.org/releases/19.07.1/targets/x86/64/openwrt-sdk-19.07.1-x86-64_gcc-7.5.0_musl.Linux-x86_64.tar.xz"

And I modified the following 2 file. ("get-clang.sh" &"get-openwrt.sh" )
modified this 2 lines on "get-clang.sh"

ARCH="Linux"
OPENWRT_FLAGS=true

added this to "get-openwrt.sh"

arch="x86_64"
release="19.07.1"
target="x86"
subtarget="64"
gcc_ver="7.5.0"

Thanks

@klzgrad
Copy link
Owner

klzgrad commented Feb 5, 2020

OpenWrt uses a different libc from Ubuntu (musl). The error means s working ELF interpreter is not found. The -linux-x64 builds are built for Ubuntus, not OpenWrt.

If you need a real OpenWrt build, tell me the architecture on which you plan to use it, and I'll create a new build.

@kousyougi
Copy link
Author

Thanks for your reply.
I really need a new OpenWrt build.

I use this architecture:
Official OpenWrt 19.07.1 x86-64 gcc-7.5.0
I thinks it is the most used architecture.

SDK: https://downloads.openwrt.org/releases/19.07.1/targets/x86/64/openwrt-sdk-19.07.1-x86-64_gcc-7.5.0_musl.Linux-x86_64.tar.xz

Thanks a lot.

@klzgrad
Copy link
Owner

klzgrad commented Feb 5, 2020

You're using it in QEMU, which I consider a test case, not a real workload. What kind of hardware do you use it for?

@kousyougi
Copy link
Author

I use a small computer ( CPU: intel N3150 ) runing MikroTik RouterOS's KVM.

MikroTik RouterOS:
Architecture Name: x86_64
Version: 6.45.8 (long-term)

My hardware:
CPU: Intel N3150
RAM: 8GB

Thanks

@klzgrad
Copy link
Owner

klzgrad commented Feb 5, 2020

See naiveproxy-v80.0.3987.87-1-openwrt-x86_64.tar.xz
in https://github.com/klzgrad/naiveproxy/releases/tag/v80.0.3987.87-1.

@kousyougi
Copy link
Author

kousyougi commented Feb 6, 2020

It can not work.

I've installed libnss 3.48-1 package on OpenWrt.

show this message on Firefox

PR_END_OF_FILE_ERROR

on OpenWrt

root@OpenWrt:/# /etc/naive/./naive /etc/naive/config.json
[0206/103436.329063:ERROR:cert_verify_proc_nss.cc(998)] CERT_PKIXVerifyCert for example.net failed err=-8179
[0206/103436.329992:ERROR:ssl_client_socket_impl.cc(941)] handshake failed; returned -1, SSL error code 1, net_error -202
[0206/103437.323163:ERROR:ssl_client_socket_impl.cc(941)] handshake failed; returned -1, SSL error code 1, net_error -202

and on the server side, I didn't see any connection coming from port 443.

@klzgrad
Copy link
Owner

klzgrad commented Feb 6, 2020

-8179 means SEC_ERROR_UNKNOWN_ISSUER. Your certificate is not generated correctly.

See "Generate certificates" in https://www.chromium.org/quic/playing-with-quic and https://source.chromium.org/chromium/chromium/src/+/master:docs/linux/cert_management.md (though you don't actually need certutil for adding root CA; you can do that in the browser with GUI).

@kousyougi
Copy link
Author

I found out that is my mistake. I resolved the wrong domain name before.
It can run well now on my OpenWrt X86-64.
The latency is so low compared with other tools.
Its a really good application. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants