프로젝트
GitHub에서 보기
xsank/EasyProxy
소개
Make tcp proxy easy to use.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalEasyProxy
A simple proxy server.
Introduction
+----------+ +------------+
| client |<--------+ | |
+----------+ +-------->+-----+<--------------->| server |
| | | |
+----------+ | | +------------+
| client |<----------------->| |
+----------+ | |
| | +------------+
+----------+ | L | | |
| client |<----------------->| B |<--------------->| server |
+----------+ | S | | |
| | +------------+
+----------+ | |
| client |<----------------->| |
+----------+ | | +------------+
| | | |
+----------+ +--------->+-----+<--------------->| server |
| client |<-------+ | |
+----------+ +------------+
As the chart above, easyproxy act as the LBS server. If you meet the situation that cannot access some service directly or need a server as a gateway, you may use this to proxy.
Usage
go get github.com/xsank/EasyProxy
go run build.go build
- The sample config is about mysql proxy, so you can access the mysql database actually at backend
through the
localhost 9527, you can easily modify thedefault.jsonto change the service. Any protocol based onTCPwould work well such as:mysql, ssh, svn... - For keep simple, easyproxy only support
poll,random,iphashstrategies, and the default strategy ispoll,the easyproxy would add more if there is a demand. - Besides, you can
curl localhost:7259/statisticto get the current connection status. If you want to know more runtime debug info about the proxy, you cancurl http://localhost:7259/debug/pprofto get more details. - You can change the number of MAX processorsand and the heartbeat time based on your requirements.
License
Easyproxy is distributed under MIT License.
관련 프로젝트 살펴보기
불러오는 중…