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

direct freedom outbound traffic doesn't get marked #2665

Closed
saman3d opened this issue Aug 25, 2023 · 2 comments
Closed

direct freedom outbound traffic doesn't get marked #2665

saman3d opened this issue Aug 25, 2023 · 2 comments
Labels
bug Something isn't working Stale

Comments

@saman3d
Copy link

saman3d commented Aug 25, 2023

What version of V2Ray are you using?

V2Ray 5.7.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.20.4 linux/amd64)

What's your scenario of using V2Ray?

using v2ray dokodemo-door and iptables to setup transparent proxy.

What problems have you encountered?

freedom outbound traffic doesn't get marked

What's your expectation?

I'm using routing rule to route some websites traffic through (tag: direct, protocol: freedom) outbound. but they get looped to dokodemo-door again. im trying to do it via marking packets and not by iptables directly (because target website ip changes frequently).

  "log": {
    "access": "",
    "error": "none",
    "loglevel": "info"
  },
  "inbounds": [
    {
      "tag": "api-in_ipv4",
      "port": 34937,
      "protocol": "dokodemo-door",
      "listen": "127.0.0.1",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "network": "tcp,udp",
        "followRedirect": true
      },
      "streamSettings": null
    }
  ],
  "outbounds": [
    {
      "tag": "proxy",
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "<my server address>",
            "port": 443,
            "users": [
              {
                "id": "<uuid>",
                "encryption": "none"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false,
          "serverName": "<my server sni>"
        },
        "wsSettings": {
          "path": "/",
          "headers": {
            "Host": "<my server address>"
          }
        },
        "sockopt": {
          "mark": 255
        }
      }
    },
    {
      "tag":"direct",
      "protocol":"freedom",
      "settings":{},
      "streamSettings": {
        "sockopt": {
          "mark": 255
        }
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
      },
      "streamSettings": {
        "sockopt": {
          "mark": 255
        }
      }
    }
  ],
  "routing": {
    "domainStrategy": "IPOnDemand",
    "domainMatcher": "mph",
    "rules": [
      {
        "type": "field",
        "outboundTag": "direct",
        "domain": [
          "<my server address>"
        ],
        "port": "443"
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "domain": [
          "chat.openai.com",
          "cdn.openai.com",
          "openai.com"
        ]
      },
      {
        "type": "field",
        "outboundTag": "proxy",
        "network": "tcp,udp"
      }
    ]
  },
  "dns": {
    "servers": [
      {
        "address": "<my dns sni proxy address>",
        "port": 53,
        "domains": [
          "openai.com",
          "chat.openai.com",
          "cdn.openai.com"
        ]
      },
      "localhost",
      "8.8.8.8",
      "8.4.4.8",
      "1.1.1.1"
    ],
    "tag": "dns"
  }
}
@AkinoKaede AkinoKaede added the bug Something isn't working label Sep 22, 2023
Copy link
Contributor

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Jan 20, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2024
@ValdikSS
Copy link
Contributor

ValdikSS commented Feb 9, 2024

@AkinoKaede, is this function broken?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

3 participants