{"action":"created","issue":{"url":"https://api.github.com/repos/v2ray/v2ray-core/issues/1330","repository_url":"https://api.github.com/repos/v2ray/v2ray-core","labels_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/1330/labels{/name}","comments_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/1330/comments","events_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/1330/events","html_url":"https://github.com/v2ray/v2ray-core/issues/1330","id":372655811,"node_id":"MDU6SXNzdWUzNzI2NTU4MTE=","number":1330,"title":"请教一下服务器按域名自动分流转发的配置问题","user":{"login":"kennysoul","id":17644491,"node_id":"MDQ6VXNlcjE3NjQ0NDkx","avatar_url":"https://avatars2.githubusercontent.com/u/17644491?v=4","gravatar_id":"","url":"https://api.github.com/users/kennysoul","html_url":"https://github.com/kennysoul","followers_url":"https://api.github.com/users/kennysoul/followers","following_url":"https://api.github.com/users/kennysoul/following{/other_user}","gists_url":"https://api.github.com/users/kennysoul/gists{/gist_id}","starred_url":"https://api.github.com/users/kennysoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennysoul/subscriptions","organizations_url":"https://api.github.com/users/kennysoul/orgs","repos_url":"https://api.github.com/users/kennysoul/repos","events_url":"https://api.github.com/users/kennysoul/events{/privacy}","received_events_url":"https://api.github.com/users/kennysoul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-22T19:07:16Z","updated_at":"2018-10-23T08:17:46Z","closed_at":null,"author_association":"NONE","body":"资源：\r\n拥有VPS1和VPS2两台服务器，VPS1（主力）搭载v2ray 版本3.48，VPS2（工作用）搭载Shadowsocks；\r\n\r\n现状：\r\n1、本地客户端连接VPS1或VPS2均可正常使用，服务器本身配置没有问题；\r\n2、客户端连接VPS2的速度不理想，但客户端连接VPS1，以及VPS1连接VPS2的速度都相当理想；\r\n 3、VPS2只能提供SS服务，不能安装v2ray等其它服务\r\n\r\n需求：\r\n因某些场景（本文以google.com为例）需要VPS2的IP，所以希望在VPS1上配置，实现自动转发的功能，不需要更改客户端的设置；\r\n\r\n求助：\r\n参考了网上的资料后自行配置了一下，但不成功，因为本身只是个新手，找不到问题所在，现将我的配置文件（VPS1的配置文件）发上来，请各位高手帮忙指正一下，谢谢！\r\n\r\n`{\r\n  \"inbound\": {\r\n    \"port\": 9394,\r\n    \"protocol\": \"vmess\",\r\n    \"settings\": {\r\n      \"clients\": [\r\n        {\r\n          \"id\": \"27568e45-xxxx-xxxx-xxxx-170559eae1aa\",\r\n          \"level\": 1,\r\n          \"alterId\": 64\r\n        }\r\n      ]\r\n    }\r\n  },\r\n  \"outbound\": {\r\n    \"protocol\": \"freedom\",\r\n    \"settings\": {}\r\n  }\r\n},\r\n  \"outboundDetour\": [\r\n    {\r\n      \"protocol\": \"shadowsocks\",\r\n      \"settings\": {\r\n           \"servers\": [\r\n          {\r\n            \"address\": \"2.2.2.2\", //my vps2的IP\r\n            \"method\": \"rc4-md5\",\r\n            \"ota\": false,\r\n            \"password\": \"mypassword\",\r\n            \"port\": 1997\r\n          }\r\n         ]  \r\n        },\r\n      \"tag\": \"work\"\r\n }\r\n],\r\n\r\n  \"routing\": {\r\n    \"strategy\": \"rules\",\r\n    \"settings\": {\r\n      \"rules\": [\r\n        {\r\n          \"domain\": [\r\n            \"www.goole.com\"  // 匹配\"www.goole.com\"的域名\r\n          ],\r\n          \"outboundTag\": \"work\"\r\n        }\r\n      ]\r\n    }\r\n  }\r\n\r\n\r\n`\r\n"},"comment":{"url":"https://api.github.com/repos/v2ray/v2ray-core/issues/comments/432144565","html_url":"https://github.com/v2ray/v2ray-core/issues/1330#issuecomment-432144565","issue_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/1330","id":432144565,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjE0NDU2NQ==","user":{"login":"kennysoul","id":17644491,"node_id":"MDQ6VXNlcjE3NjQ0NDkx","avatar_url":"https://avatars2.githubusercontent.com/u/17644491?v=4","gravatar_id":"","url":"https://api.github.com/users/kennysoul","html_url":"https://github.com/kennysoul","followers_url":"https://api.github.com/users/kennysoul/followers","following_url":"https://api.github.com/users/kennysoul/following{/other_user}","gists_url":"https://api.github.com/users/kennysoul/gists{/gist_id}","starred_url":"https://api.github.com/users/kennysoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennysoul/subscriptions","organizations_url":"https://api.github.com/users/kennysoul/orgs","repos_url":"https://api.github.com/users/kennysoul/repos","events_url":"https://api.github.com/users/kennysoul/events{/privacy}","received_events_url":"https://api.github.com/users/kennysoul/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T08:17:46Z","updated_at":"2018-10-23T08:17:46Z","author_association":"NONE","body":"以下是JSON EDITOR在线校验后的json代码：\r\n`{\r\n\"inbound\": {\r\n\"port\": 9394,\r\n\"protocol\": \"vmess\",\r\n\"settings\": {\r\n\"clients\": [\r\n{\r\n\"id\": \"27568e45-xxxx-xxxx-xxxx-170559eae1aa\",\r\n\"level\": 1,\r\n\"alterId\": 64\r\n}\r\n]\r\n}\r\n},\r\n\"outbound\": {\r\n\"protocol\": \"freedom\",\r\n\"settings\": {}\r\n},\r\n\"outboundDetour\": [\r\n{\r\n\"protocol\": \"shadowsocks\",\r\n\"settings\": {\r\n\"servers\": [\r\n{\r\n\"address\": \"2.2.2.2\", \r\n\"method\": \"aes-256-gcm\",\r\n\"ota\": false,\r\n\"password\": \"mypassword\",\r\n\"port\": 1997\r\n}\r\n]\r\n},\r\n\"tag\": \"work\"\r\n}\r\n],\r\n\r\n\"routing\": {\r\n\"strategy\": \"rules\",\r\n\"settings\": {\r\n\"rules\": [\r\n{\r\n\"domain\": [\r\n\"www.google.com\" \r\n],\r\n\"outboundTag\": \"work\"\r\n}\r\n]\r\n}\r\n}\r\n}\r\n`"}}
{"actor":{"display_login":"kennysoul"}}