Code Monkey home page Code Monkey logo

porter's Introduction

porter

反向代理 | 端口转发 | 端口复用

功能

根据数据包的Host内容,将http请求、http代理以及带有http混淆的代理(ss/ssr)转发到指定的地址,可简单实现ss/ssr单端口多用户。

运行参数

-config 指定配置文件名(default:config.json);也可以指定远程地址(example: http://rss.example.com/config),当指定远程地址的时候,每分钟请求一次更新配置参数
-l 指定监听的端口(default:8080)

配置文件参数

param - http请求头的Host内容,ss/ssr客户端填写的混淆参数
address - 目标服务的地址和端口(可以本地地址也可以远程地址)
host - 转发后请求头的Host内容(留空则不处理Host)

json配置文件

{
  "forward":[
    {
      "param":"google.com",
      "address":"127.0.0.1:6077",
      "host":"targeA.host.com"
    },
    {
      "param":"ss.proxy.com",
      "address":"186.168.188.166:6088",
      "host":""
    },
    {
      "param":"ssr.proxy.com",
      "address":"186.168.188.166:6099",
      "host":"targeB.host.com"
    }
  ]
}

porter's People

Contributors

ooxoop avatar

Watchers

James Cloos 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.