CNflysky / redroid-rk3588

Redroid Image For RK3588 with Multiple Features | 适用于RK3588的Redroid镜像,包含多种功能
GNU General Public License v3.0
95 stars 19 forks source link

vpn不能用吗? / VPN support? #5

Closed minquejoe closed 5 months ago

minquejoe commented 5 months ago

NOTICE: ANY BUG REPORT NOT USING THIS TEMPLETE WILL BE CLOSED AS NOT PLANNED 注意:任何未使用该模板的错误报告将被直接关闭

Describe the bug 描述Bug the combinations of following setting are tried while creating container(including use none of them), but the proxy function seems didn't work. 尝试在创建容器时添加了下面两个设置的排列组合(包括均不添加),试了两个游戏加速器和Clash for Android均不能正常代理。 -v /dev/net/tun:/dev/tun --sysctl net.ipv6.conf.all.disable_ipv6=0

Required Information 基本信息

To Reproduce 复现步骤 Steps to reproduce the behavior: 以下是复现该问题的步骤: 试了雷神加速器,提示加速失败;shimakazego直接闪退;CFA提示cannot create interface。

Screenshots 截图 If applicable, add screenshots to help explain your problem. 如果可以,添加一些截图以更好地解释问题

Additional context 附加说明 Add any other context about the problem here. logcat messages are suggested place into pastebin. 如果有额外的问题说明,请放在这里 logcat信息建议放在pastebin里 CFA运行时的logcat:

05-04 14:54:01.340  5316  5338 D ClashForAndroid: ClashRuntime: initialize
05-04 14:54:01.359  5316  5493 D ClashForAndroid: CloseModule: initialize
05-04 14:54:01.359  5316  5339 D ClashForAndroid: TunModule: initialize
05-04 14:54:01.360  5316  5521 D ClashForAndroid: ConfigurationModule: initialize
05-04 14:54:01.365  5316  5521 D ClashForAndroid: SideloadDatabaseModule: initialize
05-04 14:54:01.365  5316  5493 D ClashForAndroid: NetworkObserveModule: initialize
05-04 14:54:01.366  5316  5339 D ClashForAndroid: DynamicNotificationModule: initialize
05-04 14:54:01.366  5316  5340 D ClashForAndroid: AppListCacheModule: initialize
05-04 14:54:01.366  5316  5496 D ClashForAndroid: TimeZoneModule: initialize
05-04 14:54:01.368   228   567 D ConnectivityService: NetReassign [no changes]
05-04 14:54:01.371  5316  5493 D ClashForAndroid: SuspendModule: initialize
05-04 14:54:01.374  5316  5496 D ClashForAndroid: DNS: [8.8.8.8:53]
05-04 14:54:01.374  5316  5496 D ClashForAndroid: Network: 100 of [100]
05-04 14:54:01.374  5316  5496 D ClashForAndroid: DNS: [8.8.8.8:53]
05-04 14:54:01.379  5316  5340 D ClashForAndroid: Installed 92 packages cached
05-04 14:54:01.386   228   781 E VpnJni  : Cannot allocate TUN: Bad file descriptor
05-04 14:54:01.387  5316  5338 E ClashForAndroid: Create clash runtime: Cannot create interface
05-04 14:54:01.387  5316  5338 E ClashForAndroid: java.lang.IllegalStateException: Cannot create interface
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at android.os.Parcel.createExceptionOrNull(Parcel.java:2433)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at android.os.Parcel.createException(Parcel.java:2409)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at android.os.Parcel.readException(Parcel.java:2392)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at android.os.Parcel.readException(Parcel.java:2334)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at android.net.IVpnManager$Stub$Proxy.establishVpn(IVpnManager.java:600)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at android.net.VpnService$Builder.establish(VpnService.java:898)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at com.github.kr328.clash.service.TunService.access$open(TunService.kt:68)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at com.github.kr328.clash.service.TunService$runtime$1.invokeSuspend(TunService.kt:38)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at com.github.kr328.clash.service.TunService$runtime$1.invoke(TunService.kt:2)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at com.github.kr328.clash.service.clash.ClashRuntimeKt$clashRuntime$1$launch$1.invokeSuspend(ClashRuntime.kt:13)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:3)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:20)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:2)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:1)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:14)
05-04 14:54:01.387  5316  5338 E ClashForAndroid: Caused by: android.os.RemoteException: Remote stack trace:
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at com.android.server.connectivity.Vpn.jniCreate(Native Method)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at com.android.server.connectivity.Vpn.establish(Vpn.java:1367)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at com.android.server.VpnManagerService.establishVpn(VpnManagerService.java:247)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at android.net.IVpnManager$Stub.onTransact(IVpnManager.java:286)
05-04 14:54:01.387  5316  5338 E ClashForAndroid:   at android.os.Binder.execTransactInternal(Binder.java:1179)
05-04 14:54:01.387  5316  5338 E ClashForAndroid: 
05-04 14:54:01.390  5316  5521 D ClashForAndroid: TunModule: destroyed
05-04 14:54:01.393  5316  5521 D ClashForAndroid: ConfigurationModule: destroyed
05-04 14:54:01.395  5316  5496 D ClashForAndroid: CloseModule: destroyed
05-04 14:54:01.396  5316  5521 D ClashForAndroid: AppListCacheModule: destroyed
05-04 14:54:01.396  5316  5491 D ClashForAndroid: DynamicNotificationModule: destroyed
05-04 14:54:01.396  5316  5497 D ClashForAndroid: TimeZoneModule: destroyed
05-04 14:54:01.397  5316  5498 D ClashForAndroid: SuspendModule: destroyed
05-04 14:54:01.397  5316  5499 D ClashForAndroid: NetworkObserveModule: destroyed
05-04 14:54:01.398  5316  5522 D ClashForAndroid: SideloadDatabaseModule: destroyed
05-04 14:54:01.406  5316  5338 D ClashForAndroid: ClashRuntime: destroyed
05-04 14:54:01.407  5316  5316 I ClashForAndroid: TunService destroyed: Cannot create interface
05-04 14:54:01.409    85   102 D hwcomposer: VSYNC event status:0
05-04 14:54:01.505  5316  5347 I ClashForAndroid: dns:
05-04 14:54:01.505  5316  5347 I ClashForAndroid:   enable: true
05-04 14:54:01.505  5316  5347 I ClashForAndroid:   ipv6: false
05-04 14:54:01.505  5316  5347 I ClashForAndroid:   use-hosts: true
05-04 14:54:01.505  5316  5347 I ClashForAndroid:   nameserver:
05-04 14:54:01.505  5316  5347 I ClashForAndroid:   - 223.5.5.5
05-04 14:54:01.505  5316  5347 I ClashForAndroid:   - 119.29.29.29
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - 8.8.4.4
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - 1.0.0.1
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - dhcp://system
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   fallback: []
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   fallback-filter:
05-04 14:54:01.506  5316  5347 I ClashForAndroid:     geoip: false
05-04 14:54:01.506  5316  5347 I ClashForAndroid:     geoip-code: ""
05-04 14:54:01.506  5316  5347 I ClashForAndroid:     ipcidr: []
05-04 14:54:01.506  5316  5347 I ClashForAndroid:     domain: []
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   listen: ""
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   enhanced-mode: fake-ip
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   fake-ip-range: 28.0.0.0/8
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   fake-ip-filter:
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - +.stun.*.*
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - +.stun.*.*.*
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - +.stun.*.*.*.*
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - +.stun.*.*.*.*.*
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - lens.l.google.com
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - '*.n.n.srv.nintendo.net'
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - +.stun.playstation.net
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - xbox.*.*.microsoft.com
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - '*.*.xboxlive.com'
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - '*.msftncsi.com'
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - '*.msftconnecttest.com'
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - '*.mcdn.bilivideo.cn'
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - WORKGROUP
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   default-nameserver:
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - 223.5.5.5
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - 119.29.29.29
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - 8.8.4.4
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   - 1.0.0.1
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   nameserver-policy: {}
05-04 14:54:01.506  5316  5347 I ClashForAndroid:   
05-04 14:54:01.508  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.508  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.508  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.508  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.508  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.509  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.509  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.509  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.509  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.509  5316  5349 I ClashForAndroid: Start initial compatible provider XXX
05-04 14:54:01.525  5316  5452 I ClashForAndroid: HTTP proxy listening at: 127.0.0.1:7890
05-04 14:54:01.525  5316  5452 I ClashForAndroid: SOCKS proxy listening at: 127.0.0.1:7891
05-04 14:54:01.545   228   228 I NotificationService: Cannot find enqueued record for key: 0|com.github.kr328.clash|2131296568|null|10084
05-04 14:54:01.593   228   228 I NotificationService: Cannot find enqueued record for key: 0|com.github.kr328.clash|2131296568|null|10084
05-04 14:54:01.636  3040  3062 D BufferPoolAccessor2.0: bufferpool2 0xb40000747a3fdcb8 : 5(19200 size) total buffers - 4(15360 size) used buffers - 167470/167475 (recycle/alloc) - 173/334941 (fetch/transfer)
05-04 14:54:02.209   228   278 D AutofillManagerService: onBackKeyPressed()
CNflysky commented 5 months ago

try modprobe tun. 试试modprobe tun

minquejoe commented 5 months ago

perfect! 问题解决。