To see what's happening on the phone, I always use adb logcat. (There may be an app to view this log, but I just use the adb tool in the Android SDK.)
Note however that if you are using certificates, you won't use a pre-shared key. When you go to create the VPN connection on your Android device, you'll need to select L2TP/IPsec CRT VPN instead of L2TP/IPsec PSK VPN.
If you were using a "pure" IPsec VPN, you would not necessarily need a "username". The "username/password" aspect, in this case, is added by the L2TP component of the VPN. (there are other types of IPsec VPNs which use username/password authentication in addition to a PSK or certificate; this type of authentication is usually called "XAUTH".)
发布评论
评论(1)
本指南对我有用。
要查看手机上发生的情况,我总是使用
adb logcat
。 (可能有一个应用程序可以查看此日志,但我只是使用 中的adb
工具Android SDK。)但请注意,如果您使用证书,则不会使用预共享密钥。当您在 Android 设备上创建 VPN 连接时,您需要选择
L2TP/IPsec CRT VPN
而不是L2TP/IPsec PSK VPN
。如果您使用“纯”IPsec VPN,则不一定需要“用户名”。在这种情况下,“用户名/密码”方面是由 VPN 的 L2TP 组件添加的。 (除了 PSK 或证书之外,还有其他类型的 IPsec VPN 使用用户名/密码身份验证;这种类型的身份验证通常称为“XAUTH”。)
This guide worked for me.
To see what's happening on the phone, I always use
adb logcat
. (There may be an app to view this log, but I just use theadb
tool in the Android SDK.)Note however that if you are using certificates, you won't use a pre-shared key. When you go to create the VPN connection on your Android device, you'll need to select
L2TP/IPsec CRT VPN
instead ofL2TP/IPsec PSK VPN
.If you were using a "pure" IPsec VPN, you would not necessarily need a "username". The "username/password" aspect, in this case, is added by the L2TP component of the VPN. (there are other types of IPsec VPNs which use username/password authentication in addition to a PSK or certificate; this type of authentication is usually called "XAUTH".)