GithubHelp home page GithubHelp logo

heyue07 / supernat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yangan666/supernat

0.0 1.0 0.0 14.05 MB

SuperNAT

License: Apache License 2.0

C# 52.60% JavaScript 14.86% CSS 4.12% Vue 27.53% Dockerfile 0.04% TSQL 0.61% Batchfile 0.24%

supernat's Introduction

SuperNAT

SuperNAT是基于NET Core 3.0开源跨平台的内网穿透程序,使用SuperSokcet实现,功能类似花生壳,可用于穿透内网web应用,微信公众号本地调试等,目前仅支持http穿透,tcp穿透会在后续加入,SuperNAT.Server为服务端,SuperNAT.Client为客户端。
目前属于开发阶段,大家可自行注册免费使用,SuperNAT管理后台:http://www.supernat.cn:8088 Image text

下面是window部署教程,linux可用docker进行部署,这里不做说明
SuperNAT.Server服务端部署:
第一步:先下载net core 3.0运行时,地址:https://dotnet.microsoft.com/download/dotnet-core/3.0 选择下载Runtime 3.0.0 ASP.NET Core/.NET Core: Runtime & Hosting Bundle并安装到服务器。

第二步:下载源码生成SuperNAT.Server或者到release下载最新的安装包,修改配置文件appsettings.json的配置

Image text 第三步:安装mariadb或mysql,数据库脚本位置:SuperNAT.Server/DB,创建数据库supernat,先执行脚本create.sql,然后执行data.sql,修改SuperNAT.Server配置文件appsettings.json的DBConfig>ConnetionString为你的数据库连接字符串。

第四步:启动SuperNAT.Server控制台程序,浏览器打开http://你的域名:8088,默认管理员:admin,密码:123456

第五步:内网穿透>主机管理>新建主机,生成主机密钥,然后在端口映射创建你的应用。

控制台程序可以一键安装为系统服务,解压安装包后找到 安装.bat 点击后第一步会先安装为系统服务,完成出现提示后按回车启动,使用 卸载.bat 卸载服务

SuperNAT.Client客户端部署:
第一步:先下载net core 3.0运行时,地址:https://dotnet.microsoft.com/download/dotnet-core/3.0 选择下载Runtime 3.0.0 ASP.NET Core/.NET Core: Runtime & Hosting Bundle并安装到电脑。
第二步:下载源码生成SuperNAT.Client或者到release下载最新的安装包,修改配置文件appsettings.json的配置,启动SuperNAT.Client即可完成内网映射

Image text

控制台程序可以一键安装为系统服务,解压安装包后找到 安装.bat 点击后第一步会先安装为系统服务,完成出现提示后按回车启动,使用 卸载.bat 卸载服务

穿透示例: Image text

已发布测试版,大家可到release下载体验,客户端可使用SuperNAT服务器的配置:
{
"Secret": "你的主机密钥",
"ServerUrl": "www.supernat.cn",
"ServerPort": "8088",
"NatPort": "10006"//报文传输监听端口
}
服务器开放的http端口有80,10000-10005

supernat's People

Contributors

yangan666 avatar

Watchers

 avatar

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.