A springboot-starter that can achieve Intranet penetration. 一款可以实现内网穿透的springboot-starter。

Overview

qynat-springboot-starter

基于netty的内网穿透工具在springboot中的整合

protocol协议:protobuf

只需在application.properties中配置少量信息,实现零代码侵入的web项目内网穿透

项目的server端的源码在另一个多模块项目中,包括client端的命令行版、GUI版,还没写好readme暂时先不贴链接

Table of Contents

QuickStart

服务端配置

在项目的lib包下有个server.jar,将他部署在可外网访问的服务器上,输入命令(需在jdk环境下):

java -jar server.jar -p <server-port> -t <token>

看到以下,说明服务端成功运行

QyNat server started on port xxxx

客户端配置

引入依赖

  • maven项目在pom中引入
    <dependencies>      
        <dependency>
            <groupId>com.github.whz11</groupId>
            <artifactId>qynat-springboot-starter</artifactId>
            <version>Tag</version><!--见上方jitpack后面的版本-->
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
 
  • gradle项目
	dependencies {
	        implementation 'com.github.whz11:qynat-springboot-starter:Tag'
	}
	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

配置application.properties

##server端部署地址
qynat.server-address=xxx.xxx.xxx.xxx
##server端部署端口号
qynat.server-port=7777
##server端配置令牌(可空)
qynat.token=123456
##本机地址
qynat.proxy-address=localhost
##本机端口
qynat.proxy-port=8080
##映射端口
qynat.remote-port=8080

解释:服务运行后,本机地址可以通过server-address:remote-port访问

客户端最后一步

在启动类中加上@EnabledQyNat注解

@SpringBootApplication
@EnabledQyNat
public class StarterDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(StarterDemoApplication.class, args);
    }

}

在控制台看到以下,说明客户端启动成功

Started QyNatClient success mapping at:http://server-address:remote-port
Register to qynat

Maintainers

@whz11.

Contributing

Feel free to dive in! Open an issue or submit PRs.

License

MIT © whz11

You might also like...

A React Native project starter with Typescript, a theme provider with hook to easy styling component, a folder architecture ready and some configs to keep a codebase clean.

React Native Boilerplate Folder structure : src ├── assets │   ├── audios │   ├── fonts │   ├── icons │   └── images ├── components │   ├── Layout.tsx

Sep 1, 2022

Spring Boot starter for JustAuth Plus.

Spring Boot starter for JustAuth Plus.

Jun 23, 2022

基于 spring-boot-starter-log4j2:2.6.1 (log4j 2.14.1)

Log4j 2 CVE-2021-44228 测试样本应用 基于 spring-boot-starter-log4j2:2.6.1 (log4j 2.14.1) 可用接口 接口 请求方法 参数 vulnerable_request_get GET v=payload vulnerable_reque

Mar 23, 2022

An awesome Spring Boot Starter!

 An awesome Spring Boot Starter!

spring-boot-tony-starter An awesome Spring Boot Starter! Explore the docs » View Demo · Report Bug · Request Feature Table of Contents About The Proje

Sep 13, 2022

Professional Java Developer Career Starter: Java Foundations Course Exercise Solutions

java-foundations-solutions Professional Java Developer Career Starter: Java Foundations Course Exercise Solutions The solutions are generally to be fo

Dec 28, 2022

A Spigot latest maven starter template.

NAME One sentence to describe your plugin. Introduction Describe your plugin clearly. Features Feature 1 Dependencies Commands /command Command functi

Jul 1, 2022

本项目基于springboot进行开发,实现了一系列的spring-boot-starter

项目简介 本项目基于springboot进行开发,实现了一系列的spring-boot-starter,可以作为开发中的工具包进行使用。 模块划分 common-spring-boot-starter:常用的基础类,比如用作消息流转的Msg以及一些工具类 monitor-spring-boot-st

Jan 24, 2022

Get or Throw Spring boot Starter will help you to hide handling if entity not found.

Get or Throw Spring boot Starter Get or Throw Spring boot Starter will help you to hide handling if entity not found. 1. Setup 2. Usage Library adds c

Feb 2, 2022

Best practice of monolithic spring application starter

Best practice of monolithic spring application starter

Best practice of monolithic spring application starter

Jul 19, 2022
Comments
  • to which file.jar add:

    to which file.jar add:

    to which file.jar add: @SpringBootApplication @EnabledQyNat public class StarterDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(StarterDemoApplication.class, args);
    }
    

    } ?

    opened by lootoos 0
Releases(0.0.4)
Owner
whz11
whz11
A springboot starter for retrofit, and supports many functional feature enhancements, greatly simplifying development

retrofit-spring-boot-starter English Document Retrofit是适用于Android和Java且类型安全的HTTP客户端,其最大的特性的是支持通过接口的方式发起HTTP请求。而spring-boot是使用最广泛的Java开发框架,但是Retrofit官方

Ke Technologies 1.4k Jan 5, 2023
Springboot starter security jwt

Springboot starter security jwt

CodingApi 2 Jul 19, 2022
Tuya 37 Dec 26, 2022
Create your Java crypto trading bot in minutes. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions so you can focus on building your strategies.

Quick Start | Documentation | Discord | Twitter Create and run your java crypto trading bot in minutes Our Spring boot starter takes care of exchange

Cassandre 442 Jan 3, 2023
SpringBoot service to pick up CAN messages retransmitted by CANBridge and extract certain values for reporting/monitoring/alerting via DataDog

SpringBoot service to pick up CAN messages retransmitted by CANBridge and extract certain values for reporting/monitoring/alerting via DataDog

Grumpy Cricket 2 Mar 12, 2022
Discourse-java is a platform where users can freely discuss on topics they want to, and like-minded people can join in and contribute

Discourse is the 100% open source discussion platform built for the next decade of the Internet. Use it as a: mailing list discussion forum long-form

Infosys Ltd 16 Oct 19, 2022
By this package we can get sim info, call logs and sms logs.Also we can find for specific sim info and call logs as well.

sim_sms_call_info A new flutter plugin project. Getting Started This project is a starting point for a Flutter plug-in package, a specialized package

 Hasib Akon 3 Sep 17, 2022
Spring Boot starter module for gRPC framework.

Spring Boot starter module for gRPC framework.

Michael Zhang 2.8k Jan 4, 2023
Spring Boot starter module for gRPC framework.

Spring Boot starter module for gRPC framework.

Michael Zhang 1.8k Mar 17, 2021
创建springboot的starters项目,集成各种优秀springboot starter

一个基于springboot的项目快速集成脚手架 简介 spring-boot-starters是一个基于springboot的项目快速集成脚手架 其支持 Jdk 1.7+, SpringBoot 1.4.x 1.5.x 2.x.x。模块列表如下: 模块 说明 common-spring-boot-

justimaging 1 Jul 15, 2021