Skip to content

port-bridge powered by lanproxy,是一个将局域网个人电脑、服务器代理到公网的内网穿透工具,支持tcp流量转发,可支持任何tcp上层协议(访问内网网站、本地支付接口调试、ssh访问、远程桌面、http代理、https代理、socks5代理...)。

Notifications You must be signed in to change notification settings

dingxiaobo/port-bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Port Bridge

Build bridges between server and LAN devices.

Usage

JRE 1.8 required.

1. Server

Typical

$ java -jar server-0.5-release.jar

default: user=admin, pwd=admin

Config Properties

Example
$ java -jar server-0.5-release.jar \
        -p 4900 \
        -cp 999 \
        -u user \
        -pw qwe123 \ 
        -ssl true \
        -ssl_bind 0.0.0.0 \
        -ssl_port 4933 \
        -ssl_jks xxx.jks \
        -ssl_ks_pwd 123 \
        -ssl_km_pwd 123 \
        -l '~/log4j.properties' \
Custom
-l	log4j.properties , Specific log4j.properties file location.
-s	server.bind , Bind address of server.
-p	server.port , Bind port of server.
-cs	config.server.bind , Bind web config address of server.
-cp	config.server.port , Bind web config port of server.
-u	config.admin.username , Specific web config username.
-pw	config.admin.password , Specific web config password.
-h/--help	help , Print help information.

Deamonlize

$ nohup java -jar server-0.5-release.jar >/dev/null 2>&1 &

2. Client

Typical

$ java -jar client-0.5-release.jar \
        -h server.com \
        -k clientkey

Config Properties

Example
$ java -jar client-0.5-release.jar \
        -h server.com \
        -k clientkey \
        -p 888 \
        -c 1h \
        -ssl true \
        -ssl_jks xxx.jks \
        -ssl_ks_pwd 123 \
        -l '~/log4j.properties'
Custom
-l	log4j.properties , Specific log4j.properties file location.
-s	server.host , Server host address/ip.
-p	server.port , Server host port.
-c  close after, Run a while if configuared, 1d/2h/3m
-k	client.key , Client key shows in admin web of this client.
-h/--help	help , Print help information.

Deamonlize

$ nohup java -jar client-0.5-release.jar >/dev/null 2>&1 &

Develop

packaging

mvn clean package -DskipTests

About

port-bridge powered by lanproxy,是一个将局域网个人电脑、服务器代理到公网的内网穿透工具,支持tcp流量转发,可支持任何tcp上层协议(访问内网网站、本地支付接口调试、ssh访问、远程桌面、http代理、https代理、socks5代理...)。

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 58.8%
  • JavaScript 37.0%
  • HTML 3.9%
  • CSS 0.3%