[BUG] Thousands connections when turn on Naive Proxy with TUN
### 操作系统/Operating System
Android
### 系统版本/Operating System Version
Android 10
### App版本/App Version
[v1.2.20.2304](https://github.com/KaringX/karing/releases/tag/v1.2.20.2304)
[v1.2.19.2209](https://github.com/KaringX/karing/releases/tag/v1.2.19.2209)
### 描述/Describeption
Hello everybody! Have some troubles with connections on my Android 10 Karing with Naive Proxy. I installed different version of Karing (1.20, 1.22 and last release) and same problem repeat. But on windows 10 or iOS I don`t have this problem with same config Naive Proxy.
The problem consist of thousands connections to TUN interface. I tried to change TUN settings but still have problem. If I turn off TUN mode this config doesn\`t work at all. In "connection" section (last photo) I see a lot of connections with tag "com.nebula.karing" and ip_is_private. In Web Panel I see a lot of totally same packets with size 135B and totally same structure:
ProxiesConnectionsLogsRulesSettings
Connection detailsSource IP labels
`
{
"chains": [
"direct_out"
],
"download": 0,
"id": "04265395-cafd-4b8565-34-ea7fc5298dfd",
"metadata": {
"destinationIP": "[10.20.0.2](https://10.20.0.2/)",
"destinationPort": "853",
"dnsMode": "normal",
"host": "",
"network": "tcp",
"packageName": "com.nebula.karing",
"processPath": "10262",
"protocol": "tls",
"sourceIP": "[10.20.0.1](https://10.20.0.1/)",
"sourcePort": "58634",
"type": "tun/tun_in",
"user": ""
},
"rule": "ip_is_private => route(direct_out)",
"rulePayload": "",
"start": "2026-06-15T20:59:55.505932074+03:00",
"upload": 135,
"downloadSpeed": 0,
"uploadSpeed": 0
}
`
And in logs section I see some errors connect to TUN interface. In service logs only udp errors don`t make sense.
Actually time to time this works but often crashes, maybe cause is overfulling RAM. And choosing global/rules doesn\`t work too.
<img width="342" height="567" alt="Image" src="https://github.com/user-attachments/assets/693cd6c0-a5c1-46be-9782-6fa3a099e157" />
<img width="345" height="255" alt="Image" src="https://github.com/user-attachments/assets/632e0cf3-cd41-43bb-b813-7a4229cbed97" />
<img width="660" height="281" alt="Image" src="https://github.com/user-attachments/assets/b20e5a9d-abc2-4442-acb5-39a64b864d34" />
### 复现步骤/Reproduction steps
- import Naive config from clipbord (like link naive+https://user:login@server.com:443)
- turn on config
### 日志/Log
```shell
+0300 2026-06-15 21:15:13 [32191] [4] ERROR naive_client.go:300 outbound/naive[example.space:443]: open UDP connection to [2002:4860:4860::8888]:443: dial wlan0 (33): dial udp [2002:4860:4860::8888]:443: connect: network is unreachable
+0300 2026-06-15 21:15:25 [32191] [5] ERROR naive_client.go:300 outbound/naive[example.space:443]: open UDP connection to [2002:4860:4860::8888]:443: dial wlan0 (33): dial udp [2002:4860:4860::8888]:443: connect: network is unreachable
+0300 2026-06-15 21:15:28 [32191] [6] ERROR naive_client.go:300 outbound/naive[example.space:443]: open UDP connection to [2002:4860:4860::8888]:443: dial wlan0 (33): dial udp [2002:4860:4860::8888]:443: connect: network is unreachable
```
2 条评论