Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/kangaloo/go-socks-proxy

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/kangaloo/go-socks-proxy

  • v0.0.0-20190703004412-9a7acc5d3d62
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-socks-proxy

go-socks-proxy是一个使用socks5协议的代理服务器

安装

  1. go get github.com/kangaloo/go-socks-proxy
  2. cd go-socks-proxy
  3. go build
  4. ./go-socks-proxy

流量监控

go-socks-proxy集成了prometheus监控(localhost:8080/metrics),实现了以下多个视角的流量监控

  • 针对不同客户端的流量监控
  • 针对不同的访问站点的流量监控
  • 针对上传、下载总流量的监控

根据不同站点区分的上传流量

  • PromQL: sum(SOCKS_PROXY_FLOW_BYTES{FlowType="download"}) without (connections, instance, job, SRC) 统计运行错误

根据不同站点区分的下载流量

  • PromQL: sum(SOCKS_PROXY_FLOW_BYTES{FlowType="upload"}) without (connections, instance, job, SRC) 统计运行错误

上传总流量和下载总流量

  • PromQL: sum(SOCKS_PROXY_FLOW_BYTES) by (FlowType) 统计运行错误

转发过程中出现的错误

  • PromQL: sum(SOCKS_PROXY_FAILED_TOTAL) without (job, instance) 统计运行错误

FAQs

Package last updated on 03 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc