Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Building help #6

Open
Keivan-sf opened this issue Mar 23, 2024 · 0 comments
Open

Building help #6

Keivan-sf opened this issue Mar 23, 2024 · 0 comments

Comments

@Keivan-sf
Copy link

Keivan-sf commented Mar 23, 2024

Hello there, This will be a messy issue description and I'm not experienced in go, so I am sorry in advance

The problem

I can't get the same nekobox_core binary included in nekoray gui client present in /config
os: Ubuntu 22.04.2

What I have done to compile the binary

  • I have cloned the repositories that had replace <repo-url> => ../<name> in go.mod (all main branch) respectively and put them on a parent directory and installed the dependencies with go get .
  • Also I have uncommented the line replace github.com/sagernet/sing-dns v1.0.0 => ../sing-dns and cloned it as well due to an error where CreateLocalTransport and CreateUDPTransport were undefined.
  • I've used go build -tags with_gvisor to build a binary for my system

Why it seems to be a different binary

The reason for that is I have a socks-5 proxy running at a local port and I use vpn-run-root.sh to do the packet flagging and everything for me in order to use it as a vpn (script is not modified I'm simply happy with it) but when I replace nekobox_core path in vpn-run-root.sh with the binary I've compiled, they behave differently, I keep getting this error repeatedly:
dns: exchange failed for connectivity-check.ubuntu.com. IN A: dial tcp 127.0.0.1:8081: no route to internet
Both the script and the sing-box-vpn.json are the same (except the outbound socks port in sing-box-vpn.json which is 8081)
The socks-5 proxy is functioning and the script is fine with the original nekobox_core provided in nekoray client.

I'm wondering if you could provide me with a description of how should this package be compiled, if there is any extra flag or certain commits in parent repositories I have to checkout to or maybe there is a different repo or...
Any help would be appreciated

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

No branches or pull requests

1 participant