sazima / proxynt Goto Github PK
View Code? Open in Web Editor NEW内网穿透工具 基于Python/WebSocket实现, Expose your local services to the internet.
Home Page: https://pypi.org/project/proxynt/
License: MIT License
内网穿透工具 基于Python/WebSocket实现, Expose your local services to the internet.
Home Page: https://pypi.org/project/proxynt/
License: MIT License
请问怎么在代码里面关闭log ,感觉对速度有影响。 我配置log level 好像没有作用
windows 客户端运行一天后cpu资源会被占满
连续运行客户端会生成GB级的LOG文件,占用存储空间,是否有关闭日志记录功能的方法呢?
每一个转发都要配置一次太麻烦了
感受: 使用了大佬的这个项目,感觉非常好,隐藏一下路径,挂HTTPS的网站后面,基本不会知道这是反向服务器,不会被运营商封宽带。
问题: 就是反代http时,没有压缩,家宽上行带宽小,体感不够流畅。
解决方案: 希望大佬能支持一下双向snappy流式压缩,解决带宽不足,CPU有余的痛点
snappy有现成的Python库: https://zhuanlan.zhihu.com/p/427782160
服务端如何使用开启wss
平时一直在用nps和frp来做内网转发
前段时间有幸了解到proxynt这个项目,用了一段时间,不知道是啥问题,我主要是转发了jellyfin的端口,媒体流数据,有时候觉得似乎不太稳定,不过那会儿没时间深入学习,今天看了下项目代码,proxynt的工作方式应该是客户端与服务端建立websocket协议的链接,然后服务端暴露tcp协议的接口供外部访问,接收到的数据通过websocket协议转发给客户端,客户端在从websocket协议拿出数据,通过服务端发送过来的数据确定与哪个接口建立tcp连接并产生数据交互,之后在通过websocket协议把数据放回服务端,之后通过已经建立连接的tcp对象返回实际数据给到访问的用户。
应该大概是这个过程,整个流程,websocket是个很重要的角色,是载具。
在进行一段时间使用试试,按理来说应该不会出问题,毕竟websocket是双全工的,后续若有问题,整理日志来反馈
2022-10-10 19:53:00,534 tcp_forward_client.py 70 close_connection close <socket.socket fd=728, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 53130), raddr=('127.0.0.1', 8080)>
2022-10-10 19:53:01,052 tcp_forward_client.py 70 close_connection close <socket.socket fd=732, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 53131), raddr=('127.0.0.1', 8080)>
2022-10-10 19:53:09,807 tcp_forward_client.py 70 close_connection close <socket.socket fd=736, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 64198), raddr=('127.0.0.1', 8080)>
2022-10-10 19:53:10,292 tcp_forward_client.py 70 close_connection close <socket.socket fd=732, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 64199), raddr=('127.0.0.1', 8080)>
You pressed Ctrl+C!
然后就卡住了.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.