x-dea / flutter_vpn Goto Github PK
View Code? Open in Web Editor NEWPlugin to access VPN service for Flutter | Flutter 的 VPN 插件
License: GNU Lesser General Public License v2.1
Plugin to access VPN service for Flutter | Flutter 的 VPN 插件
License: GNU Lesser General Public License v2.1
if in debug mode, the application can be run, but when in release mode the application cannot be opened
hi,
i encountered a problem in ios platform.
i connect to vpn and get the state of connection using "FlutterVpn.currentState" and it works fine.
but when i exit the app while vpn is still connected, and then open it again, the "FlutterVpn.currentState" function returns "FlutterVpnState.disconnected" while the vpn is still connected.
W/System.err( 7699): java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: Thread-26
W/System.err( 7699): at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:794)
W/System.err( 7699): at io.flutter.embedding.engine.FlutterJNI.dispatchPlatformMessage(FlutterJNI.java:684)
W/System.err( 7699): at io.flutter.embedding.engine.dart.DartMessenger.send(DartMessenger.java:80)
W/System.err( 7699): at io.flutter.embedding.engine.dart.DartExecutor.send(DartExecutor.java:174)
W/System.err( 7699): at io.flutter.view.FlutterNativeView.send(FlutterNativeView.java:144)
W/System.err( 7699): at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation.success(EventChannel.java:226)
W/System.err( 7699): at io.xdea.flutter_vpn.VPNStateHandler$Companion.updateCharonState(VPNStateHandler.kt:59)
W/System.err( 7699): at org.strongswan.android.logic.CharonVpnService.updateStatus(CharonVpnService.java:234)
I have bug in state listener on ios. currentState is working but when I'm trying to listen for a state on ios - it throws error:
══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════ flutter: The following MissingPluginException was thrown while activating platform stream on channel flutter: flutter_vpn_states: flutter: MissingPluginException(No implementation found for method listen on channel flutter_vpn_states) flutter: flutter: When the exception was thrown, this was the stack: flutter: #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7) flutter: <asynchronous suspension> flutter: #1 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:517:29) flutter: #3 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:503:64) flutter: #11 UserModel.startCheck (package:vpn/models/UserModel.dart:292:31) flutter: #13 UserModel.startCheck (package:vpn/models/UserModel.dart:283:18) flutter: #14 UserModel.getServersFromApi (package:vpn/models/UserModel.dart:280:5) flutter: #24 FlutterVpn.currentState (package:flutter_vpn/flutter_vpn.dart) flutter: #34 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart) flutter: (elided 41 frames from package dart:async and package dart:async-patch)
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.14.6 18G103, locale en-RU)[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.6)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.3)
[✓] Connected device (1 available)
VM environment
Nexus 6 API 23
D/AndroidRuntime(15737): Shutting down VM
E/AndroidRuntime(15737): FATAL EXCEPTION: main
E/AndroidRuntime(15737): Process: com.example.shadowsock, PID: 15737
E/AndroidRuntime(15737): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=0, data=null} to activity {com.example.shadowsock/com.example.shadowsock.MainActivity}: java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(15737): at android.app.ActivityThread.deliverResults(ActivityThread.java:3699)
E/AndroidRuntime(15737): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
E/AndroidRuntime(15737): at android.app.ActivityThread.-wrap16(ActivityThread.java)
E/AndroidRuntime(15737): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
E/AndroidRuntime(15737): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(15737): at android.os.Looper.loop(Looper.java:148)
E/AndroidRuntime(15737): at android.app.ActivityThread.main(ActivityThread.java:5417)
E/AndroidRuntime(15737): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15737): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
E/AndroidRuntime(15737): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime(15737): Caused by: java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(15737): at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:174)
E/AndroidRuntime(15737): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:208)
E/AndroidRuntime(15737): at io.xdea.fluttervpn.FlutterVpnPlugin$Companion.onPrepareResult(FlutterVpnPlugin.kt:53)
E/AndroidRuntime(15737): at io.xdea.fluttervpn.FlutterVpnPlugin$onMethodCall$1.onActivityResult(FlutterVpnPlugin.kt:64)
E/AndroidRuntime(15737): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime(15737): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
E/AndroidRuntime(15737): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
E/AndroidRuntime(15737): at android.app.Activity.dispatchActivityResult(Activity.java:6428)
E/AndroidRuntime(15737): at android.app.ActivityThread.deliverResults(ActivityThread.java:3695)
E/AndroidRuntime(15737): ... 9 more
I/Process (15737): Sending signal. PID: 15737 SIG: 9
Lost connection to device.
Exited (sigterm)
VPN connected showing, but not open any website
We are try to connect with VPN in android device, In Top bar showing 2 tabs one showing connected and other showing not connected and try to open website but not open any website.so please help whats getting problem.
I am using different IP's , username, password
Poland VPN Server: PL226.vpnbook.com
Germany VPN Server: de4.vpnbook.com
Following servers are optimized for fast web surfing; no p2p downloading
US VPN Server: us1.vpnbook.com
US VPN Server: us2.vpnbook.com
France VPN Server: fr1.vpnbook.com
France VPN Server: fr8.vpnbook.com
Canada VPN Server: ca222.vpnbook.com
Canada VPN Server: ca198.vpnbook.com
Username: vpnbook
Password: 8AKctYE
Error
I/Choreographer( 1351): Skipped 2 frames! The application may be doing too much work on its main thread.
I/charon ( 1351): 00[LIB] loaded plugins: androidbridge charon android-log openssl fips-prf random nonce pubkey chapoly curve25519 pkcs1 pkcs8 pem xcbc hmac socket-default revocation eap-identity eap-mschapv2 eap-md5 eap-gtc eap-tls x509
I/charon ( 1351): 00[JOB] spawning 16 worker threads
I/CharonVpnService( 1351): charon started
D/libc-netbsd( 1351): [getaddrinfo]: hostname=ca222.vpnbook.com; servname=(null); app_pid=1351; app_uid=10344; ai_flags=0; ai_family=2; ai_socktype=2 from prox result 0
I/charon ( 1351): 07[IKE] initiating IKE_SA android[1] to 192.99.37.222
I/charon ( 1351): 07[ENC] generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(HASH_ALG) N(REDIR_SUP) ]
I/charon ( 1351): 07[NET] sending packet: from 100.68.135.140[43339] to 192.99.37.222[500] (716 bytes)
I/charon ( 1351): 12[IKE] retransmit 1 of request with message ID 0
I/charon ( 1351): 12[NET] sending packet: from 100.68.135.140[43339] to 192.99.37.222[500] (716 bytes)
I/charon ( 1351): 13[IKE] retransmit 2 of request with message ID 0
I/charon ( 1351): 13[NET] sending packet: from 100.68.135.140[43339] to 192.99.37.222[500] (716 bytes)
I/zygote64( 1351): Do partial code cache collection, code=30KB, data=27KB
I/zygote64( 1351): After code cache collection, code=30KB, data=27KB
I/zygote64( 1351): Increasing code cache capacity to 128KB
I/charon ( 1351): 14[IKE] retransmit 3 of request with message ID 0
I/charon ( 1351): 14[NET] sending packet: from 100.68.135.140[43339] to 192.99.37.222[500] (716 bytes)
I/charon ( 1351): 01[IKE] giving up after 3 retransmits
I/charon ( 1351): 01[IKE] establishing IKE_SA failed, peer not responding
I/charon ( 1351): 07[IKE] unable to terminate IKE_SA: ID 1 not found
I'm getting an exception on calling prepare in first Stateless widget in the application.
ios 13.3, emulator iphone 8 (I know that emulators aren't supported but it shouldn't be any exceptions on init like this).
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: type '_Type' is not a subtype of type 'FutureOr<Null>'
#0 FlutterVpn.prepare (package:flutter_vpn/flutter_vpn.dart:75:30)
#1 VPN.build (package:vpn/app.dart:17:16)
#2 StatelessElement.build (package:flutter/src/widgets/framework.dart:4291:28)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4223:15)
#4 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
#5 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
#6 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
#7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
#8 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
#9 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14)
#10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
#11 <…>
[VERBOSE-2:shell.cc(199)] Dart Error: Unhandled exception:
type '_Type' is not a subtype of type 'FutureOr<Null>'
#0 FlutterVpn.prepare (package:flutter_vpn/flutter_vpn.dart:75:30)
#1 VPN.build (package:vpn/app.dart:17:16)
#2 StatelessElement.build (package:flutter/src/widgets/framework.dart:4291:28)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4223:15)
#4 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
#5 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2432:33)
#6 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:773:20)
#7 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5)
#8 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1102:15)
#9 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1041:9)
#10 SchedulerBinding.scheduleWarmUpFrame.<anonymous<…>
Hi, is there any plans on supporting IOS?
PS D:\std> flutter build apk
Initializing gradle... 0.9s
Resolving dependencies... 4.4s
Gradle task 'assembleRelease'...
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_vpn-0.0.3\android\src\main\java\org\strongswan\android\logic\NetworkManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
I am using different IP's , username, password
Poland VPN Server: PL226.vpnbook.com
Germany VPN Server: de4.vpnbook.com
Following servers are optimized for fast web surfing; no p2p downloading
US VPN Server: us1.vpnbook.com
US VPN Server: us2.vpnbook.com
France VPN Server: fr1.vpnbook.com
France VPN Server: fr8.vpnbook.com
Canada VPN Server: ca222.vpnbook.com
Canada VPN Server: ca198.vpnbook.com
Username: vpnbook
Password: 8AKctYE
Error
I/Choreographer( 1351): Skipped 2 frames! The application may be doing too much work on its main thread.
I/charon ( 1351): 00[LIB] loaded plugins: androidbridge charon android-log openssl fips-prf random nonce pubkey chapoly curve25519 pkcs1 pkcs8 pem xcbc hmac socket-default revocation eap-identity eap-mschapv2 eap-md5 eap-gtc eap-tls x509
I/charon ( 1351): 00[JOB] spawning 16 worker threads
I/CharonVpnService( 1351): charon started
D/libc-netbsd( 1351): [getaddrinfo]: hostname=ca222.vpnbook.com; servname=(null); app_pid=1351; app_uid=10344; ai_flags=0; ai_family=2; ai_socktype=2 from prox result 0
I/charon ( 1351): 07[IKE] initiating IKE_SA android[1] to 192.99.37.222
I/charon ( 1351): 07[ENC] generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(HASH_ALG) N(REDIR_SUP) ]
I/charon ( 1351): 07[NET] sending packet: from 100.68.135.140[43339] to 192.99.37.222[500] (716 bytes)
I/charon ( 1351): 12[IKE] retransmit 1 of request with message ID 0
I/charon ( 1351): 12[NET] sending packet: from 100.68.135.140[43339] to 192.99.37.222[500] (716 bytes)
I/charon ( 1351): 13[IKE] retransmit 2 of request with message ID 0
I/charon ( 1351): 13[NET] sending packet: from 100.68.135.140[43339] to 192.99.37.222[500] (716 bytes)
I/zygote64( 1351): Do partial code cache collection, code=30KB, data=27KB
I/zygote64( 1351): After code cache collection, code=30KB, data=27KB
I/zygote64( 1351): Increasing code cache capacity to 128KB
I/charon ( 1351): 14[IKE] retransmit 3 of request with message ID 0
I/charon ( 1351): 14[NET] sending packet: from 100.68.135.140[43339] to 192.99.37.222[500] (716 bytes)
I/charon ( 1351): 01[IKE] giving up after 3 retransmits
I/charon ( 1351): 01[IKE] establishing IKE_SA failed, peer not responding
I/charon ( 1351): 07[IKE] unable to terminate IKE_SA: ID 1 not found
Hi guys, this is more like a question, was wondering if there are any plans or work in progress to add support for certificate base authentication e.g. p12 like the current official StrongSwan Android app supports.
Cheers,
On integration it gives error,
java.lang.IllegalArgumentException: Service not registered: io.xdea.flutter_vpn.FlutterVpnPlugin$_serviceConnection
If VPN is in connected state, on pressing back 1-2 times on android, it stops VPN connection.
Resolved: Credits Learn Cybers
I am trying to use free accounts sush as
us.freeikev2vpn.com but i got a notification that says "unreachable server ".
I added the ndk filters as described on read me.
However when I build appbundle and run it on pixel 2 , it crashes on start up
drops java.lang.UnsatisfiedLinkError coudln't find libflutter.so
Hi, I am facing a problem when building release apk.
Whenever I am trying to install release apk generated by running "flutter build apk --release", It crushes before starting.
But the apk generated from "flutter run --release" seems to work just fine.
hello . i am using this package in my app but i found a problem ...
the onStateChanged is not working in IOS platform. (it works perfectly in Android platform).
how can i update my State in IOS platform when Vpn is Connected?? what is your suggested approach ???
Nice library. But i am getting
Unhandled Exception: PlatformException(PrepareError, Failed to prepare, false)
when running from vs code.
The app opens and a dialog appears but it is dismissed automatically. Then the error is encountered.
I have cloned the projects , android works fine but in ios it is not woriking at all..
FlutterVpn.prepare();
FlutterVpn.onStateChanged.listen((s) => setState(() => state = s));
error is in init method and the exeption is :
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: type '_Type' is not a subtype of type 'FutureOr'
#0 FlutterVpn.prepare (package:flutter_vpn/flutter_vpn.dart:75:30)
#1 _MyAppState.initState (package:vpn/main.dart:35:16)
#2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4355:58)
#3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
#4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
#5 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
#6 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1028:16)
#7 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:999:5)
#8 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:942:17)
#9 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2412:19)
#10 RenderObjectToWidgetAdapter.attach<…>
flutter: ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
flutter: The following MissingPluginException was thrown while activating platform stream on channel
flutter: flutter_vpn_states:
flutter: MissingPluginException(No implementation found for method listen on channel flutter_vpn_states)
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)
flutter:
flutter: #1 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:517:29)
flutter: #3 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:503:64)
flutter: #11 _MyAppState.initState (package:vpn/main.dart:36:31)
flutter: #12 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4355:58)
flutter: #13 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
flutter: #14 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
flutter: #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
flutter: #16 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1028:16)
flutter: #17 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:999:5)
flutter: #18 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:942:17)
flutter: #19 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2412:19)
flutter: #20 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:941:13)
flutter: #21 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:819:7)
flutter: #22 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:804:7)
flutter: #31 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:384:19)
flutter: #32 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:418:5)
flutter: #33 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
flutter: (elided 16 frames from package dart:async and package dart:async-patch)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
When building release apk, opening app crashes :
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'art/runtime/thread.cc:1350] No pending exception expected: java.lang.ClassNotFoundException: Didn't find class "org.strongswan.android.logic.CharonVpnService$BuilderAdapter" on path: DexPathList[[zip file "/data/app/vpn-1/base.apk"],nativeLibraryDirectories=[/data/app/vpn-1/lib/arm, /data/app/vpn-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]'
Ok, just installed strongswan, did some configs, was wondering if you could tip me, for multiple users, is it better to use same credentials or new one per each. and how so?
About the app, just tried it, there is the start notification after connection, now if you disconnect and exit the app, the star remains up the notification area, is there a way to control that?
hello
how can i determine the connection type ? for example L2TP or PPTP .
and what is the default connection type ??
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_vpn-0.6.1\android\src\main\java\org\strongswan\android\logic\NetworkManager.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
Is it possible?
Or how can ikev2 be used without a certificate?
I tried to run the example in vs code but it does't work
When pressing back button on the app brings to home screen and crash.
It says:
App keeps stopping
Unable to destroy activity com.myapp.testvpn/com.example.testvpn MainActivity):
java.lang.IllegalArgumentException: Service not registered: io.xdea.flutter_vpn.FlutterVpnPlugin$
_serviceConnection
Please, I have a file .opvn and port(TCP) , was wondering if you could tip me , connect vpn
thank you!
closed
The connection disconnects when I close the VPN app from the the Android's recent applications menu. And the notification state changes to "connecting...".
It is necessary for a VPN to keep working even after the app closed. I have tested the original strongSwan Android app. The connection works even after closing the app. Any idea on how to keep the connection alive in the background?
Whenever i am trying to connect to any VPN server using this plugin getting unreachableError as status and unable to connect to any VPN. I pinged those servers and checked, they are working fine.
hello i run the Example app in Android and get this error :
W/System.err(29742): java.io.IOException: ioctl failed: EPERM (Operation not permitted) W/System.err(29742): at libcore.io.IoBridge.available(IoBridge.java:74) W/System.err(29742): at java.io.FileInputStream.available(FileInputStream.java:108) W/System.err(29742): at org.strongswan.android.logic.CharonVpnService$BuilderAdapter$PacketDropper.run(CharonVpnService.java:483) W/System.err(29742): at java.lang.Thread.run(Thread.java:818) W/System.err(29742): Caused by: android.system.ErrnoException: ioctl failed: EPERM (Operation not permitted) W/System.err(29742): at libcore.io.Posix.ioctlInt(Native Method) W/System.err(29742): at libcore.io.ForwardingOs.ioctlInt(ForwardingOs.java:103) W/System.err(29742): at libcore.io.IoBridge.available(IoBridge.java:58) W/System.err(29742): ... 3 more I/VPN/Charon(29742): Charon stopped I/charon (29742): 00[LIB] loaded plugins: androidbridge charon android-log openssl fips-prf random nonce pubkey chapoly curve25519 pkcs1 pkcs8 pem xcbc hmac socket-default revocation eap-identity eap-mschapv2 eap-md5 eap-gtc eap-tls x509 I/charon (29742): 00[JOB] spawning 16 worker threads I/VPN/Charon(29742): Charon started I/charon (29742): 17[LIB] resolving 'my.server.co' failed: No address associated with hostname I/charon (29742): 08[IKE] unable to resolve my.server.co, initiate aborted I/charon (29742): 08[CFG] failed to initiate tunnel I/charon (29742): 08[MGR] tried to checkin and delete nonexisting IKE_SA
initiating IKE_SA android[4] to 157.230.89.144
I/charon ( 8376): 07[ENC] generating IKE_SA_INIT request 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(HASH_ALG) N(REDIR_SUP) ]
I/charon ( 8376): 07[NET] sending packet: from 192.168.232.2[53657] to 157.230.89.144[500] (716 bytes)
I/charon ( 8376): 10[IKE] retransmit 1 of request with message ID 0
I/charon ( 8376): 10[NET] sending packet: from 192.168.232.2[53657] to 157.230.89.144[500] (716 bytes)
I/charon ( 8376): 11[IKE] retransmit 2 of request with message ID 0
I/charon ( 8376): 11[NET] sending packet: from 192.168.232.2[53657] to 157.230.89.144[500] (716 bytes)
I/charon ( 8376): 12[IKE] retransmit 3 of request with message ID 0
I/charon ( 8376): 12[NET] sending packet: from 192.168.232.2[53657] to 157.230.89.144[500] (716 bytes)
I/charon ( 8376): 13[IKE] giving up after 3 retransmits
I/charon ( 8376): 13[IKE] establishing IKE_SA failed, peer not responding
I/charon ( 8376): 14[IKE] unable to terminate IKE_SA: ID 4 not found
i am trying to connect to vpn server but there is no option to specify IPSec pre-shared key.
Is there a way to set custom mtu size?
when build iOS on Catalina, it will fail with error message that SWIFT_VERSION is missing,
it can be fixed by add below lines in flutter_vpn.podspec
s.ios.deployment_target = '8.0'
#added to make it working for iOS
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
s.swift_version = [ '4.0', '4.1', '4.2', '5.0', '5.1' ]
so please fix this in next release.
i want to know how to setup vpn server on ubuntu 16.04. thanks
Eventchannel "flutter_vpn_state" misspelled in Swift code
could you make it support ios?
openvpn server is it possible to use?
run the release version for some time to see, it often have below exception popup in logcat:
would you please have a look?
java.lang.RuntimeException: at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:4431) at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:4449) at android.app.ActivityThread.-wrap5 (Unknown Source) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1664) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:164) at android.app.ActivityThread.main (ActivityThread.java:6610) at java.lang.reflect.Method.invoke (Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807) Caused by: java.lang.IllegalArgumentException: at android.app.LoadedApk.forgetServiceDispatcher (LoadedApk.java:1484) at android.app.ContextImpl.unbindService (ContextImpl.java:1654) at android.content.ContextWrapper.unbindService (ContextWrapper.java:703) at io.xdea.flutter_vpn.FlutterVpnPlugin$1.onViewDestroy (FlutterVpnPlugin.java:16) at io.flutter.app.FlutterPluginRegistry.onViewDestroy (FlutterPluginRegistry.java:19) at io.flutter.app.FlutterActivityDelegate.onDestroy (FlutterActivityDelegate.java:44) at io.flutter.app.FlutterActivity.onDestroy (FlutterActivity.java:2) at android.app.Activity.performDestroy (Activity.java:7635) at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1250) at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:4418) at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:4449) at android.app.ActivityThread.-wrap5 (Unknown Source) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1664) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:164) at android.app.ActivityThread.main (ActivityThread.java:6610) at java.lang.reflect.Method.invoke (Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)
Doesn't connect to the vpngate free servers?? [https://www.vpngate.net/en/howto_android.aspx] Is this protocol supported?
Do you have plans to support wiregaurd ?
这个,这个,GPL开源的。虽然我打算构建的app也是要GPL开源。但是为了这个库能够被更多人使用,开源协议使用LGPL会更好一些。
作者若是坚持的话,请直接关闭这个issue。
Please the solution !
Hi, i just downloaded the example, and i am getting this error, at first run.
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Failed to transform file 'flutter-x86.jar' to match attributes {artifactType=processed-jar} using transform IdentityTransform
> Transform output file /example/build/app/intermediates/flutter/flutter-x86.jar does not exist.
Vpn is working is Android. However I've tested in iOS device, in the xcode it says
VPN started successfully..
But the state doesn't change, it's still FlutterVpnState.disconnected. Then when I put the app in the background to try to browse a webpage I get the error below.
2020-04-20 14:24:32.864656+0800 Runner[17084:9649796] Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
I've enabled Personal VPN and Network Extensions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.