v2ray配置示例

默认分类 · 4 天前

OUTBOUND

SOCKS5

 {
      "tag": "proxy",
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "6.6.6.6",
            "ota": false,
            "port": 1081,
            "level": 1
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },

Trojan

 {
      "tag": "proxy",
      "protocol": "trojan",
      "settings": {
        "servers": [
          {
            "address": "6.6.6.6",
            "method": "chacha20",
            "ota": false,
            "password": "password",
            "port": 443,
            "level": 1
          }
        ]
      },
      "streamSettings": {
        "network": "tcp",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false,
          "serverName": "trojan.test.com"
        }
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },

SS

{
      "tag": "proxy",
      "protocol": "shadowsocks",
      "settings": {
        "servers": [
          {
            "address": "6.6.6.6",
            "method": "aes-256-gcm",
            "ota": false,
            "password": "password",
            "port": 6666,
            "level": 1
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },

Vless

{
      "tag": "proxy",
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "vl.test.com",
            "port": 443,
            "users": [
              {
                "id": "0c9c3f82-e335-4c83-a514-dd9cd1d235fc",
                "email": "t@t.tt",
                "security": "auto",
                "encryption": "none"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false,
          "serverName": "vl.test.com" //SNI
        },
        "wsSettings": {
          "path": "/fuckFW",
          "headers": {
            "Host": "vl.test.com"
          }
        }
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },

INBOUND

SS

{
      "port": 27001,
      "protocol": "shadowsocks",
      "tag": "rd_in",
      "settings": {
        "method": "aes-256-gcm",
        "ota": true,
        "password": "daoke1504"
      }
    }

Socks5

   {
      "tag": "socks",
      "port": 10808,
      "listen": "0.0.0.0",
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ],
        "routeOnly": false
      },
      "settings": {
        "auth": "noauth",
        "udp": true,
        "allowTransparent": false
      }
    },

http

    {
      "tag": "http",
      "port": 10809,
      "listen": "0.0.0.0",
      "protocol": "http",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ],
        "routeOnly": false
      },
      "settings": {
        "auth": "noauth",
        "udp": true,
        "allowTransparent": false
      }
    },
Theme Jasmine by Kent Liao