A proxy server for TCP socket connections in Python 3, it supports the scalable I/O event, epoll and kqueue, for high performance in large number of connections.
To install python-3, please follow the instructions in Python offical site.
To install setuptools, please follow the instructions in setuptools package site.
git clone https://github.com/Aludirk/tcp-proxy
cd tcp-proxy
python setup.py install
To set up a proxy to a remote server some.domain.com:9999
, and accept connections by localhost:5354
(default).
tcp-proxy some.domain.com 9999
To set up a proxy to a remote server some.domain.com:9999
, and accept connections by 192.168.0.100:20000
.
tcp-proxy -H 192.168.0.100 -p 20000 some.domain.com 9999
tcp-proxy -m epoll some.domain.com 9999
This software is licensed under the GNU GPL v3 license. © 2017 Aludirk Wong