2 Star 0 Fork 77

慕容 / NSmartProxy

forked from tmoonlight / NSmartProxy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

GitHub release GitHub Build Status

中文版 | English

NSmartProxy

什么是NSmartProxy?

NSmartProxy是一款免费的内网穿透工具。
使用中如果有任何问题和建议,可以点击这里加入Gitter群组或者点击这里加入QQ群 (群号:813170640)我们一起讨论。

特点

  1. 跨平台,客户端和服务端均可运行在MacOS,Linux,Windows系统上;
  2. 使用方便,配置简单;
  3. 多端映射,一个NSmart Proxy客户端可以同时映射多种服务。
  4. 支持TCP协议栈下的所有协议(已经经过测试的有FTP、Telnet、SMTP、HTTP/HTTPS、POP3、SMB、VNC、RDP。暂不支持UDP协议,开发中。)

运行原理

NSmartProxy包含两个服务程序:

  • 服务端(NSmartServer):部署在外网,用来接收来自最终使用者和客户端的反向连接,并将它们进行相互转发。
  • 客户端(NSmartClientRouter):部署在内网,用来转发访问内网各种服务的请求以及响应。

启动准备

Linux/Windows/MacOS

  1. 安装.NET Core Runtime
  2. 下载最新版本的NSmartProxy

Docker

  • 如果当前机器上已经有了docker运行环境,则无需安装运行时,直接拉取镜像即可运行 :
sudo docker pull tmoonlight/nspclient
sudo docker run --name mynspclient -dit tmoonlight/nspclient

使用方法

NSmartProxy支持各种基于TCP服务的端口映射,下面以mstsc,iis,ftp服务为例:

  1. 打开安装目录下的appsettings.json文件,配置服务地址,映射地址和端口(windows版本也可直接进入界面配置):
{
  "ProviderWebPort": 12309,			//服务器端口
  "ProviderAddress": "2017studio.imwork.net",	//服务器地址

  //反向代理客户端,可以配置多个
  "Clients": [
    {
      "IP": "127.0.0.1",           //反向代理机器的ip
      "TargetServicePort": "3389"  //反向代理服务的端口
      "ConsumerPort":"3389"          //外网访问端口,如被占用,则会从20000开始按顺序分配端口
    },
    {
      "IP": "127.0.0.1",
      "TargetServicePort": "80"
    },
    {
      "IP": "127.0.0.1",
      "TargetServicePort": "21"
    }
  ]
}

2. 运行NSmartProxy
  • Linux:
    sudo unzip client.zip
    cd client
    sudo dotnet NSmartProxyClient.dll
  • Windows:

    解压nspclient*.zip,运行NSmartProxyWinform.exe即可:


3. 后台运行:
您还可以将NSmartProxy客户端注册为一个后台服务,方法如下:
  • Linux:

  • Windows:

  • P.S: 以上是客户端的配置方法,一般情况下,只要用我的免费服务(2017studio.imwork.net)即可进行内网映射了,如果您还想自己搭建NSmartProxy服务端,请参考这里

使用案例

以上已经讲述了将内网的服务映射到外网的方法,还有更多有趣的用法等着你发掘:
1.远程开机
2.使用windows远程控制操作办公室电脑
3.告别昂贵的vps,以极低的成本制作一个更强大的服务集群

MIT License Copyright (c) 2019 NSmartProxy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

NSmartProxy是一款免费的内网穿透工具。采用.NET CORE的全异步模式打造。 展开 收起
C#
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/rthinking/NSmartProxy.git
git@gitee.com:rthinking/NSmartProxy.git
rthinking
NSmartProxy
NSmartProxy
master

搜索帮助

14c37bed 8189591 565d56ea 8189591