Coder Social home page Coder Social logo

Comments (2)

ginuerzh avatar ginuerzh commented on September 27, 2024

你可以增加一个节点,通过bypass将需要重定向的流量分流到此节点上,由节点来处理。

from gost.

rico0808 avatar rico0808 commented on September 27, 2024

再次请教下,对于非法请求没有进入到指定服务里。也就是配置里的 127.0.0.1:7001。
127.0.0.1:7001 这个服务是一个web服务,用于接收用户的非法请求并进行重定向。

当浏览器使用代理 :8080 端口时,访问非法域名也就是 *.taobai.com 会被直接阻断,也没有请求进入到 127.0.0.1:7001这个服务里,访问正常的域名浏览器报错 “此站点的连接不安全”

我使用的配置

services:
  - name: service-0
    addr: ":8080"
    handler:
      type: http
      chain: chain-0
    listener:
      type: tcp

chains:
  - name: chain-0
    hops:
      - name: hop-0
        nodes:
          - name: node-0
            addr: :8002
            connector:
              type: http
            dialer:
              type: tcp

          - name: node-1
            addr: 127.0.0.1:7001
            bypass: bypass-0
            connector:
              type: tcp
            dialer:
              type: tcp

bypasses:
  - name: bypass-0
    matchers:
      - "*.taobao.com"

from gost.

Related Issues (20)

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.