GithubHelp home page GithubHelp logo

tyler475050491 / supernat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yangan666/supernat

0.0 0.0 0.0 14.48 MB

SuperNAT是基于.NET Core 3.0开源跨平台的内网穿透程序,功能类似花生壳,可用于穿透内网web应用,微信公众号本地调试等,目前支持http穿透,tcp穿透。QQ交流群:854594944

License: Apache License 2.0

C# 58.61% JavaScript 12.51% CSS 3.46% Vue 24.51% Dockerfile 0.04% TSQL 0.67% Batchfile 0.20%

supernat's Introduction

SuperNAT

SuperNAT目前属于开发阶段,大家可自行注册免费使用,SuperNAT管理后台:http://www.supernat.cn Image text

下面是window部署教程,linux可用docker进行部署,这里不做说明
SuperNAT.Server服务端部署:
第一步:先下载安装net core 3.x最新版运行时到服务器

第二步:下载源码生成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控制台程序,API接口默认8088端口,管理后台前端文件为SuperNAT\SuperNAT.Web\manage,可自行使用npm run build命令打包放到SuperNAT.Server的wwwroot目录(不存在文件夹就创建一个),修改appsettings.json的ServerPort端口,浏览器打开http://你的域名:ServerPort端口 也可以单独部署前端文件到其它端口(比如80端口),需要修改SuperNAT\SuperNAT.Web\manage\src\util\request.js的baseURL为API接口地址即可,管理后台默认管理员:admin,密码:123456

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

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

SuperNAT.Client客户端部署:
第一步:先下载安装net core 3.x最新版运行时到内网电脑

第二步:下载源码生成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 211,2020,10001-10004,60009
https 10005
tcp 10007-10020

QQ交流群:854594944

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.