Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing traffic to specific interfaces based on target host with socks5 proxy #644

Open
sergerdn opened this issue Jan 5, 2025 · 0 comments

Comments

@sergerdn
Copy link

sergerdn commented Jan 5, 2025

Summary

I want to configure gost to route all outgoing traffic through a default interface (e.g., 10.10.11.200), while routing traffic to specific domains (e.g., geo.brdtest.com) through another interface (e.g., enp0s3).

Despite trying various configurations, I couldn't achieve the expected behavior.

My Test Configuration

The following configuration is intended to test how chains work based on the target domain. However, it does not work as expected because all traffic is routed via enp0s3, and the bypass rules are ignored.

services:
  - name: "socks5-6001"
    addr: ":6001"
    handler:
      type: socks5
      chain: chain-0
      metadata:
        udp: true
        udpBufferSize: 4096
    listener:
      type: tcp

chains:
  - name: chain-0
    hops:
      - name: hop-0
        nodes:
          - name: node-0
            addr: :0
            bypass: bypass-0
            interface: enp0s3
            connector:
              type: virtual
            dialer:
              type: virtual
          - name: node-1
            addr: :0
            bypass: bypass-1
            interface: 10.10.11.200
            connector:
              type: virtual
            dialer:
              type: virtual
bypasses:
  - name: bypass-0
    whitelist: true
    matchers:
      - geo.brdtest.com
  - name: bypass-1
    whitelist: true
    matchers:
      - lumtest.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant