GithubHelp home page GithubHelp logo

flutter_vpn_example's Introduction

Example Flutter VPN App

Image of VPNLAB1 Image of VPNLAB2 Image of VPNLAB3

Installation

For Android

Modify your app/build.gradle to use abiFilter because flutter doesn't apply abiFilter for target platform yet.

android {
    ...
    buildTypes {
        ...
        release {
            ...
            ndk {
                    if (project.hasProperty('target-platform')) {
                        if (project.property('target-platform') == 'android-arm,android-arm64')
                            abiFilters 'armeabi-v7a', 'arm64-v8a'
                        else if (project.property('target-platform') == 'android-arm')
                            abiFilters 'armeabi-v7a'
                        else if (project.property('target-platform') == 'android-arm64')
                            abiFilters 'arm64-v8a'
                    }
                }
            }
    }
}

The plugin will automatically download pre-build native libraries from here if they haven't been downloaded.

For iOS

You need to open Personal VPN and Network Extensions capabilities in Xcode: see Project->Capabilities.

VPN connection errors are handled in swift code, you need to use Xcode to see connection errors if there is any.

Strongswan Server installation

  • I'm using this tutorial. Ubuntu, Lets Encrpyt. here

Features

  • The Android part was implemented by strongswan which support ikev2 protocol.
  • The iOS part was implemented by NEVPNManager.
  • Compatibility latest goole play multi abis apk. app-universal-debug, app-arm64-v8a-debug, app-armeabi-v7a-debug

VPN Plugin

  • This project using X-dea/Flutter-VPN here

flutter_vpn_example's People

Contributors

serkandyck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_vpn_example's Issues

Not connecting

when i am run the app all time its show that server is unreachable.
How can i fix it?

install

hello,run flutter run and have a mistake:
I've modified the file(android/app/build.gradle) in your way.
my classpath 'com.android.tools.build:gradle:3.6.1'
FAILURE: Build failed with an exception.

  • Where:

Build file 'D:\flutter_vpn_example-master\android\app\build.gradle' line: 60

  • What went wrong:

A problem occurred evaluating project ':app'.

Could not find method abiFilters() for arguments [armeabi-v7a] on BuildType_Decorated{name=ndk, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesEnabled=false, renderscriptDebuggable=false, renderscriptOptimLevel=3, minifyEnabled=false, zipAlignEnabled=true, signingConfig=null, embedMicroApp=true, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}} of type com.android.build.gradle.internal.dsl.BuildType.

Can't Connect

i setup my own vpn server with ikev2 strongswan, but i still can't connect it because i don't know how to insert the cert.

how to add the cert into the app?

ndk

How do you use the NDK abi filters correctly?

I don't see it in your codes

SSTP

Hello, does it support SSTP?

Error while run ios device

flutter_vpn does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.

Error running pod install

VPN server

How can I create my own VPN server to connect to it?

connecting

Thank you for the example of VPN program. I have successfully run it through flutter run. If I configure a wrong VPN address, the program is keep connecting always. How can I stop the automatic connection

App after build does not start.

I cloned your repo as it is and then built it after updating all the dependencies. The build was successful, but when I installed the app, the app stops working ( I mean it doesn't even start)
I used the regular command: flutter build apk
Can you help me with this?

I am unable to connect VPN server, so please help

I am unable to connect VPN server.

I/charon (18819): 07[IKE] initiating IKE_SA android[1] to 192.99.37.222
I/charon (18819): 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 (18819): 07[NET] sending packet: from 25.228.200.238[42670] to 192.99.37.222[500] (716 bytes)
I/charon (18819): 12[IKE] retransmit 1 of request with message ID 0
I/charon (18819): 12[NET] sending packet: from 25.228.200.238[42670] to 192.99.37.222[500] (716 bytes)
I/charon (18819): 13[IKE] retransmit 2 of request with message ID 0
I/charon (18819): 13[NET] sending packet: from 25.228.200.238[42670] to 192.99.37.222[500] (716 bytes)
I/charon (18819): 14[IKE] retransmit 3 of request with message ID 0
I/charon (18819): 14[NET] sending packet: from 25.228.200.238[42670] to 192.99.37.222[500] (716 bytes)
I/charon (18819): 15[IKE] giving up after 3 retransmits
I/charon (18819): 15[IKE] establishing IKE_SA failed, peer not responding
I/charon (18819): 07[IKE] unable to terminate IKE_SA: ID 1 not found
I/CharonVpnService(18819): charon stopped

Cannot connect to vpn servers!

Server is unreachable, also can you explain about how did you import the vpn api in the app, and how to add/create own server addresses.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.