| 本帖最後由 yiucsw 於 2020-1-15 09:04 編輯 
 luci-app-v2ray generated script.
 
 複製代碼{
        "log": {
                "access": "\/var\/log\/v2ray-access.log",
                "loglevel": "warning",
                "error": "\/var\/log\/v2ray-error.log"
        },
        "routing": {
                "domainStrategy": "IPOnDemand",
                "rules": [
                        {
                                "type": "field",
                                "ip": [
                                        "geoip:private",
                                        "geoip:cn"
                                ],
                                "outboundTag": "direct"
                        },
                        {
                                "type": "field",
                                "domain": [
                                        "geosite:cn"
                                ],
                                "outboundTag": "direct"
                        },
                        {
                                "type": "field",
                                "protocol": [
                                        "bittorrent"
                                ],
                                "outboundTag": "direct"
                        },
                        {
                                "type": "field",
                                "port": "53",
                                "network": "udp",
                                "inboundTag": [
                                        "transparent"
                                ],
                                "outboundTag": "dns_out"
                        },
                        {
                                "type": "field",
                                "ip": [
                                        "1.1.1.1",
                                        "8.8.8.8",
                                        "208.67.222.222"
                                ],
                                "outboundTag": "proxy"
                        }
                ]
        },
        "inbounds": [
                {
                        "listen": "0.0.0.0",
                        "port": 1080,
                        "protocol": "socks",
                        "settings": {
                                "auth": "noauth",
                                "udp": false
                        },
                        "streamSettings": {
                                "sockopt": {
                                        
                                }
                        },
                        "sniffing": {
                                "enabled": true,
                                "destOverride": [
                                        "http",
                                        "tls"
                                ]
                        }
                },
                {
                        "port": 1081,
                        "protocol": "dokodemo-door",
                        "settings": {
                                "followRedirect": true,
                                "network": "tcp"
                        },
                        "streamSettings": {
                                "sockopt": {
                                        "tproxy": "redirect"
                                }
                        },
                        "tag": "transparent",
                        "sniffing": {
                                "enabled": true,
                                "destOverride": [
                                        "http",
                                        "tls"
                                ]
                        }
                }
        ],
        "outbounds": [
                {
                        "sendThrough": "0.0.0.0",
                        "protocol": "vmess",
                        "settings": {
                                "vnext": [
                                        {
                                                "address": "yourservr.dynu.net",
                                                "port": 443,
                                                "users": [
                                                        {
                                                                "id": "8b737d60-a000-4a0f-8de3-218fa0c0a3d8",
                                                                "alterId": 64,
                                                                "security": "chacha20-poly1305"
                                                        }
                                                ]
                                        }
                                ]
                        },
                        "streamSettings": {
                                "network": "ws",
                                "security": "tls",
                                "tlsSettings": {
                                        "serverName": "yourserver.dynu.net",
                                        "allowInsecure": true,
                                        "allowInsecureCiphers": false,
                                        "disableSystemRoot": false,
                                        "certificates": [
                                                
                                        ]
                                },
                                "wsSettings": {
                                        "path": "\/vpath"
                                },
                                "sockopt": {
                                        "mark": 255
                                }
                        },
                        "tag": "proxy",
                        "mux": {
                                "enabled": true,
                                "concurrency": 8
                        }
                },
                {
                        "protocol": "freedom",
                        "settings": {
                                
                        },
                        "streamSettings": {
                                "sockopt": {
                                        "mark": 255
                                }
                        },
                        "tag": "direct"
                },
                {
                        "protocol": "dns",
                        "settings": {
                                
                        },
                        "streamSettings": {
                                "sockopt": {
                                        "mark": 255
                                }
                        },
                        "tag": "dns_out"
                }
        ]
}
 Hope it works。
 |