Coder Social home page Coder Social logo

cf-agent's Introduction

cf-agent

使用Cloudflare Worker转发报文的Mitn-Http代理服务

使用

  • 运行程序生成config.txt,worker.txt与根证书文件ca.crt
  • 将ca.crt证书导入到操作系统或者由浏览器证书管理器导入, Windows导入可运行: certutil -addstore Root ca.crt
  • 复制worker.txt全部内容到Cloudflare Worker部署
  • 修改config.txt文件

{"domain":"a.com","psw":"","hport":8082,"hbind":"127.0.0.1","wkip":"","ca":{}}

  • domain: worker绑定的域名 (必填)
  • psw: 与worker.txt里的psw变量相同值 (必填)
  • ca: 使用MITM服务的根证书(程序生成) (必填)
  • hport: 本地绑定的http代理端口
  • hbind: 本地绑定的http代理地址, 一般为 127.0.0.1
  • wkip: 为本地连接到worker指定优选的IP, 不指定则不优选IP

运行程序后将在本地机器开启一个http代理端口,浏览器设置代理到此端口即可代理上网

cf-agent's People

Contributors

free-gx 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.