Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

最新版本的 UseIPv6 不起作用

Open yang05051 opened this issue 3 years ago • 6 comments
trafficstars

Screenshot_20220403-185437.jpg 如图示的配置,在 1.5.3 及以前的版本中可以发挥作用,使xray默认使用IPv6访问互联网 但在最新的 1.5.4 的版本却不起作用,希望开发解决这个问题

yang05051 avatar Apr 03 '22 10:04 yang05051

1.5.4 没改这块儿 确定 1.5.3 是好的?看一下 debug log

yuhan6665 avatar Apr 03 '22 15:04 yuhan6665

1.5.4 没改这块儿 确定 1.5.3 是好的?看一下 debug log


-- Logs begin at Sun 2022-04-03 07:43:23 UTC, end at Mon 2022-04-04 01:34:07 UTC. -- 
                                                     
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [2360794662] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe                              
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [1817450177] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled                   
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [1817450177] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe                              
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [3462465464] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled                   
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [3462465464] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe                              
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [1507342587] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled                   
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [1507342587] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe                              
Apr 04 01:33:38 Daniel-A xray[697491]: 2022/04/04 01:33:38 [Info] [1209778774] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled                   
Apr 04 01:33:38 Daniel-A xray[697491]: 2022/04/04 01:33:38 [Info] [1209778774] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > context canceled                                 
Apr 04 01:33:38 Daniel-A xray[697491]: 2022/04/04 01:33:38 [Info] [1209778774] app/proxyman/inbound: failed to close connection > tls: failed to send closeNotify alert (but connection was closed anyway): write tcp 10.0.0.4:443->MyServerIP:55558: write: broken pipe

服务端的

yang05051 avatar Apr 04 '22 01:04 yang05051

1.5.4 没改这块儿 确定 1.5.3 是好的?看一下 debug log

{                                                                                                                                 
   "log": {                                                                                                                       
            "loglevel": "debug"                                                                                                   
   },                                                                                                                             
    "inbounds": [                                                                                                                 
        {                                                                                                                         
            "port": 443,                                                                                                          
            "protocol": "vless",                                                                                                  
            "settings": {                                                                                                         
                "clients": [                                                                                                      
                    {                                                                                                             
                        "id": "id",                                                             
                        "flow": "xtls-rprx-direct",                                                                               
                        "level": 0,                                                                                               
                        "email": "daniel@me"                                                                                      
                    }                                                                                              
                ],                                                                                                                
                "decryption": "none",                                                                                             
                "fallbacks": [                                                                                                    
                    {                                                                                                             
                        "dest": "/dev/shm/default.sock",                                                                          
                        "xver": 1                                                                                                 
                    },                                                                                                            
                    {                                                                                                             
                        "alpn": "h2",                                                                                             
                        "dest": "/dev/shm/h2c.sock",                                                                              
                        "xver": 1                                                                                                 
                    }                                                                                                             
                ]                                                                                                                 
            },                                                                                                                    
            "sniffing": {                                                                                                         
                "enabled": true,                                                                                                  
                "destOverride": [ "http", "tls" ]                                                                                 
            },                                                                                                                    
            "streamSettings": {                                                                                                   
                "network": "tcp",                                                                                                 
                "security": "xtls",                                                                                               
                "xtlsSettings": {                                                                                                 
                    "alpn": ["h2", "http/1.1"],                                                                                   
                    "minVersion": "1.2",                                                                                          
                    "certificates": [                                                                                             
                        {                                                                                                         
                            "ocspStapling": 3600,                                                                                 
                            "certificateFile": "/root/xray.pem",                                                                  
                            "keyFile": "/root/xray.key"                                                                           
                        }                                                                                                         
                    ]                                                                                                             
                }                                                                                                                 
            }                                                                                                                     
        }                                                                                                                         
    ],                                                                                                                            
    "outbounds": [                                                                                                                
        {                                                                                                                         
            "protocol": "freedom",                                                                                                
            "settings": {                                                                                                         
                "domainStrategy": "UseIPv6"                                                                                       
            },                                                                                                                    
            "tag": "All_"                                                                                                         
        },                                                                                                                        
        {                                                                                                                         
            "protocol": "blackhole",                                                                                              
            "settings": {},                                                                                                       
            "tag": "Block_"                                                                                                       
        }                                                                                                                         
    ],                                                                                                                            
    "routing": {                                                                                                                  
        "rules": [                                                                                                                
            {                                                                                                                     
                "type": "field",                                                                                                  
                "ip": [ "geoip:private" ],                                                                                        
                "outboundTag": "block_"                                                                                           
            },                                                                                                                    
            {                                                                                                                     
                "type": "field",                                                                                                  
                "outboundTag": "All_",                                                                                            
                "network": "udp,tcp"                                                                                              
            }                                                                                                                     
        ]                                                                                                                         
    }

服务端配置文件

yang05051 avatar Apr 04 '22 02:04 yang05051

1.5.4 没改这块儿 确定 1.5.3 是好的?看一下 debug log

从1.5.3升级到1.5.4之后才出现这个问题 给另一台服务器全新安装了xray 1 5.4的版本,也有这个问题

yang05051 avatar Apr 04 '22 02:04 yang05051

1.5.4 没改这块儿 确定 1.5.3 是好的?看一下 debug log


-- Logs begin at Sun 2022-04-03 07:43:23 UTC, end at Mon 2022-04-04 01:34:07 UTC. -- 
                                                     
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [2360794662] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe                              
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [1817450177] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled                   
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [1817450177] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe                              
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [3462465464] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled                   
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [3462465464] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe                              
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [1507342587] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled                   
Apr 04 01:33:37 Daniel-A xray[697491]: 2022/04/04 01:33:37 [Info] [1507342587] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe                              
Apr 04 01:33:38 Daniel-A xray[697491]: 2022/04/04 01:33:38 [Info] [1209778774] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled                   
Apr 04 01:33:38 Daniel-A xray[697491]: 2022/04/04 01:33:38 [Info] [1209778774] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > context canceled                                 
Apr 04 01:33:38 Daniel-A xray[697491]: 2022/04/04 01:33:38 [Info] [1209778774] app/proxyman/inbound: failed to close connection > tls: failed to send closeNotify alert (but connection was closed anyway): write tcp 10.0.0.4:443->MyServerIP:55558: write: broken pipe

服务端的

太少了看不出来问题 需要访问一个支持 v6 的网站 看看dns日志

yuhan6665 avatar Apr 05 '22 14:04 yuhan6665

你少了

    "dns": {
        "servers": [
            "1.1.1.1"
        ],
        "queryStrategy": "UseIP"
    },

"queryStrategy": "UseIP" 原理见文档

chika0801 avatar Apr 17 '22 06:04 chika0801