• Stars
    star
    2,320
  • Rank 19,840 (Top 0.4 %)
  • Language Mermaid
  • Created over 4 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

v2ray-core 的模板们

v2ray-examples

ENGLISH Here are some V2Ray configuration examples for reference

这里是一些供参考的 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 这么慢?”这样的问题。

最后

祝你玩的愉快!

More Repositories

1

v2ray-core

A platform for building proxies to bypass network restrictions.
Go
29,131
star
2

fhs-install-v2ray

Bash script for installing V2Ray in operating systems such as Debian / CentOS / Fedora / openSUSE that support systemd
Shell
6,204
star
3

domain-list-community

Community managed domain list. Generate geosite.dat for V2Ray.
Go
4,880
star
4

v2ray-step-by-step

This repo is a fork of ToutyRater/v2ray-guide, we aim to provide a new step-by-step guide of v2ray
755
star
5

docker

docker build repo for v2fly
Shell
753
star
6

geoip

GeoIP for V2Ray. Generate and release GeoIP files such as geoip.dat and geoip-only-cn-private.dat for V2Ray automatically every Thursday.
Go
618
star
7

v2fly-github-io

V2Fly Website & Documentation
513
star
8

vmessping

a ping prober for vmess:// links in V2rayN/NG/Shadowrocket format.
Go
243
star
9

reproducible-builds

Reproducible builds are a set of software development practices that create an independently-verifiable path from source to binary code.
Dockerfile
36
star
10

debian

Debian Repository for V2Ray
29
star
11

alpinelinux-install-v2ray

Ash script for installing V2Ray in Alpine Linux operating system
Shell
21
star
12

V2FlyBleedingEdgeBinary

Binary file generated by CI for every eligible push, very dangerous and unstable
17
star
13

gray

A single binary distribution of v2ray project.
Go
5
star
14

discussion

5
star
15

openbsd-install-v2ray

Bash script for installing V2Ray in the OpenBSD operating system
Shell
4
star
16

Release

3
star
17

VSign

Go
2
star
18

ss-bloomring

A cherry-picked bloomring from go-shadowsocks2
Go
2
star
19

riverrun

Go
1
star
20

V2BuildAssist

Go
1
star