v2fly 配置

将docker-compose.yml里面的***替换成敏感词:

**ray
v2***

这个单词是敏感词,只能通过这种方式了,懂得都懂

服务端

docker-compose.yml

  v2fly:
    image: v2fly/v2fly-core
    restart: unless-stopped
    ports:
      - 12345:12345
    volumes:
      - ./v2fly:/etc/***
    command:  *** -config=/etc/***/config.json

config.json

{
    "log": {
        "access": "/var/log/***/access.log",
        "error": "/var/log/***/error.log",
        "loglevel": "warning"
    },
    "inbound": {
        "port": 12345,
        "protocol": "vmess",
        "settings": {
            "clients": [
                {
                    "id": "UUID",
                    "level": 1,
                    "alterId": 0
                }
            ]
        }
    },
    "outbound": {
        "protocol": "freedom",
        "settings": {}
    },
    "inboundDetour": [],
    "outboundDetour": [
        {
            "protocol": "blackhole",
            "settings": {},
            "tag": "blocked"
        }
    ],
    "routing": {
        "strategy": "rules",
        "settings": {
            "rules": [
                {
                    "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"
                }
            ]
        }
    }
}
posted @ 2022-03-19 10:59  qianbuhan  阅读(2076)  评论(0编辑  收藏  举报