Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qiaofei32/tcp-multiplexer
A TCP service multiplexer in Python
https://github.com/qiaofei32/tcp-multiplexer
protocol python shadowsocks shadowsocksr socket
Last synced: 3 months ago
JSON representation
A TCP service multiplexer in Python
- Host: GitHub
- URL: https://github.com/qiaofei32/tcp-multiplexer
- Owner: qiaofei32
- Created: 2017-02-06T08:07:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-28T07:11:53.000Z (about 7 years ago)
- Last Synced: 2024-06-25T03:33:48.690Z (4 months ago)
- Topics: protocol, python, shadowsocks, shadowsocksr, socket
- Language: Python
- Size: 5.86 KB
- Stars: 33
- Watchers: 2
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-network-stuff - **25**星
README
# tcp-multiplexer
A TCP service multiplexer in Python## 用途
在远程服务器只开放特定端口,但是需要支持不同应用访问的时候,如某服务器/防火墙只允许9000端口进行通信,但是此时我想要使用ssh服务,同时使用其http服务,或者其他服务。此时,可以使用该程序进行端口多路复用。`tcp-multiplexer-demo.py`中的`PROTOCOL_RULES`可以根据需要进行配置,监听在本地的端口如:9000,接收到客户端的请求之后,会根据正则表达式去匹配相应的规则进行应用选择。
## 开发背景
想通过80端口,同时使用HTTP服务以及SSR服务## 参考
- [https://github.com/darvid/emissary](https://github.com/darvid/emissary "A TCP service multiplexer")
- Python TCP Proxy