Comments (12)
from simpleopenvpn-android.
Big thanks for hard work
from simpleopenvpn-android.
you mean this ?
from simpleopenvpn-android.
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.
yep , its still not working for me :( getting auth message at all when it disconnects ...
from simpleopenvpn-android.
If you cancel your account password, can you connect successfully?
from simpleopenvpn-android.
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.
Did you build the server yourself?
from simpleopenvpn-android.
from simpleopenvpn-android.
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!
from simpleopenvpn-android.
Okay, I'll try to find out why!
from simpleopenvpn-android.
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"
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)
- Android 29 连接不了 HOT 1
- 缺少一個變量
- Connect Problem HOT 15
- Unable to reconnect HOT 9
- 一点开始就断开了也不报错。不知道什么问题,麻烦帮忙看下,谢谢 HOT 1
- 动态设置ip无效,服务器得到的,依旧是本机的ip HOT 1
- 可以用主机跟端口号,账号密码登录。 HOT 5
- 连接成功之后,ip没有更换,是哪里还需要配置吗? HOT 2
- 不是openvpn服务器的vpn服务器可以连接吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpleopenvpn-android.