switch-iot / hin2n Goto Github PK
View Code? Open in Web Editor NEWn2n support for mobiles
License: GNU General Public License v3.0
n2n support for mobiles
License: GNU General Public License v3.0
Setting up the right parameters for the n2n connection is boring. We should have a way to easily export/import/share n2n configurations.
首先,我参照一下两篇教程,在自己的vps上启动supernode和edge,然后部署DHCP服务。
http://www.lucktu.com/archives/786.html
https://bugxia.com/475.html
然后,在自己的PC上启动edge时,原本是通过 -a <本机IP>
参数指定虚拟LAN的IP地址
但是 -a 参数如果写成 -a <dhcp:DHCP服务器IP>
,那么就可以通过vps上的DHCP服务自动获取IP
我在自己的PC上已经成功了(如图,我是用的是bug侠制作的n2n启动器,效果和命令行是一样的)
我觉得,填在GUI里的东西,就是作为启动进程时的参数,所以从技术上讲,这么填其实可以使用DHCP,结果GUI强制格式检查导致不能这么填?
又或者是Hin2n里的edge在编译时阉割了DHCP,就算这么填也没用?
之前填写网关都能正常运行,最近用的时候发现app卡死了,关闭也得kill掉app才行,然后去掉网关后就可以使用
WARNING: Supernode not responding
ERROR: sendto failed (1) Operation not permitted
MIUI12,android10.0
The current ntop stable version is https://github.com/ntop/n2n/tree/2.6-stable . Currently hin2n only supports the latest ntop dev version. For interoperability, it would be nice to support the 2.6 stable version. If you want this feature, thumb up!
Right now is only possible to add a new Setting
The protocol versions v2 / v2s are not very meaningful for people without hin2n background. It would be useful to rename them v2 -> ntop dev n2n, v2s -> meyerd n2n
Once #14 is implemented, we should publish the new app as a lot of new hot features have been implemented!
建议增加自定义路由转发。原理是每次在创建VPNService时,用addDnsServer和addRoute方法,把自定义的DNS和路由信息参数加入进去,以达到配置自定义路由的效果(运行时修改自定义路由表的话,重新创建VPNService并重写新的参数即可)。因为实际使用中组网的目的不一定只是为了访问具体主机,在某些场合还有链路分流或者使用某一个节点的内网环境的需求。谢谢!
I am looking forward to there is a new release that support add multiple CIDR:gateway entry, the current gateway option works too weak in feature wise and cannot handle multiple LAN interconnection.... is there anyone WIP?
When I use hin2n on pad, it just support vertical display. But I want to horizontal operate on pad.
Could please support auto-rotation? Thx!!!
edge -c my12138 -k mysecretpass -a 192.168.100.1 -f -l supernode.ntop.org:7777
输出日志如下:
30/Jun/2022 03:43:56 [edge_utils.c:3168] adding supernode = supernode.ntop.org:7777
30/Jun/2022 03:43:56 [edge.c:1028] WARNING: switching to AES as key was provided
30/Jun/2022 03:43:56 [edge.c:1068] starting n2n edge 3.1.1-40-gcf23457-dirty Jun 30 2022 08:24:48
30/Jun/2022 03:43:56 [edge.c:1074] using compression: none.
30/Jun/2022 03:43:56 [edge.c:1075] using AES cipher.
30/Jun/2022 03:43:56 [edge_utils.c:392] number of supernodes in the list: 1
30/Jun/2022 03:43:56 [edge_utils.c:394] supernode 0 => supernode.ntop.org:7777
30/Jun/2022 03:43:56 [edge.c:1099] use manually set IP address
30/Jun/2022 03:43:56 [edge.c:1217] created local tap device IP: 192.168.100.1, Mask: 255.255.255.0, MAC: DE:3A:4E:84:91:B3
30/Jun/2022 03:43:56 [edge.c:1276] WARNING: n2n has not been compiled with libcap-dev; some commands may fail
30/Jun/2022 03:43:56 [edge.c:1282] dropping privileges to uid=9999, gid=9999
30/Jun/2022 03:43:56 [edge.c:1307] edge started
30/Jun/2022 03:43:56 [edge_utils.c:1160] successfully joined multicast group 224.0.0.68:1968
30/Jun/2022 03:44:00 [edge_utils.c:2527] [OK] edge <<< ================ >>> supernode
猜测原因可能是
ip route
查看系正常看起来更像是第一种情况,但是仍然不确定。
因此想咨询下各位大佬,当初开发这个项目的时候,应该是经历过一个阶段,在Android设备上,通过root可用,随后再实现的VpnService,以及在应用模拟的Tap设备。那么当初是如何让原版的n2n能够在root Android上直接运行的呢?
感谢各位大佬。
Hi man,
Could I know hin2n_v0.6.0-rc3 is base on n2n v2.8 or it will not be a problem to work with n2n v2.8.
配置MTU小于1300时,点击开始运行后crash
HM NOTE 1 LTE
java.lang.RuntimeException: Unable to start service wang.switchy.an2n.service.N2NService@423f7ff8 with Intent { cmp=wang.switchy.an2n/.service.N2NService (has extras) }: java.lang.IllegalStateException: command '87 interface fwmark rule add tun0' failed with '400 87 Failed to add fwmark rule (Success)'
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2721)
at android.app.ActivityThread.access$2100(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5052)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: command '87 interface fwmark rule add tun0' failed with '400 87 Failed to add fwmark rule (Success)'
at android.os.Parcel.readException(Parcel.java:1497)
at android.os.Parcel.readException(Parcel.java:1443)
at android.net.IConnectivityManager$Stub$Proxy.establishVpn(IConnectivityManager.java:1639)
at android.net.VpnService$Builder.establish(VpnService.java:472)
at wang.switchy.an2n.service.N2NService.onStartCommand(N2NService.java:79)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704)
... 10 more
java.lang.IllegalStateException: command '87 interface fwmark rule add tun0' failed with '400 87 Failed to add fwmark rule (Success)'
at android.os.Parcel.readException(Parcel.java:1497)
at android.os.Parcel.readException(Parcel.java:1443)
at android.net.IConnectivityManager$Stub$Proxy.establishVpn(IConnectivityManager.java:1639)
at android.net.VpnService$Builder.establish(VpnService.java:472)
at wang.switchy.an2n.service.N2NService.onStartCommand(N2NService.java:79)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704)
at android.app.ActivityThread.access$2100(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5052)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
HM NOTE 1 LTE
java.lang.RuntimeException: Unable to start service wang.switchy.an2n.service.N2NService@423c50f0 with Intent { cmp=wang.switchy.an2n/.service.N2NService (has extras) }: java.lang.IllegalStateException: command '2309 interface fwmark rule add tun0' failed with '400 2309 Failed to add fwmark rule (File exists)'
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2721)
at android.app.ActivityThread.access$2100(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5052)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: command '2309 interface fwmark rule add tun0' failed with '400 2309 Failed to add fwmark rule (File exists)'
at android.os.Parcel.readException(Parcel.java:1497)
at android.os.Parcel.readException(Parcel.java:1443)
at android.net.IConnectivityManager$Stub$Proxy.establishVpn(IConnectivityManager.java:1639)
at android.net.VpnService$Builder.establish(VpnService.java:472)
at wang.switchy.an2n.service.N2NService.onStartCommand(N2NService.java:79)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704)
... 10 more
java.lang.IllegalStateException: command '2309 interface fwmark rule add tun0' failed with '400 2309 Failed to add fwmark rule (File exists)'
at android.os.Parcel.readException(Parcel.java:1497)
at android.os.Parcel.readException(Parcel.java:1443)
at android.net.IConnectivityManager$Stub$Proxy.establishVpn(IConnectivityManager.java:1639)
at android.net.VpnService$Builder.establish(VpnService.java:472)
at wang.switchy.an2n.service.N2NService.onStartCommand(N2NService.java:79)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704)
at android.app.ActivityThread.access$2100(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5052)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
CMake Error at D:\workspace\vpns\1\hin2n\Hin2n_android\app\CMakeLists.txt:105 (add_library):
Cannot find source file:
src/main/cpp/slog/slog.c
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
gradle:4.6
Choosing the right protocol version can be challenging for new people. Since only the ntop n2n protocol is actively developed, we should move the other legacy protocols into the advanced section.
app版本是:hin2n_v1.0-rc1
手机型号:荣耀 V10
手机系统是:harmonyos 2.0.0.230
问题表现:app打开先是一片白,然后直接退出.
其他信息:在我的另外一台mate40中有同样的问题.
相关日志:
130|HWBKL:/ $ logcat --pid=12846
--------- beginning of system
05-19 23:55:04.098 12846 12846 D ActivityThread: Attach thread to application
05-19 23:55:04.117 12846 12868 I HwActivityThreadImpl: mSocketName: 03216872-5607-42b8-9b78-be886b787506
05-19 23:55:04.117 12846 12868 I HwActivityThreadImpl: initPreloadedSocked end mPreloadStatus 2
05-19 23:55:04.119 12846 12868 I HwActivityThreadImpl: before connect app.socketName:03216872-5607-42b8-9b78-be886b787506
05-19 23:55:04.128 12846 12846 W ActivityThread: Application wang.switchy.hin2n can be debugged on port 8100...
05-19 23:55:04.134 12846 12869 I ActivityThread: Init compatible state: true
05-19 23:55:04.268 12846 12846 I HwActivityThreadImpl: accept socket mSocketName: 03216872-5607-42b8-9b78-be886b787506
05-19 23:55:04.268 12846 12846 I HwActivityThreadImpl: accept socket end
05-19 23:55:04.268 12846 12868 I HwActivityThreadImpl: connectContinuePreload end mPreloadStatus 3
05-19 23:55:04.268 12846 12846 I HwActivityThreadImpl: acceptPreloadedApplication end mPreloadStatus 3
05-19 23:55:04.462 12846 12846 I ActivityThread: finishPreloaded preloadStatus 3
05-19 23:55:04.462 12846 12846 I ActivityThread: finishPreloaded end preloadStatus 3
05-19 23:55:04.463 12846 12846 I RtgSchedEvent: current pid:12846 AppType:-1
05-19 23:55:04.517 12846 12846 V ActivityThread: callActivityOnCreate
05-19 23:55:04.694 12846 12846 D ActivityThread: add activity client record, r= ActivityRecord{f280194 token=android.os.BinderProxy@9367da5 {wang.switchy.hin2n/wang.switchy.hin2n.activity.MainActivity}} token= android.os.BinderProxy@9367da5
--------- beginning of crash
05-19 23:55:04.708 12846 12846 E AndroidRuntime: FATAL EXCEPTION: main
05-19 23:55:04.708 12846 12846 E AndroidRuntime: Process: wang.switchy.hin2n, PID: 12846
05-19 23:55:04.708 12846 12846 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {wang.switchy.hin2n/wang.switchy.hin2n.activity.MainActivity}: android.database.sqlite.SQLiteException: no such column: T.HEADER_ENC (Sqlite code 1 SQLITE_ERROR): , while compiling: SELECT T."_id",T."VERSION",T."NAME",T."IP_MODE",T."IP",T."NETMASK",T."COMMUNITY",T."PASSWORD",T."DEV_DESC",T."SUPER_NODE",T."MORE_SETTINGS",T."SUPER_NODE_BACKUP",T."MAC_ADDR",T."MTU",T."LOCAL_IP",T."HOLE_PUNCH_INTERVAL",T."RESOVE_SUPERNODE_IP",T."LOCAL_PORT",T."ALLOW_ROUTING",T."DROP_MUTICAST",T."USE_HTTP_TUNNEL",T."TRACE_LEVEL",T."IS_SELCECTED",T."GATEWAY_IP",T."DNS_SERVER",T."ENCRYPTION_MODE",T."HEADER_ENC" FROM "N2NSettingList" T WHERE T."_id"=?, (OS error - 2:No such file or directory)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5078)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5121)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:190)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:105)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2613)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.os.Looper.loop(Looper.java:219)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8668)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: Caused by: android.database.sqlite.SQLiteException: no such column: T.HEADER_ENC (Sqlite code 1 SQLITE_ERROR): , while compiling: SELECT T."_id",T."VERSION",T."NAME",T."IP_MODE",T."IP",T."NETMASK",T."COMMUNITY",T."PASSWORD",T."DEV_DESC",T."SUPER_NODE",T."MORE_SETTINGS",T."SUPER_NODE_BACKUP",T."MAC_ADDR",T."MTU",T."LOCAL_IP",T."HOLE_PUNCH_INTERVAL",T."RESOVE_SUPERNODE_IP",T."LOCAL_PORT",T."ALLOW_ROUTING",T."DROP_MUTICAST",T."USE_HTTP_TUNNEL",T."TRACE_LEVEL",T."IS_SELCECTED",T."GATEWAY_IP",T."DNS_SERVER",T."ENCRYPTION_MODE",T."HEADER_ENC" FROM "N2NSettingList" T WHERE T."_id"=?, (OS error - 2:No such file or directory)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1030)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:637)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:610)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:66)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:37)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:46)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1482)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1416)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at org.greenrobot.greendao.database.StandardDatabase.rawQuery(StandardDatabase.java:32)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at org.greenrobot.greendao.AbstractDao.load(AbstractDao.java:147)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at wang.switchy.hin2n.activity.MainActivity.onResume(MainActivity.java:326)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1472)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.Activity.performResume(Activity.java:8351)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5068)
05-19 23:55:04.708 12846 12846 E AndroidRuntime: ... 11 more
你好,App的community的字符串长度无法设置大于15个字符
我是用community当做自己搭建服务器的密码,n2n官网也是这么建议的,我设置的community字符会大于15个字符.
windows电脑版的n2n是可以连接成功的,但是App版本无法保存大于15个字符才community.
希望这个功能可以改进一下,谢谢,非常感谢您的辛苦付出.
感谢.
Are you planning to add AES encryption?
6.0以上创建文件提示没有权限,需求动态申请权限
需要测试下写入目录/storage/sdcard0/wang.switchy.hin2n/
和/sdcard/wang.switchy.hin2n/
那个生效,是否不同版本路径不同
建议增加断线自动重连、自动打通指定隧道和指定网络(WIFI、流量或指定的WIFI)连接后自动启动的功能。
断线重连功能主要针对节点网络波动或者supernode不稳定导致连接断开的情况。
另外,建议增加自动打通指定隧道功能。具体情况是,新节点每次连接进n2n网络时,第一次与其中的某节点通信,打通隧道总是需要等待一定的时间,而打通后就不用再等待了,所以最好能根据事先的设定,让APP在连接n2n网络后,自动打通指定的一些节点的隧道(比如用ping的方式向节点发送数据),这样使用体验会好很多。
Hello i'm using this app on my Huawei Honor 4x running android 6 marshmallow.
i tried v0.5.2 and it did not work! then tried v0.6.0 and nothing changed...
i compiled 'supernode' for my windows 10 computer using vs2013 and i can connect using Edge GUI.
also i connect with the 'edgenode' that i compiled on several linux systems that i have( such as ubuntu kali and raspbian[raspberry pi] ) and they all work fine!
when i connect with Hin2n app a 'key icon' shows up on the notification bar(saying that a vpn is connected).
then, i can ping the ip that i set for my phone from an app on the phone it self and the ping response time is under 1ms !
but i can not ping my phone from any other edgenodes that are connected ...
any idea what is the problem?
n2n 2.8 introduced full header encryption (- H option), will hin2n add support for this feature?
The header which contains some metadata like the virtual MAC address of the edge nodes, their IP address and the community name optionally can be encrypted applying -H on the edges.
Great work adding ability to add DNS Server and it eliminated the DNS Leak.
However, my ip address is exposed (Leaking). Would it be possible to hide the ip address? Thanks
Do tests in link below.
https://ipleak.net
My top like this,
however the problem is when I use Android netwokr tools to ping the openwrt router's Lan , it works very wired, it can ping time by time and sometimes it is unreachable , but the 10.0.0.x address can ping well. I not understand even if I have set the gateway and dns pointed to one of openwrt there, why it is not working stable? is the route table changed time by time mysteriously? what is t he mechanism of this on Android?
BTW: is it possible to enhance this app that I can define 3-5 static routers to wan or lan dev like what I could do on a PC, I guess it will resolve the issue above, seems configure a gw there would be problem and not working as desired in most senario.
It would be useful to be able to set a custom DNS server in hin2n. This can be done with https://developer.android.com/reference/android/net/VpnService.Builder.html#addDnsServer(java.net.InetAddress) .
Your ReadMe says:
Hin2n now supports all v1/v2/v2s protocols
but I installed https://github.com/switch-iot/hin2n/releases/download/hin2n_v0.6.0-rc8_debug-7-gc2c9a59/hin2n_v0.6.0-rc8_debug-7-normal_allarch.apk on my Android 11 phone and the only protocol version that connected was v1.
v2 and v3 gave errors like:
07/Jun/2021 19:12:04 [supernode.c: 325] WARNING: Received packet with unknown protocol version (2): discarded
07/Jun/2021 19:12:07 [supernode.c: 317] WARNING: Received packet too short [len=34]
07/Jun/2021 19:12:08 [ n2n.c: 560] WARNING: Receive error [Success] or pkt too short [len=32]
07/Jun/2021 19:16:16 [supernode.c: 325] WARNING: Received packet with unknown protocol version (3): discarded
v2s gave a GUI error in the mobile app and once crashed it.
Supernode info:
Welcome to n2n v.1.3.2 for x86_64
Built on 04/17/18 07:52:27 AM
至少可以修改其它配置,更好的是可以修改正在用的配置,保存后自动重启并使用新的配置。
针对 0.5.0 版本。
Hello! I am trying to forward all internet traffic from one android device to another, but not sure how to do it correctly. I saw this functionality mentioned in #19 and #9
On each device I added an edge node with specific IP (10.0.0.50 and 10.0.0.51), made sure that there are no connection issues and that I can ping one device from another.
I checked [enable packet forwarding] checkbox on both devices.
I added gateway IP 10.0.0.50 on a device with IP 10.0.0.51 and reconnected both devices
And after this change, device with IP 10.0.0.51 cannot ping any IP on the internet or access any external website
I tried both v2 and v3, different servers, but it seems like result is always the same - no connection. Am I doing something wrong?
2020-06-30 19:55:15.977 11228-11228/wang.switchy.hin2n V/AudioManager: playSoundEffect effectType: 0
2020-06-30 19:55:15.978 11228-11228/wang.switchy.hin2n V/AudioManager: querySoundEffectsEnabled...
2020-06-30 19:55:15.981 11228-11228/wang.switchy.hin2n D/edge_jni: in stop
2020-06-30 19:55:15.981 11228-11228/wang.switchy.hin2n D/edge_jni: ResetEdgeStatus tid = 517589284080, cleanup = 0
2020-06-30 19:55:19.716 11228-11276/wang.switchy.hin2n D/IMonitor: Load library imonitor_jni
2020-06-30 19:55:19.723 11228-11276/wang.switchy.hin2n E/ZrHungImpl: sendAppFreezeEvent failed!
2020-06-30 19:55:19.774 11228-11378/wang.switchy.hin2n W/n2n: 30/Jun/2020 19:55:19 [/home/emanuele/src/hin2n/Hin2n_android/app/src/main/cpp/n2n_v2/src/edge_utils.c:405] WARNING: Failed to resolve supernode host supernode.ntop.org, assuming numeric
2020-06-30 19:55:19.775 11228-11378/wang.switchy.hin2n E/n2n: 30/Jun/2020 19:55:19 [/home/emanuele/src/hin2n/Hin2n_android/app/src/main/cpp/n2n_v2/src/edge_utils.c:696] ERROR: sendto failed (13) Permission denied
2020-06-30 19:55:19.780 11228-11378/wang.switchy.hin2n E/n2n: 30/Jun/2020 19:55:19 [/home/emanuele/src/hin2n/Hin2n_android/app/src/main/cpp/n2n_v2/src/edge_utils.c:1158] ERROR: stop command received.
2020-06-30 19:55:22.031 11228-11276/wang.switchy.hin2n E/ZrHungImpl: sendAppFreezeEvent failed!
2020-06-30 19:55:35.946 11228-11276/wang.switchy.hin2n E/ZrHungImpl: sendAppFreezeEvent failed!
Auto configuration in gradle completes, but CMake fails to find many source files that are, in fact there, and gives "could not determine linker language" errors on folder symlinks.
How is this project built???
Looks like the Debug APK won't connect to the supernode. Apparently, only the Release APK can use VPNService. The Debug APK hangs at the access risk warning message first time connect is attempted.
Is there a way to add routes other than the one automatically provided by the choosen IP address?
RT
节点1的数据经由2转发
qq475417525
实现数据路由
I am using the mdns protocol to send and receive multicast messages and I find that this is not possible.
I am wondering this project is suspended? Looks like it is far behind the n2n server side development....
as there are N2N3.0 released and there are two important features for me:
Can anyone help to integrate those features to this Android project? It is highly appericiated. thanks!
Both devices create VPN, but mDNS can't find each other,why??
近日国内有一叫做"世纪星耀联机平台"的游戏盒子应用在手机版上使用了hin2n和其中继
但其并没有将软件开源,甚至使用此软件收取大量"捐赠费用",并在群内侮辱用户
想请问一下这个问题能否通过官方途径解决
Install the released app into my cellphone, and an error occurs:
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "EVP_CIPHER_CTX_reset" referenced by "libedge_v2.so"...
Name: it is recommended to have a default value, such as 2020070701, 2020070702
Recommended version number: v1/v2_2.6/v2_dev/v2_meyerd, when a version is selected, add a comment below indicating where it came from and the reference date. (for example, https://github.com/meyerd/n2n/tree/master/n2n_v1 Cited by 10 Oct 2017. Please do not use such marks: v1.0/v1.3.2/v2.5.0/v2.7.0, these figures are ambiguous)
Encryption: default twofish. the default is compatible with previous versions, so that unfamiliar people don't get it wrong and can connect to other devices
It is recommended that all items have a default value to guide the user to write correctly ( if not, give an example in title). for example, supernode, 1.2.3.4:10086 (Gateway IP address: 192.168.2.0/24:10.0.0.1).
MTU: for meyerd's n2n, using 1400 would result in poor communication, and 1390 would not work either. the maximum I measured was 1387, while the official is 1290, which I found to be too small, is recommended at 1384.
Thank you all!
android29,没法设置低版本,因为高版本访问文件系统需要用到android:requestLegacyExternalStorage="true"
JNI DETECTED ERROR IN APPLICATION: fid == null
in call to GetStaticObjectField
from com.xxx.model.EdgeStatus N2NService.getEdgeStatus()
Hin2nApplication类缺少以下so文件 ,麻烦问一下应在哪里下载
System.loadLibrary("slog");
System.loadLibrary("uip.c");
System.loadLibrary("n2n_v2s");
// n2n_v2 is part of edge_v2 due to dependency on the g_status
System.loadLibrary("n2n_v1");
System.loadLibrary("edge_v2s");
System.loadLibrary("edge_v2");
System.loadLibrary("edge_v1");
System.loadLibrary("edge_jni");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.