an iOS implementation of n2n
Go to file
2022-11-08 15:47:58 +08:00
bundles initial commit 2022-01-12 10:03:11 +08:00
hin2n initial commit 2022-01-12 10:03:11 +08:00
hin2n.xcodeproj initial commit 2022-01-12 10:03:11 +08:00
hin2nTests initial commit 2022-01-12 10:03:11 +08:00
hin2nUITests initial commit 2022-01-12 10:03:11 +08:00
n2n_libs_projects initial commit 2022-01-12 10:03:11 +08:00
openssl initial commit 2022-01-12 10:03:11 +08:00
Tunnel initial commit 2022-01-12 10:03:11 +08:00
.gitignore initial commit 2022-01-12 10:03:11 +08:00
LICENSE Initial commit 2022-01-12 10:01:04 +08:00
README.md Update README.md 2022-11-08 15:47:58 +08:00

hin2n-ios

This is a tiny iOS implementation of n2n.

  1. It works as a n2n edge to connect to supernode. It works on iOS device which need NOT be jailbreaked.
  2. It supports all versions of n2n(v1/v2/v2s/v3).
  3. Since Apple reject all GPL-only applications, we CANNOT publish it in Apple APP Store. You MUST clone source code and compile by yourself.
  4. To compile and run this APP, you MUST have an Apple developer account and have the Network-Extension entitlement.

some problems which are already known:

  1. It does NOT support the iOS emulator in xcode.
  2. If you switch to another app and switch back, the connection status may be temporarily abnormal.
  3. If you select the other VPN in system configuration, then click connect button in app, it will fail and network service will be abnormal after you click disconnect button.
  4. missing legality checking of some parameters.
  5. missing night theme adaption.

Notes:

Due to my job change, the maintenance of this project will be suspended.

Because my job in this project is to transplant and to adapt n2n code to iOS platform, please don't ask me problems about interface or VPN service.

And I've sold out my MacBook, so I can hardly build a IPA for this project.

hin2n-ios 说明

此为n2n的一个iOS简易实现。

  1. 它实现了在iOS设备(无需越狱)下作为edge工作,能够连接到supernode以实现NAT穿透。
  2. 支持全部n2n协议(v1/v2/v2s/v3)
  3. 由于苹果不支持仅以GPL协议发行的APP,我们无法在苹果商店上架。您必须自己下载代码并编译安装。
  4. 如果要编译,您必须拥有一个苹果开发者账号且确保申请了Network-Extension的权限。

部分已知问题:

  1. 不支持使用Xcode中的模拟器运行这个程序。
  2. 切出再切入APP,则连接状态会短暂地显示不正常。
  3. 如果用户选择了其他非hin2n的VPN,则点击连接按钮时会连接失败;再断开之后,就无法上网了。
  4. 未对部分参数做合法性判断
  5. 未适配深色主题

注意:由于本人工作变动,后续不再从事内网穿透或iOS适配的开发工作,此项目停止维护。 已有的问题主要是界面或者VPN服务的问题,而我在这个项目中负责的是代码移植和适配工作。 所以请不要问我界面或是VPN服务方面的问题。 此外,我的Mac设备已经出售,后续很难进行程序的编译了。也请不要向我索要IPA文件,谢谢!