enfein / mieru

mieru is a socks5 / HTTP / HTTPS proxy to bypass censorship. 見える是一款 socks5 / HTTP / HTTPS 网络代理翻墙工具。
GNU General Public License v3.0
939 stars 123 forks source link

Feature: Add Mieru to Nekobox #89

Closed ellahmezar closed 5 months ago

ellahmezar commented 8 months ago

Hi , It will be great if you talk to Nekobox supervisors ,and add this wonderful feature to Nekobox . @enfein

Restia-Ashbell commented 6 months ago

可以添加一个带配置文件的启动命令吗,如“meiru run -c config.json”,在sing-box等支持mieru前,方便nekobox调用外核心就不用 另外开关核心了 @enfein

enfein commented 6 months ago

@Restia-Ashbell

可以通过环境变量指定配置文件,例如

MIERU_CONFIG_JSON_FILE=config.json mieru run

我在 SagerNet 中就是这么做的,NekoBox 应该可以达成同样的效果。

enfein commented 6 months ago

You can download preview APKs from issue #99 now.

ellahmezar commented 6 months ago

@enfein Hi , Many thanks . I downloaded the issue #99 and installed the apk , and ran miero on my server , but this error apears . What's the problem ?

Screenshot_20231212_141715_NekoBox

enfein commented 6 months ago

@ellahmezar If you install both APK files it should work.

If not, then you might need to clean the data of the previous NekoBox app. We have changed the database schema, and it may not be able to recognize the new plugin.

ellahmezar commented 6 months ago

@enfein Hi, I didn't install the second file (plugin) :))) It works now ,but the ping is about 340 in Nekobox ( Despite TUIC ping is about 140 )

1 / Can you do something that people can connect to Mieru in Nekobox "WITHOUT PLUGIN" ? ( I mean directly like other connection ways exist in Nekobox like vless , vmess & . . . ) 2 / Can you do something that reduces the ping Nekobox shown ? ( 340 is high in comparison of TUIC & Hysteria 2 that their ping is 150 in Nekobox )

Many thanks my dear friend , May God be with you .

enfein commented 6 months ago

If mieru becomes popular such that it is added to sing-box, then the plugin APK is no longer needed and the ping can be reduced. I will keep maintaining the software and wait for that to happen.

ellahmezar commented 6 months ago

@enfein Many thanks. I forgot to say , the upload speed is too weak in comparison with TUIC & Hysteria 2 plugins . Also the real ping is 30 ms higher than TUIC & Hysteria

enfein commented 6 months ago

You may want to try mieru TCP protocol, which is typically faster than UDP.

TUIC handshake is 0-RTT, so the real ping difference is like 140 vs 170. mieru deliberately chose 1-RTT handshake in order to preserve behaviors of socks5 protocol.

enfein commented 5 months ago

The programming work is done. The only missing piece is a new NekoBox release. For now, use instructions in issue #99 to run mieru in Android.