Code Monkey home page Code Monkey logo

goproxy's Introduction

goproxy

将socks5/http代理/shadowsocks代理转换成http代理

程序运行需要goproxy.conf配置文件

下面的例子表示:

  • 代理在0.0.0.0:18080监听,同时支持http和socks5代理协议
  • http代理根据规则进行匹配
  • 所有规则都没匹配上,则走socks5代理的127.0.0.1:11080,如果没有配置这一项,则表示直接通过本地访问
  • channel代表了不同的访问规则
  • 这里配置了一个规则,符合规则的域名,走socks5代理的127.0.0.1:11081
  • socks5代理始终使用[socks5]的配置节点,走shadowsocks协议,访问123.123.123.123:1234

type支持的格式

  • socks5 表示启用socks5代理,addr为代理地址
  • http 表示启用http代理,addr为代理地址
  • 没有 表示服务器直接代理
  • ss,<加密算法>,<密钥> 表示使用shadowsocks代理,addr为用逗号隔开的多个shadowsocks服务器地址
listen = "0.0.0.0:18080"
[default]
name = "default"
type = "socks5"
addr = "127.0.0.1:11080"
[[socks5]]
name = "socks5"
type = "ss,rc4-md5,password"
addr = "123.123.123.123:1234"
[[channel]]
name = "socks5"
type = "socks5"
addr = "127.0.0.1:11081"
domains = [
    "google.com",
]

goproxy's People

Contributors

nybuxtsui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.