Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一下脚本问题 #280

Closed
WenLiCG opened this issue Mar 2, 2025 · 1 comment
Closed

请教一下脚本问题 #280

WenLiCG opened this issue Mar 2, 2025 · 1 comment

Comments

@WenLiCG
Copy link

WenLiCG commented Mar 2, 2025

在学习大佬的脚本,想问一下22159端口对应的是啥服务?
感谢

server {
        listen       80;
        server_name  abc123.com;
        root /nginxweb/html;
        index index.php index.html index.htm;

        location /e7bc0084 {
            proxy_pass http://127.0.0.1:22159;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $http_host;

            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }




    }

xray的配置也没有对应的配置

{
    "log" : {
        "access": "/root/v2ray-access.log",
        "error": "/root/v2ray-error.log",
        "loglevel": "warning"
    },

    "inbounds": [
        {
            "port": 443,
            "protocol": "vless",
            "settings": {
                "clients": [
                    { "id": "ac7ffaad-244e-4220-93e6-35af3a9af36f", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "4ada1d14-6eac-4043-b1e1-228a191ab6de", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "4eaf6cdf-792f-4579-aaf2-53a380aab24b", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "3bdfa697-d536-4a91-ad0d-d84908abb095", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "6768d819-8c66-4a66-a8ea-3c1b86ef0305", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "5f8cba56-0de9-4ef7-b416-709d5166d167", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "bed221d6-931c-47d1-b299-e10ba2da0e37", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "c44e458a-f1f8-454a-b906-c2e2a7092322", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "062c1b97-5b8e-4fe8-83b7-a258fe35e60d", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" },
                    { "id": "af655951-10b8-4c71-881f-e64429bcbc57", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" }
                ],
                "decryption": "none",
                "fallbacks": [
                    {
                        "dest": 80
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "security": "reality",
                "realitySettings": {
                    "show": false,
                    "dest": "www.abc123.com:443",
                    "xver": 0,
                    "serverNames": [
                        "www.abc123.com",
                        "icloud.com",
                        "www.icloud.com",
                        "apple.com",
                        "www.apple.com",
                        "mozilla.org",
                        "addons.mozilla.org",
                        "ebay.com",
                        "www.ebay.com",
                        "walmart.com",
                        "www.walmart.com",
                        "etsy.com",
                        "www.etsy.com",
                        "shopify.com",
                        "www.shopify.com",
                        "samsung.com",
                        "www.samsung.com",
                        "airbnb.com",
                        "www.airbnb.com",
                        "asml.com",
                        "www.asml.com",
                        "tsmc.com",
                        "www.tsmc.com",
                        "pfizer.com",
                        "www.pfizer.com",
                        "microsoft.com",
                        "www.microsoft.com",
                        "support.microsoft.com",
                        "office.com",
                        "www.office.com",
                        "signup.live.com",
                        "www.live.com",
                        "outlook.live.com",
                        "lovelive-anime.jp",
                        "s0.awsstatic.com",
                        "d1.awsstatic.com",
                        "amazon.com",
                        "m.media-amazon.com"
                    ],
                    "privateKey": "qOpc9xcXyeRdNglpRCpzoAwEE1lFpdGvXZk5jxlPfEY",
                    "maxTimeDiff": 0,
                    "shortIds": [
                        "",
                        "c0a8a20840ca90d0"
                    ]
                }
            },
            "sniffing": {
                "enabled": true,
                "destOverride": [
                    "http",
                    "tls"
                ]
            }
        }


    ],
    "routing": {
        "domainStrategy": "IPIfNonMatch",
        "rules": [
            {
                "type": "field",
                "outboundTag": "IPv6_out",
                "domain": ["test.com" ]
            },
            {
                "type": "field",
                "outboundTag": "WARP_out",
                "domain": ["test.com" ]
            },
            {
                "type": "field",
                "outboundTag": "V2Ray_out",
                "domain": ["test.com" ]
            },

            {
                "type": "field",
                "domain": [
                    "geosite:cn"
                ],
                "outboundTag": "blocked_out"
            },
            {
                "type": "field",
                "ip": [
                    "geoip:cn"
                ],
                "outboundTag": "blocked_out"
            },
            {
                "type": "field",
                "outboundTag": "IPv4_out",
                "network": "udp,tcp"
            }
        ]
    },
    "outbounds": [
        {
            "tag":"IPv4_out",
            "protocol": "freedom",
            "settings": {
                "domainStrategy": "UseIPv4"
            }
        },
        {
            "tag": "blocked_out",
            "protocol": "blackhole",
            "settings": {
                "response": {
                    "type": "http"
                }
            }
        },
        {
            "tag":"IPv6_out",
            "protocol": "freedom",
            "settings": {
                "domainStrategy": "UseIPv6"
            }
        },


        {
            "tag": "WARP_out",
            "protocol": "socks",
            "settings": {
                "servers": [
                    {
                        "address": "127.0.0.1",
                        "port": 40000
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp"
            }
        }
    ]
}
@jinwyp
Copy link
Owner

jinwyp commented Mar 3, 2025

给vmess 用的, 你要选vmess 选项xray才有

@jinwyp jinwyp closed this as completed Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants