Android Wireguard WARP IPv6 connections don't work
Operating system
Android
System version
15
Installation type
sing-box for Android Graphical Client
If you are using a graphical client, please provide the version of the client.
1.11.0
Version
Description
IPv6 connections on Android don't work; only IPv4 is supported The browser displays an ERR_CONNECTION_TIMED_OUT error when attempting to connect to IPv6-only hosts The same Wireguard endpoint config on a PC works fine Debug log doesn't get me anything usefull
{
"log": {
"level": "warn"
},
"endpoints": [
{
"type": "wireguard",
"tag": "wireguard-out",
"mtu": 1280,
"address": [
"172.16.0.2/32",
"<changed>/128"
],
"private_key": "<changed>",
"peers": [
{
"address": "<changed>",
"port": 500,
"public_key": "<changed>",
"allowed_ips": [
"0.0.0.0/0",
"::/0"
]
}
]
}
],
"inbounds": [
{
"type": "tun",
"address": [
"172.19.0.1/30",
"fd00:19::1/126"
],
"auto_route": true,
"include_package": [
"com.brave.browser",
"com.discord"
]
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
}
],
"route": {
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"ip_is_private": true,
"outbound": "direct"
},
{
"domain_suffix": [
"google.com"
],
"outbound": "direct"
}
],
"final": "wireguard-out"
}
}
Reproduction
Make same config as mine and try
Logs
Supporter
- [ ] I am a sponsor
Integrity requirements
- [x] I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
- [x] I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
- [x] I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
- [x] I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days
Can confirm
So after https://github.com/SagerNet/sing-box/issues/3660 I found 2 solutions:
- add
"stack": "gvisor"into tun inbound config - add
"io.nekohasekai.sfa"into tun include_package list
So after #3660 I found 2 solutions:
1. add `"stack": "gvisor"` into tun inbound config
That's a rough workaround, because gvisor lacks features
2. add `"io.nekohasekai.sfa"` into tun include_package list
This just shortcuts sing-box and makes all connections go directly, bypassing the wireguard endpoint entirely
This just shortcuts sing-box and makes all connections go directly, bypassing the wireguard endpoint entirely
Are you sure? Because all the changes I'm checking on myip.com and adding "io.nekohasekai.sfa" to the tun include_package list don't result in all connections being established directly
I use version 1.13.11 from play store