Go to file
Hirbod Behnam 1b772667f2
Fixed the gRPC settings location (#68)
2021-04-02 22:26:18 +08:00
Shadowsocks-TCP shadowsocks port use integer 2021-01-06 14:51:55 +08:00
Shadowsocks-Websocket-Web-TLS Merge pull request #42 from touamano/patch-1 2020-10-18 00:03:52 +08:00
Socks5-TLS refine options 2021-01-14 01:50:28 +08:00
Trojan-TCP-TLS (minimal) rename for clone success 2020-10-10 00:22:16 +08:00
VLESS-H2C-Caddy2 Update client.json 2020-09-22 12:04:18 +08:00
VLESS-TCP fix direct outboundTag 2020-11-22 05:47:52 +08:00
VLESS-TCP-TLS fix direct outboundTag 2020-11-22 05:47:52 +08:00
VLESS-TCP-TLS (maximal by rprx) Use relative links 2020-11-26 06:32:14 +00:00
VLESS-TCP-TLS (minimal by rprx) Use relative links 2020-11-26 06:32:14 +00:00
VLESS-TCP-TLS-WS (recommended) Use relative links 2020-11-26 06:32:14 +00:00
VLESS-TCP-TLS-proxy protocol fix direct outboundTag 2020-11-22 05:47:52 +08:00
VLESS-gRPC-TLS Fixed the gRPC settings location (#68) 2021-04-02 22:26:18 +08:00
VLESS-mKCPSeed refine options 2021-01-14 01:50:28 +08:00
VMess-HTTP fix rules outboundTag 2020-11-22 05:37:44 +08:00
VMess-HTTP2 fix rules outboundTag 2020-11-22 05:37:44 +08:00
VMess-TCP fix rules outboundTag 2020-11-22 05:37:44 +08:00
VMess-TCP-TLS fix rules outboundTag 2020-11-22 05:37:44 +08:00
VMess-Websocket fix rules outboundTag 2020-11-22 05:37:44 +08:00
VMess-Websocket-TLS fix rules outboundTag 2020-11-22 05:37:44 +08:00
VMess-mKCPSeed update vmess mkcp 2020-12-08 00:59:12 +08:00
how-to-choose Fix width. 2020-07-31 21:27:01 +08:00
.editorconfig add editconfig and use 4 space 2020-07-31 19:14:59 +08:00
.gitignore update readme 2020-07-31 18:37:13 +08:00
README.md Refine: readme example config 2020-12-24 21:48:50 +08:00

README.md

v2ray-examples

这里是一些供参考的 V2Ray 配置示例,内容与时俱进,自动化脚本等请勿从这里拉取配置。

感谢 vTemplate 的作者 KiriKira、雨落无声和 Project V 的所有开发人员。

贡献指南

欢迎你将自己使用的配置制作模板,提交 PR。

模板应遵守以下标准:

  • 缩进使用 4 个空格
  • 方 (花) 括号不换行
  • 不需要的字段应该移除
  • log 部分只留 loglevel
  • 对于 outbounds,客户端应有 proxydirect,服务端应有 directblock
  • 除非是适用于特定场景的模板,否则应当将 geoip:private 路由到 direct 出站 (服务端配置路由到 block 出站)
  • 除非是适用于特定场景的模板,否则配置文件中不应出现 DNS
  • uuid 应留空,由用户自行填写。
  • routing 中的 domainStrategy 保持默认,即 AsIs

举例

{
    "log": {
        "loglevel": "warning"
    },
    "routing": {},
    "inbounds": [],
    "outbounds": []
}

客户端

{
    "log": {
        "loglevel": "warning"
    },
    "routing": {
        "domainStrategy": "AsIs",
        "rules": [
            {
                "ip": [
                    "geoip:private"
                ],
                "outboundTag": "direct",
                "type": "field"
            }
        ]
    },
    "inbounds": [
        {
            "port": 1080,
            "protocol": "socks",
            "settings": {
                "auth": "noauth",
                "udp": true
            },
            "tag": "socks"
        }
    ],
    "outbounds": [
        {
            "protocol": "vmess",
            "settings": {
                "vnext": [
                    {
                        "users": [
                            {
                                "id": ""
                            }
                        ],
                        "port": 1234,
                        "address": "Your_IP_Address"
                    }
                ]
            }
        },
        {
            "protocol": "freedom",
            "tag": "direct"
        }
    ]
}

服务端

{
    "log": {
        "loglevel": "warning"
    },
    "routing": {
        "domainStrategy": "AsIs",
        "rules": [
            {
                "ip": [
                    "geoip:private"
                ],
                "outboundTag": "blocked",
                "type": "field"
            }
        ]
    },
    "inbounds": [
        {
            "port": 1234,
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "id": "",
                    }
                ]
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom"
        },
        {
            "protocol": "blackhole",
            "tag": "blocked"
        }
    ]
}

如何选取适合自己的配置:

附加说明:
尽管 Websocket+TLS+Web 可能称得上是现阶段最好的方案,但绝对不是推荐新手一上来就尝试的方案,更不是 V2Ray 唯一的用法。
同时,你应当了解,每个地区的网络状况不同 (主要指对不同协议的 QoS 程度),你可以将所有配置都尝试一遍来寻找最适合自己的,尽量少问、最好不问“为什么我的 V2Ray 这么慢?”这样的问题。

最后

祝你玩的愉快!