Compare commits

...
136 Commits
Author SHA1 Message Date
zhiyong.luo 0926163ab5 Update readme.md 2022-08-06 14:10:52 +08:00
zhiyong.luo f6bdb525d8 bug-fixed 2022-08-06 14:05:07 +08:00
zhiyong.luo 8e2a653f3a bug-fixed 2022-08-06 14:02:21 +08:00
zhiyong.luo 8f05ced9b1 bug-fixed 2022-08-06 14:00:11 +08:00
zhiyong.luo 74e8e60a1c Delete windows_x86v0.31.1.tar 2022-08-06 13:54:58 +08:00
zhiyong.luo 27dc32b20f Delete linux_x86v0.31.1.tar 2022-08-06 13:54:39 +08:00
zhiyong.luo 50a5fd3702 Delete linux_x86_64v0.31.1.tar 2022-08-06 13:54:17 +08:00
zhiyong.luo 302996c2e0 Delete linux_armv7v0.31.1.tar 2022-08-06 13:54:00 +08:00
zhiyong.luo e1443ca934 Delete app-release.apk 2022-08-06 13:53:49 +08:00
zhiyong.luo 5b6eca68b2 bug-fixed 2022-08-01 23:28:52 +08:00
zhiyong.luo 9579a47d4c bug-fixed 2022-08-01 23:27:21 +08:00
zhiyong.luo 08078adf04 Add files via upload 2022-07-31 00:25:55 +08:00
zhiyong.luo 641b640cc9 bug-fixed 2022-07-28 23:56:44 +08:00
zhiyong.luo 27d864979e bug-fixed 2022-07-28 23:50:43 +08:00
zhiyong.luo 7990272548 bug-fixed 2022-07-28 23:49:50 +08:00
zhiyong.luo b899c123b2 Delete app-release.apk 2022-07-28 23:48:35 +08:00
zhiyong.luo e9d53772fc Delete windows_x86v0.31.0.tar 2022-07-28 23:48:20 +08:00
zhiyong.luo de3b76abf0 Delete linux_x86v0.31.0.tar 2022-07-28 23:48:05 +08:00
zhiyong.luo 0ce10da228 Delete linux_x86_64v0.31.0.tar 2022-07-28 23:47:51 +08:00
zhiyong.luo 50881e941e Delete linux_armv7v0.31.0.tar 2022-07-28 23:46:39 +08:00
zhiyong.luo d68e1b68c4 bug-fixed 2022-07-24 12:47:35 +08:00
zhiyong.luo 050a2809a3 bug-fixed 2022-07-24 12:45:25 +08:00
zhiyong.luo 5d006f56ce bug-fixed 2022-07-24 09:15:15 +08:00
zhiyong.luo 2f38f410e2 bug-fixed 2022-07-23 23:19:12 +08:00
zhiyong.luo 7139de6d6c bug-fixed 2022-07-23 23:17:38 +08:00
zhiyong.luo d62fcd56db Update readme.md 2022-07-22 00:58:49 +08:00
zhiyong.luo fb9dc8116a upgrade 2022-07-22 00:47:05 +08:00
zhiyong.luo dfe36459af upgrade 2022-07-22 00:43:40 +08:00
zhiyong.luo d00fe79829 upgrade 2022-07-22 00:18:07 +08:00
zhiyong.luo f37702ad51 Delete windows_x86v0.30.4.tar 2022-07-22 00:16:50 +08:00
zhiyong.luo 1fc5801eef Delete linux_x86v0.30.4.tar 2022-07-22 00:16:37 +08:00
zhiyong.luo da1c5210df Delete linux_x86_64v0.30.4.tar 2022-07-22 00:16:21 +08:00
zhiyong.luo fdf1c0885e Delete linux_armv7v0.30.4.tar 2022-07-22 00:16:06 +08:00
zhiyong.luo 198349283b upgrade 2022-07-22 00:15:10 +08:00
zhiyong.luo a6411bdd51 bug-fixed 2022-07-09 18:15:49 +08:00
zhiyong.luo f6ebd0efb1 bug-fixed 2022-07-09 18:14:27 +08:00
zhiyong.luo aef2919932 Update readme.md 2022-07-01 00:01:50 +08:00
zhiyong.luo e16455d2d9 bug-fixed 2022-06-30 23:33:12 +08:00
zhiyong.luo 6fdbfcd82a Delete window_x86v0.30.4.tar 2022-06-30 23:31:17 +08:00
zhiyong.luo c216885949 bug-fixed 2022-06-30 23:30:17 +08:00
zhiyong.luo 0f34906c03 Update readme.md 2022-06-26 23:03:05 +08:00
zhiyong.luo 1c1a2a99de Add files via upload 2022-05-29 13:16:09 +08:00
zhiyong.luo 7d15b0b952 Delete linux_riscv64.tar 2022-05-29 13:13:58 +08:00
zhiyong.luo 1be4f57bb0 Delete linux_riscv32.tar 2022-05-29 13:13:44 +08:00
zhiyong.luo de8145267f Update readme.md 2022-05-19 13:18:29 +08:00
zhiyong.luo d32230f999 Update readme.md 2022-05-18 00:23:42 +08:00
zhiyong.luo 403d63d98b Update readme.md 2022-05-18 00:20:48 +08:00
zhiyong.luo 0df276252d Update readme.md 2022-05-18 00:17:24 +08:00
zhiyong.luo 3d7ddaaeba Update readme.md 2022-05-17 22:08:27 +08:00
zhiyong.luo ee46d135d5 bug-fixed 2022-05-17 21:59:43 +08:00
zhiyong.luo c89a9b13c3 bug-fixed 2022-05-17 21:58:08 +08:00
zhiyong.luo d7014c379f Update readme.md 2022-05-04 22:51:46 +08:00
zhiyong.luo ab733db183 Add files via upload 2022-05-04 22:45:31 +08:00
zhiyong.luo 2c73bb001a Add files via upload 2022-05-04 22:40:16 +08:00
zhiyong.luo 3329796561 Update readme.md 2022-04-21 21:59:43 +08:00
zhiyong.luo c63a35ddc9 bug-fixed 2022-04-21 13:18:45 +08:00
zhiyong.luo c04522d39d bug-fixed 2022-04-21 13:17:48 +08:00
zhiyong.luo e999ec388e Update readme.md 2022-04-20 22:51:57 +08:00
zhiyong.luo 27922e211e Update readme.md 2022-04-20 22:51:24 +08:00
zhiyong.luo fe3f526692 Add files via upload 2022-04-20 21:17:18 +08:00
zhiyong.luo b182930305 Update readme.md 2022-04-19 12:48:52 +08:00
zhiyong.luo 5501445fa2 Update readme.md 2022-04-19 12:44:23 +08:00
zhiyong.luo 65f7e1fbb1 Update readme.md 2022-04-19 12:41:29 +08:00
zhiyong.luo 06eb377186 Update readme.md 2022-04-19 12:28:31 +08:00
zhiyong.luo 8dd1a2e4fc Update readme.md 2022-04-19 10:00:13 +08:00
zhiyong.luo fb9071a8b6 Add files via upload 2022-04-17 18:19:19 +08:00
zhiyong.luo bf7081c268 Add files via upload 2022-04-17 16:17:38 +08:00
zhiyong.luo 8a665e143d Update language.js 2022-02-19 14:06:49 +08:00
zhiyong.luo 9cc519f7a5 bug-fixed 2022-02-18 21:39:48 +08:00
zhiyong.luo f56c06e098 bug-fixed 2022-02-18 21:38:31 +08:00
zhiyong.luo 5c97fd1787 bug-fixed 2022-02-17 22:00:53 +08:00
zhiyong.luo 40e77930b3 bug-fixed 2022-02-17 21:59:17 +08:00
zhiyong.luo 9586015f05 Update readme.md 2022-02-07 19:20:25 +08:00
zhiyong.luo c911e855b1 Delete window_x86v0.30.3.tar 2022-02-07 19:16:26 +08:00
zhiyong.luo 84c5962949 Delete linux_x86v0.30.3.tar 2022-02-07 19:15:53 +08:00
zhiyong.luo 37518a9d47 Delete linux_x86_64v0.30.3.tar 2022-02-07 19:15:32 +08:00
zhiyong.luo 5d79ef8633 Delete linux_armv7v0.30.3.tar 2022-02-07 19:15:12 +08:00
zhiyong.luo cc1862d040 bug-fixed 2022-02-07 19:14:48 +08:00
zhiyong.luo f935bf2ff5 bug-fixed 2022-02-07 19:13:48 +08:00
zhiyong.luo 488636909e Delete app-release.apk 2022-02-07 19:13:06 +08:00
zhiyong.luo 9ed3bf6ff5 Add files via upload 2022-02-07 19:12:43 +08:00
zhiyong.luo d66b6f0560 Delete macOS.tar 2022-02-07 19:11:35 +08:00
zhiyong.luo f16655a0ff Delete linux_x86_64.tar 2022-02-07 19:11:25 +08:00
zhiyong.luo 3fdc4375aa Delete linux_x86.tar 2022-02-07 19:11:14 +08:00
zhiyong.luo eeb745b9d4 Delete linux_mipsel32.tar 2022-02-07 19:11:04 +08:00
zhiyong.luo 7b05782f16 Delete linux_mips64.tar 2022-02-07 19:10:52 +08:00
zhiyong.luo a37a67b3a7 Delete linux_mips32.tar 2022-02-07 19:10:40 +08:00
zhiyong.luo e4314e7978 Delete linux_armv7.tar 2022-02-07 19:10:29 +08:00
zhiyong.luo cee3d0b68c Delete linux_arm64.tar 2022-02-07 19:10:15 +08:00
zhiyong.luo 37b5c0f12b Update readme.md 2022-01-06 22:21:32 +08:00
zhiyong.luo 11002663f6 Update readme.md 2021-12-31 11:02:06 +08:00
zhiyong.luo be718c21ce bug-fixed 2021-11-24 20:36:50 +08:00
zhiyong.luo b7283c0f59 bug-fixed 2021-11-24 20:35:45 +08:00
zhiyong.luo b992e9179d bug-fixed 2021-11-16 12:42:24 +08:00
zhiyong.luo 9895d8ee43 Update readme.md 2021-11-06 23:07:09 +08:00
zhiyong.luo 77fa72af0b bug-fixed 2021-11-05 21:43:35 +08:00
zhiyong.luo c0ece35452 Delete window_x86v0.30.2.tar 2021-11-05 21:42:42 +08:00
zhiyong.luo 4ed4eb8ec8 Delete linux_x86v0.30.2.tar 2021-11-05 21:42:31 +08:00
zhiyong.luo 4bb4aae511 Delete linux_x86_64v0.30.2.tar 2021-11-05 21:42:22 +08:00
zhiyong.luo 8b8b3ef4c3 Delete linux_armv7v0.30.2.tar 2021-11-05 21:42:11 +08:00
zhiyong.luo 25604ab19c bug-fixed 2021-11-05 21:41:58 +08:00
zhiyong.luo 01c8fe74a8 bug-fixed 2021-10-27 23:59:01 +08:00
zhiyong.luo c553603178 bug-fixed 2021-10-27 23:57:48 +08:00
zhiyong.luo 268165faf5 bug-fixed 2021-10-27 21:58:16 +08:00
zhiyong.luo 195fab7c1c Update readme.md 2021-10-26 15:09:15 +08:00
zhiyong.luo 100a6da558 Update readme.md 2021-10-26 15:08:38 +08:00
zhiyong.luo 6c512a2d74 Add files via upload 2021-10-26 14:51:58 +08:00
zhiyong.luo f39d607592 Add files via upload 2021-10-25 14:04:09 +08:00
zhiyong.luo c6f03fed0a bug-fixed 2021-10-23 00:06:28 +08:00
zhiyong.luo c975a19eee Delete app-release.apk 2021-10-23 00:06:03 +08:00
zhiyong.luo be509a680b bug-fixed 2021-10-22 23:59:19 +08:00
zhiyong.luo eefe8158ff bug-fixed 2021-10-21 18:42:05 +08:00
zhiyong.luo 2e17ac32d9 bug-fixed 2021-10-21 18:41:24 +08:00
zhiyong.luo 9c997e1411 bug-fixed 2021-10-20 18:29:44 +08:00
zhiyong.luo 92138aadb4 bug-fixed 2021-10-20 18:28:56 +08:00
zhiyong.luo 0c5cda270a Update readme.md 2021-10-20 10:44:20 +08:00
zhiyong.luo 628b1dac4b bug-fixed 2021-10-20 10:32:48 +08:00
zhiyong.luo 98a9e66b29 bug-fixed 2021-10-20 10:32:05 +08:00
zhiyong.luo 0cc496948f Update readme.md 2021-10-19 20:17:36 +08:00
zhiyong.luo 710ec0efac Delete window_x86v0.30.tar 2021-10-19 20:12:42 +08:00
zhiyong.luo 44a260ac5d Delete linux_x86v0.30.tar 2021-10-19 20:12:32 +08:00
zhiyong.luo f25ac089c6 Delete linux_x86_64v0.30.tar 2021-10-19 20:12:20 +08:00
zhiyong.luo 992dc2d9f5 Delete linux_armv7v0.30.tar 2021-10-19 20:12:10 +08:00
zhiyong.luo d2980e4e23 bug-fixed 2021-10-19 20:11:53 +08:00
zhiyong.luo 0f65577dc2 bug-fixed 2021-10-19 20:10:47 +08:00
zhiyong.luo 886f567e1d Update readme.md 2021-09-26 10:06:50 +08:00
zhiyong.luo 1763a1a5cb Update readme.md 2021-09-24 23:26:54 +08:00
zhiyong.luo 1de341ca4d bug-fixed 2021-09-24 23:22:27 +08:00
zhiyong.luo dc2c4f0f10 Delete window_x86v0.29.tar 2021-09-24 23:21:18 +08:00
zhiyong.luo f7053748f3 Delete linux_x86v0.29.tar 2021-09-24 23:21:04 +08:00
zhiyong.luo dc6f27853a Delete linux_x86_64v0.29.tar 2021-09-24 23:20:52 +08:00
zhiyong.luo df53000db8 Delete linux_armv7v0.29.tar 2021-09-24 23:20:39 +08:00
zhiyong.luo 0067da639d bug-fixed 2021-09-24 23:20:18 +08:00
zhiyong.luo 70f630ee2c Update readme.md 2021-08-17 09:40:39 +08:00
zhiyong.luo 2e517ea3a1 Update readme.md 2021-08-12 17:36:31 +08:00
zhiyong.luo a0b193f5f0 Update readme.md 2021-08-09 10:06:07 +08:00
27 changed files with 157 additions and 39 deletions
BIN
View File
Binary file not shown.
+6 -4
View File
@@ -6,7 +6,7 @@ var g_languages = [
,"清缓存"//4
,"改密码"//5
,"保 存"//6
,"自动刷新"//7
,"模式切换"//7
,"删 除"//8
,"登 录"//9
,"注 册"//10
@@ -103,6 +103,7 @@ var g_languages = [
,"配置修改成功!将在下次重启时生效"//101
,"移动网关将保持提供服务"//102
,"服务启动时间"//103
,"暴露服务集"//104
],
["English"
, "OK" //1
@@ -111,12 +112,12 @@ var g_languages = [
, "Clear" //4
, "Chpass" //5
, "Save" //6
, "Refresh" //7
, "Chmode" //7
, "Delete" //8
, "Login" //9
, "Register" //10
, "Back to login" //11
, "Mobile Gateway" //12
, "SmarGate" //12
, "User login" //13
, "User name" //14
, "Password" //15
@@ -130,7 +131,7 @@ var g_languages = [
, "Agreement of consent" //23
, "Invitation code must be filled in" //24
, "Desc" //25
, "Information" //26
, "Info" //26
, "SND" //27
, "RX" //28
, "Tot-mem" //29
@@ -208,5 +209,6 @@ var g_languages = [
, "Configuration modification succeeded! Will take effect on the next reboot "//101
, "The SmarGate will remain in service" // 102
, "Service start time" // 103
, "Exposed services"//104
]
];
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+151 -35
View File
@@ -1,26 +1,32 @@
# 中文 | [English](https://github.com/lazy-luo/smarGate/blob/master/README_en.md)
# 快速概览
# 快速概览<a href=https://github.com/lazy-luo/smarGate/wiki/快速上手手册>【快速上手手册】</a><br>
* 平台适配,支持linux、windows、macos、android、(tob,小型机:hp-unix、solaris、AIX<br>
* cpu架构,支持x86、arm、mips、riscvtobalpha、PowerPC、SPRAC<br>
* 注重安全,“内网”到“内网”的穿透,无需映射任何端口到外网,不更改任何防火墙配置<br>
* 注重带宽,”4G手机+v6宽带“采用P2P方式访问内网服务(v4支持NAT1-3穿透)<br>
* 注重带宽,”4G手机+v6宽带“采用P2P方式访问内网服务(基于TCP协议,v4支持NAT1-3穿透)<br>
* 注重节约,无需购买vps、无需公网IP;家中淘汰Android手机可做服务器<br>
* 注重可靠,随用随有,可7*24不间断服务,且不受UDP协议Qos之苦<br>
* 注重可控,客户端一点配置,且随时随地控制服务开启/关闭<br>
* 注重环保,免安装,体量小巧(mini版1MB左右) allinone,高性能且资源占用最少<br>
* 注重便携,无论工作或是度假,不管在任何地方,只要手机有网络,一切尽在掌控<br>
* ......如果这都是你想要的!请耐心继续往下看;如果你还想要...请提issue,【更新历史】也有看头哦<br>
# 移动网关
* 无需公网IP,提供内网穿透能力,通过加密隧道,能安全的将内网服务暴露出来. <br>
* 支持p2p通讯(基于TCP协议,p2p通道可用时显示为绿色)<br>
* 支持自定义代理服务器 <br>
* 免费,测试稳定后考虑开源. <br>
* 包含一个android客户端和需内网安装的服务端.<br>
# APP端配置(必须)--- 无法正常使用典型情况
* 必须配置“允许后台运行”权限,否则切后台即被系统断连
* 必须配置“休眠时始终保持网络连接”,否则一旦休眠则被系统断连
* 可以配置“允许自启动”权限,否则Android服务端模式下无法开机启动(v0.30及后续版本)
* 可以配置“麦克风”权限,否则Android服务端无法提供语音监听功能(v0.30及后续版本)
* 注意:SG官方代理不提供到港澳台及国外IP的数据转发
## smarGate是什么?<br>
#### 官方命名为“移动网关”,通过手机客户端将位于内网的服务端网络进行按需暴露,核心引擎采用c++实现。<br>
#### “移动网关”是用户私有网关,所有共享访问入口都在客户端,不是类似其它穿透工具主推的面向域名的公共访问入口。打个比方:smarGate是将防盗门随身携带,其它穿透产品是将防盗门放到公共场所,额...虽然需要钥匙,但有种职业叫开锁匠<br>
##### 具备如下技术特点:<br>
* 安全性 <br>
* 手机客户端作为唯一的访问入口,按需开放,及时关闭。<br>
* 手机客户端作为主要的访问入口,按需开放,及时关闭。<br>
* 支持服务端间端口映射组网(v0.31及以后版本)。<br>
* 电脑可以接入手机热点或wifi环境下通过访问手机开放的端口穿透到内网进行访问(客户端会显示手机ip)。<br>
* 手机网络一般为私有网段别人无法访问。<br>
* 用户间隔离。<br>
@@ -39,13 +45,18 @@
* socket 连接池<br>
* 多级任务队列 <br>
* ...<br>
* 附:交互示意图<br>
![operator](https://github.com/lazy-luo/smarGate/blob/master/res/smarGateArch.png)<br>
<details>
<summary>
<mark><font size=6 color=darkred>附:交互示意图</font></mark>
</summary>
<img src="https://github.com/lazy-luo/smarGate/blob/master/res/smarGateArch.png" /><br>
</details>
## smarGate有什么主要功能?<br>
* 支持代理穿透<br>
* 官方提供免费的代理服务器(共享带宽,多人共用时比较慢,最佳实践为启用自有代理服务器)<br>
* <I>如果自己有云服务器(具备公网ip),用户可自定义自己的代理服务器,且在代理服务器上安装proxy_server。所有数据传输走用户配置的代理服务器(为了防止中间人攻击,代理服务器需要用户生成自签名证书)</I> <br>
* <I>如果自己有云服务器(具备公网ip),用户可自定义自己的代理服务器,且在代理服务器上安装proxy_server。所有数据传输走用户配置的代理服务器(代理服务器需要证书,可自动生成也可配置已有证书)</I> <br>
```
1、“代理服务器”配置如下(代理服务器必须允许任意端口“入站”连接):
```
@@ -54,8 +65,10 @@
<app-config code="PROXY" name="proxy-server">
<app-parameter>
<proxy-service-port value="9001"/><!--自定义代理端口 -->
<owner-id value="xxxx" /><!-- xxxx 为注册成功返回的用户ID -->
<access-token value="nnnnn”"/><!--访问token,必须为数字【可选配】 -->
<!-- 如果自己有证书及私钥,则配置如下项,启动安全的SSL通道,其中文件名需要配置正确;没有证书则不需要配置,启用普通tcp连接
<ssl-create-certfile value="true" /><!-- 如未用如下选项指定证书,则自动生成证书【必须确保安装openssl】,默认为 false 代表无需自动生成 -->
<!-- 如果自己有证书及私钥,则配置如下项,启动安全的SSL通道,其中文件名需要配置正确;没有证书则不需要配置,可启用上面自动生成证书选项
<ssl-cacert-file value="xxx.crt"/>
<ssl-privatekey-file value="xxx.key"/>
-->
@@ -72,6 +85,7 @@
```
......
<app-parameter>
<ssl-create-certfile value="true" />
<!-- 如果代理服务器启动安全的SSL通道,这里必须配置证书及私钥
<ssl-cacert-file value="xxx.crt"/>
<ssl-privatekey-file value="xxx.key"/>
@@ -80,8 +94,8 @@
<moudle-parameter>
......
</moudle-parameter>
<!-- 配置上述代理服务器的ip或域名+端口,注意:ip必须为公网IP。ssl选项必须配置正确,如果代理服务器有证书且生效则配置为true否则为false -->
<channel address="xxx.xxx.xxx.xxx:9001" ssl="false" token="nnnnn" /><!--访问token,必须与代理服务器一致,如果没有则不配 -->
<!-- 配置上述代理服务器的ip或域名+端口,注意:ip必须为公网IP。ssl选项必须配置正确,如果代理服务器有证书(包括自动生成证书)且生效则配置为true否则为false -->
<channel address="xxx.xxx.xxx.xxx:9001" ssl="true" token="nnnnn" /><!--访问token,必须与代理服务器一致,如果没有则不配 -->
```
* 支持p2p通道<br>
* 使用TCP协议进行p2p穿透,提升安全性<br>
@@ -98,42 +112,76 @@
<tr><td>NAT3-4</td><td>NAT4</td><td>NO</td></tr>
</table>
* 支持外网发布(有违安全设计理念,免费版不提供支持<br>
* 支持外网发布(有违安全设计理念,v0.31版本开放<br>
* 其它内网穿透工具的主推模式,将内网服务直接映射到外网端口<br>
* 支持服务端之间的P2P端口映射(v0.31及以后版本) <br>
* 具体配置主要通过 ip@index方式支持<br>
## 使用指南:<br>
<a href=https://github.com/lazy-luo/smarGate/wiki/常用服务穿透配置>【常用服务配置】</a><br>
### 1、下载android appapp-release.apk包含客户端和服务端)支持armv7及arm64 cpu架构<br>
### 2、注册新用户(邀请码必填,为数字,可任意填。ps:如果必填信息未填完整,或包含中文字符,会注册失败)<br>
![login](https://github.com/lazy-luo/smarGate/blob/master/res/login.png)<br>
![register](https://github.com/lazy-luo/smarGate/blob/master/res/register.png)<br>
### 3、注册成功后请务必记住返回的服务ID(N) 【重要】:注册成功后务必在1小时内完成首次登录<br>
![register result](https://github.com/lazy-luo/smarGate/blob/master/res/registerok.png)<br>
### 4、下载内网服务器适合的服务端版本(目前支持linux-x86-32/64windows,及linux-arm【树莓派、群晖】,另:Android app自带服务端模式)<br>
### 5、解压服务端压缩包,修改配置文件(conf-proxy.xml):<br>
<a href="https://www.baidu.com/s?wd=smargate%20内网穿透">使用实践-度娘</a><br><br>
<a href="https://www.google.com/search?q=smargate+内网穿透">使用实践-google</a>
### 1、下载app && 注册新用户
* 下载android appapp-release.apk包含客户端和服务端)支持armv7及arm64 cpu架构<br>
* 注册新用户(邀请码必填,为数字,可任意填。ps:如果必填信息未填完整,或包含中文字符,会注册失败)<br>
* 注册成功后请务必记住返回的服务ID(N) 【重要】:注册成功后务必在1小时内完成首次登录<br>
<details>
<summary>
<mark><font size=5 color=darkred>展开图示</font></mark>
</summary>
<img src="https://github.com/lazy-luo/smarGate/blob/master/res/login.png" /><br>
<img src="https://github.com/lazy-luo/smarGate/blob/master/res/register.png" /><br>
<img src="https://github.com/lazy-luo/smarGate/blob/master/res/registerok.png" /><br>
</details>
### 2、下载服务端 && 配置
* 下载内网服务器适合的服务端版本(目前支持linux-x86-32/64windows,及linux-arm【树莓派、群晖】,另:Android app自带服务端模式)<br>
* 解压服务端压缩包,修改配置文件(conf-proxy.xml):<br>
<details>
<summary>
<mark><font size=5 color=darkred>配置样例</font></mark>
</summary>
```
<?xml version="1.0" encoding="GBK"?>
<app-config code="PROXY" name="proxy-server">
<app-parameter>
<!-- [ none | first | only ] ,none is default. 为P2P连接启用SSL加密,only代表只接受加密连接 -->
<ssl-tunnel-required value="first" />
<!-- 如未用如下选项指定证书,则自动生成证书【必须确保安装openssl】,默认为 false 代表无需自动生成 -->
<ssl-create-certfile value="true" />
<!-- 以下选项仅适用dynamic下的mini版本,指定ssl库及crypto库实际文件,linux下可由:ldd $(which openssl)|grep -E "libssl|libcrypto"|awk '{print $1}' 获取
<libssl value="libssl.so" />
<libcrypto value="libcrypto.so" />
-->
</app-parameter>
<moudle-parameter>
<log-level value="LOG_ERROR"/>
<log-write-mode value="CONSOLE_ONLY"/>
<app-name value="xxxxx [name of service points]." /><!-- need modify -->
<app-description value="yyyyy [description of service points]" /><!-- need modify -->
<user-audit value="N:index"/><!-- need modify (N 为注册成功返回的服务ID,index为自定义的服务端实例序号,建议从1开始,不能重复. 例如:[12345:1])-->
<!-- user-audit need modify (N 为注册成功返回的服务ID,index为自定义的服务端实例序号,建议从1开始,不能重复. 例如:[12345:1])-->
<user-audit value="N:index"/>
</moudle-parameter>
</app-config>
```
### 6、执行服务端命令(参数说明 i:最大接入连接数,o:最大接出连接数,w:最大线程数)<br>
</details>
### 3、运行内网服务端(命令参数说明 i:最大接入连接数,o:最大接出连接数,w:最大线程数)<br>
* linux下执行命令:chmod +x proxy_server && nohup ./proxy_server -i1000 -o1000 -w8 >/dev/null & <br>
* windows下执行命令:proxy_server.exe -i1000 -o1000 -w8 <br>
* Android 手机/设备:运行app -〉编辑模式下,配置服务端信息 -〉打开“服务端”开关 -〉重启app <br>
### 7、使用注册时的用户名/密码登陆手机客户端<br>
![operator](https://github.com/lazy-luo/smarGate/blob/master/res/oper1.png)<br>
### 8、在客户端中可以看到上线的服务端,可以在客户端上定义端口反弹规则<br>
![operator](https://github.com/lazy-luo/smarGate/blob/master/res/oper2.png)<br>
### 配置中的“远程ip”为“访问点”对应内网中的某台主机iplocalhost或127.0.0.1代表内网server端所在机器本身)
![operator](https://github.com/lazy-luo/smarGate/blob/master/res/oper3.png)<br>
### 9、电脑或手机可以直接访问手机客户端设置的服务(如ssh、http等)<br>
* OpenWrt mips设备安装请见:<a href=https://github.com/lazy-luo/smarGate/issues/65>【MIPS linux下正确使用方式】</a><br>
### 4、登陆手机app && 配置端口映射 <a href="https://github.com/lazy-luo/smarGate/wiki/常用服务穿透配置">【常用服务配置】</a><br>
* 在客户端中可以看到上线的服务端(“访问点”),可以在客户端上定义端口映射规则<br>
<details>
<summary>
<mark><font size=5 color=darkred>展开图示</font></mark>
</summary>
<img src="https://github.com/lazy-luo/smarGate/blob/master/res/oper2.png" /><br>
<b>配置中的“远程ip”为“访问点”对应内网中的某台主机iplocalhost或127.0.0.1代表内网server端所在机器本身)</b>
<img src="https://github.com/lazy-luo/smarGate/blob/master/res/oper3.png" /><br>
</details>
### 5、电脑或手机可以直接访问手机客户端设置的服务(如ssh、http等)<br>
## 补充说明:<br>
* 所有版本已经打包了依赖,开箱即用.<br>
* 系统将自动清除30天以上未使用的“僵尸账号”.<br>
@@ -188,7 +236,8 @@
1、android客户端设置为“自动登录”,免除每次输入用户名/密码的麻烦;<br>
2、android客户端设置好后让其在后台运行,如果始终保持前台会定时刷新,webview控件空耗电,你懂的;<br>
3、服务端始终保持后台运行,安全放心,只有你自己才能访问;<br>
...待补充...<br>
...使用场景...<br>
<a href="https://cloud.tencent.com/developer/article/1926888">【家用摄像头P2P直连】</a><br>
## 免责申明<br>
* 请您仔细阅读以下申明,您在使用smarGate工具软件,表明您对以下内容的接受:<br>
1、严禁使用本软件从事计算机黑客以及其他任何危害计算机信息网络安全的行为;<br>
@@ -208,7 +257,74 @@ ps:捐赠建议附上注册用户名<br>
<summary>
<mark><font size=5 color=darkred>更新历史</font></mark>
</summary>
### 2022-08-06更新到v0.31.2<br>
1、修复Windows平台偶发闪退BUG,增强稳定性<br>
2、P2P连接及自定义代理进行keep-alive操作,尽可能避免重连时间窗口,提升可用性<br>
3、其它可用性优化,降低app能耗<br>
4、版本更新到v0.31.2<br>
### 2022-07-28更新到v0.31.1<br>
1、修复特定情况下,服务端重启,组网配置不生效的BUG<br>
2、修复NAT1服务器P2P协商BUG<br>
3、版本更新到v0.31.1<br>
### 2022-07-22更新到v0.31: <br>
1、提供服务端之间端口映射,服务端如有公网ip则可直接从公网访问(仅需在app上配置)
* 配置方式,在原有映射配置“远程ip”配置中支持:ip@idx方式进行配置(idx为不同“访问点”的序号)
* 此种方式配置的“本地端口”实际是在当前“访问点”所在主机上(注意:不在APP所在手机上)
* 服务端间如能P2P成功(或自定义代理连接成功)则配置的映射将生效,否则不生效
* APP上只有在P2P连接时才会定时刷新服务端间代理状态
* 配置成功后需要等待10秒左右才能在App上看到实际状态
2、版本升级到v0.31<br>
### 2022-06-30: <br>
1、修复32位大端机器运行服务端,无法正常代理的BUG<br>
2、版本暂保持不变<br>
### 2022-05-17: <br>
1、服务端支持自动生成自签名证书(默认文件名为server.xxx<br>
-->a、配置ssl-create-certfile选项 <br>
```
<app-parameter>
<ssl-create-certfile value="true" />
...
</app-parameter>
```
-->b、确保安装openssl <br>
-->c、不要指定证书文件(不配置 ssl-cacert-file 及 ssl-privatekey-file<br>
### 2022-05-04: <br>
1、支持riscv32/64架构,编译时同mips架构使用musl库进行链接<br>
2、优化网络传输层<br>
3、版本暂保持不变<br>
### 2022-02-07更新到v0.30.4: <br>
1、提供mips64el支持<br>
2、增加app端系统图标显示 <br>
3、其它优化<br>
### 2021-11-06更新到v0.30.3: <br>
1、修复app端内存占用只显示jvm不包含native的BUG<br>
2、优化网络引擎,提升高并发下的稳定性及公平性 <br>
### 2021-10-17更新到v0.30.2: <br>
1、自定义代理支持ssl验证<br>
2、网络P2P情况下,支持配置成ssl隧道( **要求服务端必须配置证书** )<br>
```
<app-parameter>
<ssl-tunnel-required value="first" /><!-- 取值有3个:none、first、only -->
...
</app-parameter>
```
3、其他优化<br>
### 2021-09-24更新到v0.30: <br>
1、提供了Android服务端开机自启动支持(仅服务端模式,且需要自行手动授权)<br>
2、网络P2P情况下,Android服务端支持实时音频(麦克风权限需要自行手动授权,必须打开SG界面才能录音)<br>
3、其他优化<br>
### 2021-05-03更新到v0.29.2: <br>
1、修复Android高版本无法退出问题<br>
2、优化网络:修复了可能带来网络延迟的BUG,进一步提升网络传输速度<br>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 540 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 408 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 623 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 453 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 609 KiB

Binary file not shown.
Binary file not shown.