{"id":19257105,"url":"https://github.com/ffay/lan","last_synced_at":"2026-02-07T10:31:17.132Z","repository":{"id":113439908,"uuid":"157467202","full_name":"ffay/lan","owner":"ffay","description":"lanproxy web pages","archived":false,"fork":false,"pushed_at":"2019-06-25T01:18:17.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T09:50:02.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ffay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-14T00:44:44.000Z","updated_at":"2019-06-25T01:18:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"7dd70617-7da8-4053-a6d2-e6c1f4616c56","html_url":"https://github.com/ffay/lan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ffay/lan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffay%2Flan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffay%2Flan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffay%2Flan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffay%2Flan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ffay","download_url":"https://codeload.github.com/ffay/lan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffay%2Flan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29192611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T19:08:21.809Z","updated_at":"2026-02-07T10:31:17.116Z","avatar_url":"https://github.com/ffay.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"lanproxy\n--------\n\nlanproxy是一个将局域网个人电脑、服务器代理到公网的内网穿透工具，目前仅支持tcp流量转发，可支持任何tcp上层协议（访问内网网站、本地支付接口调试、ssh访问、远程桌面...）。目前市面上提供类似服务的有花生壳、TeamView、GoToMyCloud等等，但要使用第三方的公网服务器就必须为第三方付费，并且这些服务都有各种各样的限制，此外，由于数据包会流经第三方，因此对数据安全也是一大隐患。\n\n### 相关地址\n\n- 主页 [https://lan.io2c.com](https://lan.io2c.com)\n- lanproxy-go-client [https://github.com/ffay/lanproxy-go-client](https://github.com/ffay/lanproxy-go-client)\n- 发布包下载地址 [https://github.com/ffay/lanproxy/releases](https://github.com/ffay/lanproxy/releases)\n\n### 使用\n\n#### 获取发布包\n\n-\t拉取源码，运行 mvn package，打包后的资源放在distribution目录中，包括client和server\n-\t或直接下载发布包  [https://github.com/ffay/lanproxy/releases](https://github.com/ffay/lanproxy/releases)\n\n#### 配置\n\n##### server配置\n\nserver的配置文件放置在conf目录中，配置 config.properties\n\n```properties\nserver.bind=0.0.0.0\n\n#与代理客户端通信端口\nserver.port=4900\n\n#ssl相关配置\nserver.ssl.enable=true\nserver.ssl.bind=0.0.0.0\nserver.ssl.port=4993\nserver.ssl.jksPath=test.jks\nserver.ssl.keyStorePassword=123456\nserver.ssl.keyManagerPassword=123456\n\n#这个配置可以忽略\nserver.ssl.needsClientAuth=false\n\n#WEB在线配置管理相关信息\nconfig.server.bind=0.0.0.0\nconfig.server.port=8090\nconfig.admin.username=admin\nconfig.admin.password=admin\n```\n\n代理配置，打开地址 http://ip:8090 ，使用上面配置中配置的用户名密码登录，进入如下代理配置界面\n\n![webconfig](https://github.com/ffay/lanproxy/raw/master/readme_zh_client_list.png)\n\n![webconfig](https://github.com/ffay/lanproxy/raw/master/readme_zh_proxy_list.png)\n\n![webconfig](https://github.com/ffay/lanproxy/raw/master/readme_zh_stat_list.png)\n\n\u003e 一个server可以支持多个客户端连接\n\u003e 配置数据存放在 ~/.lanproxy/config.json 文件中\n\n##### Java 客户端配置\n\n\u003e Java client的配置文件放置在conf目录中，配置 config.properties\n\n```properties\n\n#与在proxy-server配置后台创建客户端时填写的秘钥保持一致；\nclient.key=\nssl.enable=true\nssl.jksPath=test.jks\nssl.keyStorePassword=123456\n\n#这里填写实际的proxy-server地址；没有服务器默认即可，自己有服务器的更换为自己的proxy-server（IP）地址\nserver.host=lp.thingsglobal.org\n\n#proxy-server ssl默认端口4993，默认普通端口4900\n#ssl.enable=true时这里填写ssl端口，ssl.enable=false时这里填写普通端口\nserver.port=4993\n```\n\n- 安装java1.7或以上环境\n- linux（mac）环境中运行bin目录下的 startup.sh\n- windows环境中运行bin目录下的 startup.bat\n\n##### 其他平台客户端\n\n\u003e 不用java客户端的可以使用下面提供的各个平台的客户端，省去安装java运行环境\n\n###### 源码地址\n\n[https://github.com/ffay/lanproxy-go-client](https://github.com/ffay/lanproxy-go-client)\n\n###### 发布包\n\n[https://github.com/ffay/lanproxy/releases](https://github.com/ffay/lanproxy/releases)\n\n###### 普通端口连接\n\n```shell\n# mac 64位\nnohup ./client_darwin_amd64 -s SERVER_IP -p SERVER_PORT -k CLIENT_KEY \u0026\n\n# linux 64位\nnohup ./client_linux_amd64 -s SERVER_IP -p SERVER_PORT -k CLIENT_KEY \u0026\n\n# windows 64 位\n./client_windows_amd64.exe -s SERVER_IP -p SERVER_PORT -k CLIENT_KEY\n```\n\n###### SSL端口连接\n\n```shell\n# mac 64位\nnohup ./client_darwin_amd64 -s SERVER_IP -p SERVER_SSL_PORT -k CLIENT_KEY -ssl true \u0026\n\n# linux 64位\nnohup ./client_linux_amd64 -s SERVER_IP -p SERVER_SSL_PORT -k CLIENT_KEY -ssl true \u0026\n\n# windows 64 位\n./client_windows_amd64.exe -s SERVER_IP -p SERVER_SSL_PORT -k CLIENT_KEY -ssl true\n```\n\n#### 其他\n\n- 在家里使用公司的网络，可以和 [https://github.com/ffay/http-proxy-server](https://github.com/ffay/http-proxy-server) 这个http代理项目配合使用\n- 对于正常网站，80和443端口只有一个，可以和 [https://github.com/ffay/proxygateway](https://github.com/ffay/proxygateway) 这个项目或nginx配合使用，不同域名反向代理到内部其他端口上去，再由其他端口映射到内网即可；对于ssh或远程桌面等可随意选择其他未占用的端口映射到内网\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffay%2Flan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fffay%2Flan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffay%2Flan/lists"}