Giter VIP home page Giter VIP logo

zerotierfix's Introduction

Zerotier Fix
Zerotier Fix

An unofficial Zerotier Android client patched from official client.

main peers moons

Build APP

Features

  • Self-hosted Moon Support
  • Add custom planet config via file and URL
  • View peers list
  • Chinese translation

Download

Check Releases page for latest version.

If you want to try the nightly build, you can download it from GitHub Actions. But please note that the nightly build may be BUGGY and UNSTABLE.

Copyright

The code for this repository is based on the reverse engineering of the official Android client. The original author is Grant Limberg ([email protected]). See AUTHORS.md for more details.

  • Zerotier JNI Sdk is located in git submodule externals/core
  • Original Android client code is located in net.kaaass.zerotierfix (renamed from com.zerotier.one)
  • App logo is a trademark of ZeroTier, Inc. and made by myself.

Roadmap

  • Add moon config persistent & file config
  • Add peer list view
  • Support planet config
  • Replace pre-built JNI library
  • Rewrite & update UI to fit Material Design
  • WIP Rewrite whole APP in v2

zerotierfix's People

Contributors

2770862886 avatar kaaass avatar sffxzzp 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  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

zerotierfix's Issues

可以做个ios的包么?

最近ios未签名的ipa,可以通过巨魔安装了(15.6以下系统)
不懂作者是否有空开发个ios的软件。。

安卓4.4.4闪退

最新版1.8.9
可以安装和启动app
但点击 开关连接就闪退了
手机oppo A31
安卓版本4.4.4

可以更新一下版本吗

官方已经到1.8.10了。现在这个版本好像有点问题:在仅IPv4环境下,无法连接zerotier网络内的IPv6。如果可以的话可以做个action自动编译

通信路径不生效

您好,想请问一下?我遇到了在Android端查看Windows节点,通信路径显示的是中继
#4 中您所说的,空world.bin,我也导入了,在查看列表中确实看不到其他根节点,只有两个叶节点(一个Windows节点,一个network结点)和一个Moon中转节点(腾讯云服务器Moon节点)。
想请教一下,这种情况应该如何解决呢?

权限问题可能导致本地导入Planet文件失败

您好,我在安卓上装了zerotierFix,添加网络成功了,也有ip,在入轨设置里导入moon节点,moon地址填的是moon的10位数的id号,完成之后显示配置文件已缓存,同时,把“通过zerotier路由”打钩了,但是用电脑ping手机的时候延迟有600多毫秒,感觉是没连接moon节点,请问您知道这是哪里出了问题吗?

moon端口改了

大佬moon服务器的端口改成其他的这个客户端是不是就连不上了?
之前默认9993可以连上看到延迟
自定义端口后延迟就一直-1
我电脑的客户端连的都正常。。。

Cannnot resolve dependencies

Hi sir
Debug version build is ok.
I tried to build the release version. I get the following missing dependencies error: Is there sth wrong with my configuration?

Execution failed for task ':app:lintVitalRelease'.

Could not resolve all files for configuration ':app:lintClassPath'.
Could not find com.android.tools.lint:lint-gradle:27.2.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/27.2.1/lint-gradle-27.2.1.pom
- https://jcenter.bintray.com/com/android/tools/lint/lint-gradle/27.2.1/lint-gradle-27.2.1.pom
Required by:
project :app

Possible solution:


I also tried to build in MacOS in debug mode. Again I got another missing dependency error:

Execution failed for task ':app:processDebugResources'.

Could not isolate parameters com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@4d854b62 of artifact transform AarResourcesCompilerTransform
Could not isolate value com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@4d854b62 of type AarResourcesCompilerTransform.Parameters
> Could not resolve all files for configuration ':app:detachedConfiguration1'.
> Could not find aapt2-4.2.1-7147631-osx.jar (com.android.tools.build:aapt2:4.2.1-7147631).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/4.2.1-7147631/aapt2-4.2.1-7147631-osx.jar

Possible solution:

求应用更新

官方应用内核已经更新到1.10.5了。作者大大快更新

使用教程

请问下有使用教程吗,为什么我看描述里看不懂要做什么,我在手机上也找不到关于zerotier安装路径和文件夹。(本意是想替换planet实现连接自建planet,但是找不到文件路径和文件夹)

Drawables missing

Hi Thanks for the great work
I was struggling to import this project in my android studio and build my own APK. It looks like some of the drawable files such as
baseline_link_24.xml
baseline_cloud_download_24
baseline_description_24

are missing
I manually build those drawable and it started working again... Is there a problem with the source code?

替换预编译 JNI 库为 ZT 源码编译 / Replace pre-built JNI library

描述

目前 Zerotier Fix 仍然在仓库中使用预编译的 JNI 库。这种分发方式使得 Zerotier Fix 目前无法做到完全的源码编译,因而降低了项目的透明度。此外,目前 Zerotier Fix 源码库中仍包含部分 ZT SDK 源码。这可能会造成 SDK 与 JNI 库对应的版本不一致,并且还有可能造成潜在的 LICENSE 问题。因此,本 Feature 旨在实现如下内容:

  1. 替换预编译的 JNI 库为从 ZT 源码编译
  2. 从目前仓库托管的源码树中移除 ZT SDK 相关的源码,转而在编译前从 Zerotier 官方仓库中获取对应版本的代码

相关 Issue

  • Windows 下编译 JNI 的脚本 #31
  • 更新内核版本,实现此 Feature 后应能一并解决 #19

能否不接管系统VPN

因为现在的方法无法与其它VPN软件共存,希望可以提供本地sock5或者http代理,然后用户在其它VPN软件中使用IP规则分流

最新alpha版依旧有卡在请求配置的错误

有时候开启连接,软件会显示已连接,但是VPN并没有启动。用其他VPN重新开然后冲突启动VPN才可以正常开启,然后就会出现正在请求配置。获取不到信息,但是实际已连接。在zerotier的设置页面所分配的ip地址是可以用的
手机是安卓13
1679933808278

支持老设备 Android 4.2.2

设备是车载导航,系统 是android4.2.2,联连的是手机热点共享出来的WIFI信号,可以上网,但用zerotier后台显示也可以上线,,我现在装 的是1.4.6版本的,可以在网页控制后台看到连上了,但就是不能访问内网资源,有没有支持老设备的zerotier新版本,我也不确定是连手机热点WIFI的问题(用另一部手机安装新版的zerotier1.89连接手机热点是可以访问内网资源的),还是什么原因导致,但换新一点的版本试下,看能不能解决

1.10.x alpha 版本的 VPN 权限与 VPN 连接建立存在问题

这里单开一个,最先问题应是由 #46

我这里的描述

首先,手机为三桑A53,未ROOT,系统 Android 13
由于之前一直使用Frp(么得办法。。全中转带宽遭不住)
换到ZeroTier手机也是第一次安装这个app,版本 1.0.6_011006_alpha

具体表现,不连接或者说连接开关打开后切换程序或者打开设置,总之是离开程序页面再回来,连接开关会回到关闭状态。
流量检测也看不到这个版本使用过任何流量,无论移动网络,WLAN下,流量使用始终是0KB,也就是这玩意不产生任何连接。
至于app不申请VPN权限,随后安装了上一个版本,产生连接后才会申请VPN权限,这里应是没什么问题
主要问题就是1.0.6_011006_alpha版本没有任何连接动作。

如您有类似问题,欢迎在此继续讨论反馈,这将在问题解决后关闭。

新人问题

Hi,我有一个小白问题想请教,请问libzt和ZerotierFix里的JNI wrapper是什么关系?我能不能使用libzt来直接connect到Zerotier呢?谢谢你们。

Moon节点无法连接

我使用腾讯云服务器做Moon节点,生成的Moon文件在我的PC和我的另一个内网服务器上测试过完全可以正常使用,但是将该Moon文件导入ZerotierFix后,却显示状态为中继。我的两个服务器之间ping,第一个包70ms,后续都是20ms,而手机ping内网服务器则始终400+ms

节点列表增加筛选与节点备注 / Add filtering and node remarks to the node list

建议在节点列表添加筛选过滤,其实看节点列表无非就是看节点是否有连接成功,每次刷新都得去上下寻找,添加筛选可以指定只看节点,每次下拉刷新出来的都是筛选过想要看的结果,还有就是如果能显示官方后台设置的备注名称,或者能给这个乱序字符节点名称自定义备注的功能就真的太棒了。谢谢

Does ZeroTierFix support DNS configuration override?

I have configured a DNS configuration override on zerotier.com:
Screenshot_20221108-102714.jpg

I have tested in official zerotier app with zerotier version 1.8.9-1, it can redirect DNS queries on my phone to my dns server and my private hostnames (like openwrt.lan) can be resolved. But on ZeroTierFix, I found that these hostname cannot be resolved.
Screenshot_20221108-103437.jpg
I tried to resolve hostnames in Termux by nslookup with specified DNS server, and the result is that I can get the right IPs.
Screenshot_20221108-103416.jpg

I want to know if there is any possible to add this feature?

MIUI 14.0.4 自定义PLANET 无法添加网络

机型:红米 NOTE 12 PRO
OS: MIUI 14.0.4

步骤:

  1. 下载 planet 文件,在设置中打开自定义 planet,并且导入。(提示成功)
  2. 点击主界面右下角的加号按钮,输入网络ID,此时下方的添加网络按钮是灰色的,点击之后没有相应。

是否是我的步骤有误,或者少了什么特别的权限?

安卓端与安卓端无法互通,安卓与PC端互通

软件和设备的版本:

  • zerotier-plant的服务器版本:v1.8.4,操作系统版本:Ubuntu 22.04
  • ZeroTier One PC客户端版本:v1.10.2,操作系统版本:Windows 11、Windows Server 2019
  • ZerotierFix 安卓客户端版本:v1.0.5_189,操作系统版本:Android 11 (MIUI 13)、Android 12 (Origin 2)

通讯情况:

  • 安卓->PC ✔
  • PC->安卓 ✔
  • 安卓->PC ✔
  • 安卓->安卓 ❌

请教下,手机和电脑都连接成功了,为啥ip无法访问

大佬你好,我的安卓手机和pc,都已经加入了 network。此时手机通过分配的内外ip去访问pc的nginx,发现无法访问。
手机端ping pc 的内外地址,以及pc ping 手机的内网地址,都不通。
但是手机上显示连接正常。是什么原因呢?
截图
截图_20230331215208

Support planet configuration

Abstract

Supporting planet configuration enables user to use their own planet file instead of one from Zerotier Inc. It allows user to configure self-hosted root server in Android device, which means a full isolation to Zerotier public network.

Support feature

  • Import custom planet file from local
  • Import custom planet file from url (Or a QR Code)
  • Reset planet file

服务器地址是否支持使用域名

[版本1.0.9]在添加服务器地址使用ip的自定义Planet时,网络是可以正常连接工作的,但是更改为服务器地址使用域名(例如xxx.f3322.net)的Planet时,会出现无法连接到网络的情况,无法获取网络名称,状态显示为‘正在请求配置’,但是pc端网络依旧正常连接,是否是Android端目前不支持使用域名,还是我操作错误,如果是不支持的话目前是否有替代方案,因为目前使用的服务器每隔一段时间会变更ip,然后服务器使用的是xubiaolin/docker-zerotier-planet,如果设置为固定ip需要经常重置非常麻烦

Enhancement Request: Start tunnel via Tasker

Would it be possible to add a hook so tasker can start/restart the Zerotier connection based on a set of conditions similar to how it can fire off an OpenVPN or Wireguard connection?

This would be extremely helpful to enable ZT when leaving home network and disable when returning home.

通过 Zt 网络进行远程 ADB 调试时 APP 占用大量内存并卡死 / The APP hangs and consumes excessive memory during remote ADB debugging via Zerotier

效果复现
1.使用zerotier和远程pc建立局域网
2.远程pc打开android studio,手机打开无线调试
3.远程pc的android studio使用 adb connect 局域网ip:port 连接手机

此时logcat中出现大量日志,手机zerotier内存占用飙升,直至卡死

目测是项目中的Log.d的问题,当产生流量时会打印debug信息,然后信息经过vpn转发后日志被层层放大,最后导致卡死

F-Droid

请问可以将应用发布到 F-Droid 吗?这个应用是开源的吗?我看到 Readme 里提到部分代码是逆向得到的。

节点列表的通信路径显示错误?

节点列表的通信路径显示错误?

多一个斜杠?而且ipv6显示也不太正常?

还有,这个延迟-1ms就是断线的意思吧?应该有正确的显示才对。
而且显示延迟有数字的也不一定真的在线?

[地址]:端口

IMG_20230326_064239.jpg

我提供一个Windows下编译Zerotier Core的bat脚本

我提供一个Windows下编译Zerotier Core(libZeroTierOneJNI.so)的bat脚本,脚本应该放置到ZeroTierOne 源码下java 目录。

NDK_HOME 指定 Android-SDK\ndk-bundle 目录
APP_PLATFORM 指定PLATFORM,对应Android-SDK\platforms目录
ZT1 ZeroTierOne 源码下java 目录 https://github.com/zerotier/ZeroTierOne/tree/master/java

set NDK_HOME=E:\Android\SDK\ndk-bundle
set APP_PLATFORM=android-28
set ZT1=%~dp0..\

%NDK_HOME%\ndk-build NDK_PROJECT_PATH=. NDK_DEBUG=0 APP_PLATFORM=%APP_PLATFORM%  ZT1=%Z1%

编译完成后,会放置到NDK_PROJECT_PATH\libs目录下。

目标节点没有和手机成功建立 p2p 连接,节点列表中延迟为-1ms,通信路径为中继

系统版本为安卓13、MIUI14.0.9
moon节点与其他linux的设备和windows的设备都可以建立正常连接
在planet导入过程中,我是从配置为moon节点的服务端中下载的planet文件,并通过本地导入文件的方式导入,过程中没有出现错误提示
服务端为华为云搭建的服务器
在移动的流量下会出现这样的问题,但是在实验室WIFI中也会出现这样的问题,而在同样WIFI下的pc则能正常p2p连接moon节点

节点列表中不停下拉刷新10次以上返回主界面闪退

华为手机系统鸿蒙2.0,后台运行一段时间系统提醒APP后台刷新频率高,耗电异常。
节点列表中不停下拉刷新10次以上返回主界面会闪退,可能是我不规范操作导致的。
以上是我使用期间反馈的问题,不得不说这个APP很棒!谢谢!

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.