forked from ffay/lanproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fengfei
committed
Sep 13, 2017
1 parent
34cab56
commit ece971f
Showing
25 changed files
with
486 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
### Lanproxy | ||
|
||
[README](README_en.md) | [中文文档](README.md) | ||
|
||
Lanproxy is a reverse proxy to help you expose a local server behind a NAT or firewall to the internet. it supports any protocols over tcp (http https ssh ...) | ||
|
||
### Features | ||
|
||
- Secure tunnels to localhost | ||
- Supports any protocols over tcp (http https ssh ...) | ||
- Supports web config pages, easy to configure management | ||
- Written by java netty framework, high performance | ||
|
||
### What can I do with Lanproxy | ||
|
||
- Demo without deploying | ||
- Simplify mobile device testing | ||
- Build webhook integrations with ease | ||
- Run personal cloud services from your own private network | ||
|
||
### Architecture | ||
![lanproxy](lanproxy.png) | ||
|
||
### Configure | ||
|
||
#### Server | ||
|
||
proxy-server config file is **conf/config.properties** | ||
|
||
```properties | ||
server.bind=0.0.0.0 | ||
|
||
#Plain tcp port | ||
server.port=4900 | ||
|
||
#ssl | ||
server.ssl.enable=true | ||
server.ssl.bind=0.0.0.0 | ||
server.ssl.port=4993 | ||
server.ssl.jksPath=test.jks | ||
server.ssl.keyStorePassword=123456 | ||
server.ssl.keyManagerPassword=123456 | ||
server.ssl.needsClientAuth=false | ||
|
||
#web config pages | ||
config.server.bind=0.0.0.0 | ||
config.server.port=8090 | ||
config.admin.username=admin | ||
config.admin.password=admin | ||
|
||
``` | ||
|
||
> Visit your config web service using url http://ip:8090 | ||
![webconfig](readme_en_client_list.png) | ||
|
||
![webconfig](readme_en_proxy_list.png) | ||
|
||
![webconfig](readme_en_stat_list.png) | ||
|
||
#### client | ||
|
||
proxy-client config file is **conf/config.properties** | ||
|
||
```properties | ||
#get from proxy-server client list page | ||
client.key= | ||
ssl.enable=true | ||
ssl.jksPath=test.jks | ||
ssl.keyStorePassword=123456 | ||
|
||
#your proxy server ip | ||
server.host= | ||
|
||
#proxy-server ssl port is 4993,plain port is 4900 | ||
server.port=4993 | ||
``` | ||
|
||
### Run | ||
|
||
- Get release package from https://github.com/ffay/lanproxy/releases | ||
- Java env is required | ||
- Linux(mac)run bin/startup.sh | ||
- Windows run bin/startup.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
login=Sign in | ||
logout=Sign out | ||
username=Username | ||
password=Password | ||
|
||
title=LanProxy - help you expose a local server behind a NAT or firewall to the internet | ||
|
||
menu.client.list=Client list | ||
menu.client.add=New client | ||
menu.client.config=Client config | ||
menu.client.statistics=Statistics | ||
|
||
public.confirm.delete=Delete? | ||
public.options=Options | ||
public.edit=Edit | ||
public.submit=Submit | ||
public.delete=Delete | ||
public.ok=Ok | ||
public.cancel=Cancel | ||
public.back=Back | ||
public.notice.updatesuccess=Update successfully | ||
public.notice.addsuccess=Add successfully | ||
public.tips=Tips | ||
|
||
client.list=Client list | ||
client.name=Client name | ||
client.key=Client key | ||
client.add=New client | ||
client.name.placeholder= | ||
client.key.placeholder= | ||
client.randomkey=Generate a random key | ||
client.notice.inputname=Client name is required | ||
client.notice.inputkey=Client key is required | ||
client.notice.addsuccess=New client has been added successfully | ||
client.edit=Edit client | ||
|
||
lan.proxyconfig=Proxy config | ||
lan.addnewconfig=New proxy config | ||
lan.editconfig=Edit proxy config | ||
lan.name=Proxy name | ||
lan.inetport=Internet port | ||
lan.inetport.placeholder= | ||
lan.ip=Backend ip | ||
lan.ip.placeholder=127.0.0.1:80 | ||
lan.notice.inputname=Proxy config name is required | ||
lan.notice.inputinetport=Internet port is required | ||
lan.notice.inputlan=Backend server ip:port is required | ||
lan.notice.errorlan=Error backend info, should be ip:port | ||
lan.notice.errorport=Error port | ||
|
||
statistics.inetport=Internet port | ||
statistics.inflow=Inflow data | ||
statistics.outflow=Outflow data | ||
statistics.channels=Current channels |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
login=登录 | ||
logout=退出 | ||
username=用户名 | ||
password=密码 | ||
|
||
title=LanProxy-内网穿透工具 | ||
|
||
menu.client.list=客户端管理 | ||
menu.client.add=添加客户端 | ||
menu.client.config=配置管理 | ||
menu.client.statistics=数据统计 | ||
|
||
public.confirm.delete=确定删除? | ||
public.options=操作 | ||
public.submit=提交 | ||
public.edit=编辑 | ||
public.delete=删除 | ||
public.ok=确定 | ||
public.cancel=取消 | ||
public.back=返回 | ||
public.notice.updatesuccess=更新成功 | ||
public.tips=提示 | ||
|
||
client.list=客户端列表 | ||
client.name=客户端名称 | ||
client.key=客户端密钥 | ||
client.add=添加客户端 | ||
client.name.placeholder=请输入客户端名称 | ||
client.key.placeholder=请输入客户端密钥 | ||
client.randomkey=生成随机密钥 | ||
client.notice.inputname=请输入客户端备注名称 | ||
client.notice.inputkey=请输入客户端通信密钥 | ||
client.notice.addsuccess=客户端添加成功 | ||
client.edit=编辑客户端 | ||
|
||
lan.proxyconfig=代理配置 | ||
lan.addnewconfig=添加配置 | ||
lan.editconfig=编辑配置 | ||
lan.name=代理名称 | ||
lan.inetport=公网端口 | ||
lan.inetport.placeholder=请输入公网出口端口,请确保端口没有被其他程序占用 | ||
lan.ip=后端IP端口 | ||
lan.ip.placeholder=请输入后端代理信息,格式:127.0.0.1:80 | ||
lan.notice.inputname=请输入代理信息备注名称 | ||
lan.notice.inputinetport=请输入公网出口端口 | ||
lan.notice.inputlan=请输入后端代理信息 | ||
lan.notice.errorlan=后端代理信息格式错误 | ||
lan.notice.errorport=端口错误 | ||
|
||
statistics.inetport=出口端口 | ||
statistics.inflow=流入数据 | ||
statistics.outflow=流出数据 | ||
statistics.channels=当前连接 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.