项目作者: Aludirk

项目描述 :
TCP proxy.
高级语言: Python
项目地址: git://github.com/Aludirk/tcp-proxy.git
创建时间: 2017-08-18T08:25:15Z
项目社区:https://github.com/Aludirk/tcp-proxy

开源协议:GNU General Public License v3.0

下载


TCP Proxy (0.1.0)

Introduction

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.

Installation

Python 3

To install python-3, please follow the instructions in Python offical site.

setuptools

To install setuptools, please follow the instructions in setuptools package site.

TCP Proxy

  1. git clone https://github.com/Aludirk/tcp-proxy
  2. cd tcp-proxy
  3. python setup.py install

Examples

Simple proxy server

To set up a proxy to a remote server some.domain.com:9999, and accept connections by localhost:5354 (default).

  1. tcp-proxy some.domain.com 9999

Simple proxy server with specific downstream

To set up a proxy to a remote server some.domain.com:9999, and accept connections by 192.168.0.100:20000.

  1. tcp-proxy -H 192.168.0.100 -p 20000 some.domain.com 9999

Proxy server using epoll event

  1. tcp-proxy -m epoll some.domain.com 9999

License

This software is licensed under the GNU GPL v3 license. © 2017 Aludirk Wong