X-dea / flutter_vpn

Plugin to access VPN service for Flutter | Flutter 的 VPN 插件
GNU Lesser General Public License v3.0
345 stars 125 forks source link

server configration #116

Open WaseemAlnasser opened 1 year ago

WaseemAlnasser commented 1 year ago

how are you setting up the server to not use cert for authintication I used this script to download ikev2 on the server https://github.com/jawj/IKEv2-setup but when I connect with username and password from my app there is an error but on strongswan app if I import the cert and connect it works please help

arshmancodes commented 1 year ago

@WaseemAlnasser Can you please elaborate the issue further?

Which platform are you facing the issue on?

WaseemAlnasser commented 1 year ago

@arshmancodes in the package you are using only username and password and server address to connect right? without using any certificate or key how are you setting up the server with ikev2 so that it does not use a certificate I couldn't do it using any script online

arshmancodes commented 1 year ago

@WaseemAlnasser You can configure your VPS as a IKEV2 Server in which you will have the username and password to connect to the server, I think you have not configured the VPS properly for IKEV2

WaseemAlnasser commented 1 year ago

@arshmancodes I configured it using this https://github.com/jawj/IKEv2-setup Do you have any other link or references i can start with

arshmancodes commented 1 year ago
DNS servers for VPN users (default: 1.1.1.1,1.0.0.1): 176.103.130.130,176.103.130.131

 --- Configuration: general server settings ---

 Timezone (default: Europe/London): 
 Email address for sysadmin (e.g. j.bloggs@example.com): me@my-domain.tld
 Desired SSH log-in port (default: 22): 2222
 New SSH log-in user name: george
 Copy /root/.ssh/authorized_keys to new user and disable SSH password log-in [Y/n]? y
 New SSH user's password (e.g. for sudo): 
 Confirm new SSH user's password: 

This is the details where the installer asks for the Username and password configuration and you have to set the username and password over here.

WaseemAlnasser commented 1 year ago

Ohh so the connection would be ssh i am using the client username and password that the script is asking for after this Ok so what if i want to create multiple users i want or for multiple users to connect to the server is there a way to do this

arshmancodes commented 1 year ago

I don't have experience in creating multiple users on the IKEV2 server, but try to connecting with this credential.