Coder Social home page Coder Social logo

Set username and pwd about simpleopenvpn-android HOT 12 CLOSED

nnjun avatar nnjun commented on September 21, 2024
Set username and pwd

from simpleopenvpn-android.

Comments (12)

nnjun avatar nnjun commented on September 21, 2024

from simpleopenvpn-android.

sysxda avatar sysxda commented on September 21, 2024

Big thanks for hard work

from simpleopenvpn-android.

sysxda avatar sysxda commented on September 21, 2024

you mean this ?

from simpleopenvpn-android.

nnjun avatar nnjun commented on September 21, 2024

Yes, you're right. If your server is configured and supports password login, then we can set the password by "loadVpnProfile (data);" and then "getVpnProfile (). mUserName" and "getVpnProfile (). mPassword". If you still encounter problems, I can provide configuration for your reference tomorrow.

from simpleopenvpn-android.

sysxda avatar sysxda commented on September 21, 2024

yep , its still not working for me :( getting auth message at all when it disconnects ...

from simpleopenvpn-android.

nnjun avatar nnjun commented on September 21, 2024

If you cancel your account password, can you connect successfully?

from simpleopenvpn-android.

sysxda avatar sysxda commented on September 21, 2024

nope :( getting logs

08-10 20:04:57.781 I/OpenVPN (15954): Starting openvpn 08-10 20:04:59.305 I/OpenVPN (15954): OpenVPN process exited 08-10 20:04:59.305 D/TAG (15954): 连接关闭 08-10 20:04:59.331 I/OpenVPN (15954): Exiting

from simpleopenvpn-android.

nnjun avatar nnjun commented on September 21, 2024

Did you build the server yourself?

from simpleopenvpn-android.

sysxda avatar sysxda commented on September 21, 2024

from simpleopenvpn-android.

nnjun avatar nnjun commented on September 21, 2024

I'm not sure if it's because of your server configuration that you can't connect. There's a public service provider here. You can choose from it to download the ovpn file and try to connect. Servers may be unavailable or overcrowded. Please change other attempts! If it still fails, please leave a message. I wake up and reply. Good luck to you brother!

https://www.vpngate.net/cn/

from simpleopenvpn-android.

nnjun avatar nnjun commented on September 21, 2024

Okay, I'll try to find out why!

from simpleopenvpn-android.

nnjun avatar nnjun commented on September 21, 2024

Hello friend, today after my verification is no problem. Here you need to configure something, and I'll try to provide it to you. First of all, for the convenience of my scripted server, the open source address is:https://github.com/Nyr/openvpn-install. Of course, self-built is also possible!

Step 1.
We need to make special configuration for "/ etc/openvpn/server/server.conf", first we need to add the following at the bottom.

script-security 3
auth-user-pass-verify /etc/openvpn/server/check.sh via-env
client-cert-not-required
username-as-common-name

Step 2.
Customers need to add a sentence to ovpn: "auth-user-pass"

APP:
image

Additional notes:
The "psw-file" file represents the user's account password, which is preceded by an account, followed by a password, separated by a space in the middle. For example: 123 456.Granting permission 660

"check. sh" is a script to verify the password. You just need to change the log path and the location of "psw-file" of your output. The rest is unchanged.Granting permission +x

If everything goes well, the server will output when the user connects:

Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_VER=2.4_master
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_PLAT=android
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_PROTO=2
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_NCP=2
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_LZ4=1
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_LZ4v2=1
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_LZO=1
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_COMP_STUB=1
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_COMP_STUBv2=1
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_RGI6=1
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 peer info: IV_GUI_VER=com.app.vpn_1.0
Sun Aug 11 15:34:54 2019 61.144.97.186:47490 TLS: Username/Password authentication succeeded for username '123' [CN SET]

If the password is wrong, the server will output:

Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_VER=2.4_master
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_PLAT=android
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_PROTO=2
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_NCP=2
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_LZ4=1
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_LZ4v2=1
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_LZO=1
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_COMP_STUB=1
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_COMP_STUBv2=1
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_RGI6=1
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 peer info: IV_GUI_VER=com.app.vpn_1.0
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 WARNING: Failed running command (--auth-user-pass-verify): external program exited with error status: 1
Sun Aug 11 15:51:46 2019 61.144.97.186:48946 TLS Auth Error: Auth Username/Password verification failed for peer

I have sent you the required files by mail.

from simpleopenvpn-android.

Related Issues (10)

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.