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

All connections timeout on cellular since 1.11.0, Android tun #2636

Open
5 tasks done
nyarau opened this issue Feb 24, 2025 · 3 comments
Open
5 tasks done

All connections timeout on cellular since 1.11.0, Android tun #2636

nyarau opened this issue Feb 24, 2025 · 3 comments

Comments

@nyarau
Copy link

nyarau commented Feb 24, 2025

Operating system

Android

System version

GrapheneOS 2025021100 (Android 15)

Installation type

sing-box for Android Graphical Client

If you are using a graphical client, please provide the version of the client.

No response

Version

Description

After upgrading to 1.11.0, everything works as expected under WiFi, but when the phone is on cellular, all connections timeout.

Reproduction

Install 1.10.6, import the following config, turn off WiFi, visit https://1.1.1.1/cdn-cgi/trace, the IP address of my cellular connection is returned;
Upgrade to 1.11.4, visit https://1.1.1.1/cdn-cgi/trace again, connection times out; Turn WiFi back on and restart sing-box, visit https://1.1.1.1/cdn-cgi/trace, the IP address of my WiFi connection is returned.

{
	"log": {
		"level": "info",
		"timestamp": false
	},
	"inbounds": [
		{
			"tag": "in-tun",
			"type": "tun",
			"address": ["172.19.0.1/30", "fdfe:dcba:9876::1/126"],
			"auto_route": true
		}
	],
	"outbounds": [
		{
			"type": "direct"
		}
	],
	"route": {
		"auto_detect_interface": true
	}
}

Logs

WiFi Cellular
1.10.6 Image Image
1.11.4 Image Image
Image

tun2 in the screenshots is a VPN running in another user profile, everything described above remains unchanged whether another user profile is running or not, tests have been done in both cases, forgot to turn it off when taking screenshots.

Thank you for yearlong work you've put in!

Logs

Supporter

Integrity requirements

  • 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.
  • 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.
  • 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.
  • 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.
@oppressor1761
Copy link

oppressor1761 commented Feb 25, 2025

Is tun2 in Private Space or another User Profile? Is block connections without VPN enabled? I'm using SFA 1.11.4 on GrapheneOS 2025021100 without any problems. However I'm only using sing-box in my main User so I doubt this may be caused by tun2.

@dyhkwong
Copy link
Contributor

Log screenshot does not match your description. A proper DNS config is not omittable for TUN. Do not rely on undefined behavior.

@nyarau
Copy link
Author

nyarau commented Feb 25, 2025

I did a proper screen recording. Right after reboot, in main user, with DNS configured.

Timestamp:

  • 00:07 WiFi, sing-box off: OK
  • 00:25 Config
  • 00:38 WiFi, sing-box on: OK
  • 00:48 Cellular, sing-box on: TIMEOUT
  • 01:17 Cellular, sing-box off, Aways-on VPN off: OK
  • 01:27 Cellular, sing-box on: TIMEOUT
  • 01:51 Cellular, sing-box off: OK
screen.mp4
{
	"log": {
		"level": "info",
		"timestamp": false
	},
	"dns": {
		"servers": [
			{
				"tag": "1111",
				"address": "https://1.1.1.1/dns-query"
			}
		],
		"strategy": "ipv4_only"
	},
	"inbounds": [
		{
			"type": "tun",
			"address": ["172.19.0.1/30", "fdfe:dcba:9876::1/126"],
			"auto_route": true,
			"sniff": true
		}
	],
	"outbounds": [
		{
			"type": "direct"
		},
		{
			"tag": "dns",
			"type": "dns"
		}
	],
	"route": {
		"auto_detect_interface": true,
		"rules": [
			{
				"protocol":"dns",
				"outbound":"dns"
			}
		]
	}
}

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