事情经过

今天打开kali 发现我一个平台的权限掉了,然后重新登录,大概情况像这样:

image-20210913112748306

就是说我此时后台是没有网络的,但是我不知道!!!

因为正常我输入完密码还有一个二次验证,但是我密码都验证完了,为什么到了二次验证反而失败了了?

我第一想法是会不会是虚拟机时间问题,因为我是直接挂起的;

1
2
kali: dpkg-reconfigure tzdata
centos: tzselect

同理,当我设置完时区后,我又修改了我服务器和docker 容器的时区;

问题依然存在;此刻的我彻底炸裂了,毕竟,人是情感生物,过了一会缓过来,我开始反思自己的问题

思索了半刻(其实也就1分钟),我觉得有必要查看一下输出日志

1
2
ssh server
docker logs admin

日志输出

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
POST /identity/connect/token (login) => 400 Bad Request
POST /identity/connect/token
Error sending new device email: Smtp.
[CAUSE] lettre::transport::smtp::Error {
kind: Connection,
source: Failure(
Ssl(
Error {
code: ErrorCode(
5,
),
cause: None,
},
X509VerifyResult {
code: 0,
error: "ok",
},
),
),
}
Could not send login notification email. Please contact your administrator.
POST /identity/connect/token (login) => 400 Bad Request
POST /api/accounts/prelogin
POST /api/accounts/prelogin (prelogin) => 200 OK

都看到这了,懂得都懂,网络问题,问题出在哪呢?dns?酸酸乳?

哦吼,明白了,上次编译 code-server 使用了酸酸乳,导致后台透明流量
因为虚拟机好久没用了,后台把它当做了新的设备,需要发送邮件提醒管理员
但是网络透明,导致无法连接邮箱服务器,无法推送新设备登录的邮件信息,最后导致无法登陆

Soga,就这这玩意,让我的键盘遭受到了一次重击,我会帮你报球的

1
docker stop v2raya && docker rm v2raya

成功登录,还是我太年轻了,不能更好的管理好自己的情绪

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way