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

能否再添加一个传入端口,不经路由规则,全部走代理? #287

Closed
6656i opened this issue Nov 11, 2016 · 2 comments
Closed

Comments

@6656i
Copy link

6656i commented Nov 11, 2016

附上服务端配置,客户端用的是SS。

{
  "log" : {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "dns": {
        "servers": [
          "114.114.114.114",
          "8.8.8.8",
          "localhost"
      ]
  },
  "inbound": {
    "port": 1234,
    "protocol": "shadowsocks",
    "settings": {
        "method": "aes-256-cfb",
        "password": "123456789abc.",
        "udp": false,
        "level": 0
        }
  },
  "outbound": {
    "protocol": "shadowsocks",
    "settings": {
         "servers": [
        {
        "address": "127.0.0.1",
        "port": 4321,
        "method": "aes-256-cfb",
        "password": "123456789abc.",
        "ota": false
        }
  ]
}
  },
  "outboundDetour": [
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    },
    {
      "protocol": "freedom",
      "tag": "direct",
      "settings": {}
    }
  ],
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "domain": [
          "baidu.com",
          "qq.com"
        ],
          "outboundTag": "direct"
        },
        {
          "type": "chinaip",
          "outboundTag": "direct"
        },
        {
          "type": "field",
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "192.168.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10"
          ],
          "outboundTag": "blocked"
        }
      ]
    }
  },
  "transport": {
    "kcpSettings": {
      "uplinkCapacity": 10,
      "downlinkCapacity": 10
    }
  }
}

@6656i
Copy link
Author

6656i commented Nov 11, 2016

看文档inboundDetour多个tag标识,但没找到怎么直接关联到outboundDetour,不经过路由规则。

@v2ray
Copy link
Collaborator

v2ray commented Nov 13, 2016

2.6 新增功能,routing 中现在多了一个参数,可以把 inbound tag 定向到 outbound tag。 https://www.v2ray.com/chapter_02/03_routing.html

@v2ray v2ray closed this as completed Nov 13, 2016
github-actions bot pushed a commit to 3gZ2jA/v2ray-core that referenced this issue Oct 9, 2020
* update to IETF QUIC draft-29
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