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

请问如何为 inbound 启用 TCP 快速打开? #16

Open
tearfulDalvik opened this issue May 27, 2022 · 3 comments
Open

请问如何为 inbound 启用 TCP 快速打开? #16

tearfulDalvik opened this issue May 27, 2022 · 3 comments

Comments

@tearfulDalvik
Copy link

根据 v2ray 文档(https://www.v2ray.com/chapter_02/05_transport.html#streamsettingsobject),强制打开 TFO 的选项在 StreamSettingsObject 中,但StreamSettingsObject包含在inbound中,而这是由 Airu 控制的部分。

请问如何手动强制打开 tfo 呢?

@crossfw
Copy link
Owner

crossfw commented Jul 5, 2022

手动配置Xray入站

@tearfulDalvik
Copy link
Author

手动配置Xray入站

请问如何配置呢?这个部分不是由 airu 从 API 自动添加的吗?

@zhyonc
Copy link

zhyonc commented Jul 11, 2022

手动配置Xray入站

请问如何配置呢?这个部分不是由 airu 从 API 自动添加的吗?

  • Route:client->xray:443[tfo-in]->xray[direct-out]->au10084->xray10085[api]->xray[raw-in]->xray[direct-out]
//Xray server config.json
{
    "inbouds": [
    {
        "listen": "127.0.0.1",
        "port": 443,
        "protocol": "dokodemo-door",
        "settings":
        {
            "address": "127.0.0.1",
            "port": 10084 //v2board node server port is equivalent to air-universe listening port
        },
        "streamSettings":
        {
            "network": "tcp",
            "security": "tls",
            "tlsSettings":
            {
                "certificates": [
                {
                    "certificateFile": "/path/to/fullchain.crt",
                    "keyFile": "/path/to/private.key"
                }]
            },
            "sockopt":
            {
                "tcpFastOpen": true
            }
        },
        "tag": "tfo-in"
    },
    {
        "listen": "127.0.0.1",
        "port": 10085, //This port use for air-universe callback api to create user info
        "protocol": "dokodemo-door",
        "settings":
        {
            "address": "127.0.0.1"
        },
        "tag": "api"
    }],
    "outbounds": [
    {
        "protocol": "freedom",
        "settings": {},
        "tag": "direct-out"
    }],
    "api":
    {
        "services": [
            "HandlerService",
            "StatsService"
        ],
        "tag": "api"
    },
    "stats":{},
    "policy":
    {
        "levels":
        {
            "0":
            {
                "statsUserDownlink": true,
                "statsUserUplink": true
            }
        }
    },
    "routing":
    {
        "rules": [
        {
            "type": "field",
            "domainStrategy": "AsIs",
            "inboundTag": ["tfo-in","raw-in"],
            "outboundTag": "direct-out"
        },
        {
            "type": "field",
            "domainStrategy": "AsIs",
            "inboundTag": ["api"],
            "outboundTag": "api"
        }]
    }
}
//Air-Universe au.json
"proxy":
{
    "type": "xray",
    "alter_id": 0,
    "auto_generate": true,
    "in_tags": ["raw-in"],
    "api_address": "127.0.0.1",
    "api_port": 10085,
    "force_close_tls": true,
    "log_path": "/var/log/au.log",
    "cert":
    {
        "cert_path": "/path/to/certificate.crt",
        "key_path": "/path/to/key.key"
    },
    "speed_limit_level": [0]
}


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

3 participants