本帖最后由 SullivanHua 于 2024-11-13 09:14 编辑
各位技术大神们,我现在遇到了一个非常棘手的问题,急需大家的帮助。
为了能快速了解并处理问题,现提供以下基础信息:面板版本:
使用的是 Linux 面板安装脚本 Ubuntu/Deepin 稳定版 9.0.0。 系统版本:
opiaipro_ubuntu22.04_desktop_aarch64_20240923.img 问题描述:
一开始,我在香橙派开发板上进行首次部署宝塔面板非常成功,当时的回显信息如下:
- 【云服务器】请在安全组放行 18465 端口
- 外网面板地址:https://113.118.83.252:18465/9c936c7c
- 内网面板地址:https://192.168.1.109:18465/9c936c7c
复制代码
然而,后来我在通过这个宝塔面板(内网面板地址)进行重启服务器的过程中,
开发板不小心断电了,没有等到内网面板地址重启完成。
从那以后,开发板就无法通过 SSH 连接了,不过奇怪的是,ping 192.168.1.109 仍然是正常的。
没办法,我只好重新格式化了香橙派开发板 Ubuntu 系统的 TF 存储卡,
并重新烧录 Ubuntu 系统镜像。
再次部署宝塔面板后,回显信息变成了:
- 【云服务器】请在安全组放行 25007 端口
- 外网面板地址:https://113.118.83.186:25007/63d64c89
- 内网面板地址:https://172.17.0.1:25007/63d64c89
复制代码
现在的问题是,这个内网面板地址并不是我开发板的 IP(192.168.1.109),
所以我点击回显地址后根本无法登录宝塔面板。
我已经尝试了很多方法,包括检查网络配置(如下截图)、查看宝塔面板的配置文件等,
但都没有解决这个问题。 相关截图(网络配置命令及回显):
命令1
命令2
命令3
命令4
- curl -vvv --connect-timeout 10 -m 60 https://www.bt.cn/api/getipaddress
复制代码- * Trying 211.99.98.160:443...
- * Connected to www.bt.cn (211.99.98.160) port 443 (#0)
- * ALPN, offering h2
- * ALPN, offering http/1.1
- * CAfile: /etc/ssl/certs/ca-certificates.crt
- * CApath: /etc/ssl/certs
- * TLSv1.0 (OUT), TLS header, Certificate Status (22):
- * TLSv1.3 (OUT), TLS handshake, Client hello (1):
- * TLSv1.2 (IN), TLS header, Certificate Status (22):
- * TLSv1.3 (IN), TLS handshake, Server hello (2):
- * TLSv1.2 (IN), TLS header, Finished (20):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Certificate (11):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, CERT verify (15):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Finished (20):
- * TLSv1.2 (OUT), TLS header, Finished (20):
- * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * TLSv1.3 (OUT), TLS handshake, Finished (20):
- * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
- * ALPN, server accepted to use h2
- * Server certificate:
- * subject: C=CN; ST=\U5E7F\U4E1C\U7701; O=\U5E7F\U4E1C\U5821\U5854\U5B89\U5168\U6280\U672F\U6709\U9650\U516C\U53F8; CN=*.bt.cn
- * start date: Sep 23 00:00:00 2024 GMT
- * expire date: Oct 24 23:59:59 2025 GMT
- * subjectAltName: host "www.bt.cn" matched cert's "*.bt.cn"
- * issuer: C=CN; O=sslTrus; CN=sslTrus (RSA) OV CA
- * SSL certificate verify ok.
- * Using HTTP2, server supports multiplexing
- * Connection state changed (HTTP/2 confirmed)
- * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * Using Stream ID: 1 (easy handle 0xaaaaecfa2cc0)
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- > GET /api/getipaddress HTTP/2
- > Host: www.bt.cn
- > user-agent: curl/7.81.0
- > accept: */*
- >
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
- * old SSL session ID is stale, removing
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- < HTTP/2 200
- < server: openresty
- < date: Wed, 13 Nov 2024 00:46:31 GMT
- < content-type: text/html;charset=utf8
- < content-length: 14
- < strict-transport-security: max-age=31536000; includeSubdomains; preload
- < strict-transport-security: max-age=31536000
- < x-frame-options: SAMEORIGIN
- < strict-transport-security: max-age=31536000
- <
- * Connection #0 to host www.bt.cn left intact
- 113.118.83.186(base) root@orangepiaipro:/home/HwHiAiUser/Downloads#
复制代码
命令5
- curl -vvv --connect-timeout 10 -m 60 https://api.bt.cn/Api/getIpAddress
复制代码- * Trying 211.99.98.159:443...
- * Connected to api.bt.cn (211.99.98.159) port 443 (#0)
- * ALPN, offering h2
- * ALPN, offering http/1.1
- * CAfile: /etc/ssl/certs/ca-certificates.crt
- * CApath: /etc/ssl/certs
- * TLSv1.0 (OUT), TLS header, Certificate Status (22):
- * TLSv1.3 (OUT), TLS handshake, Client hello (1):
- * TLSv1.2 (IN), TLS header, Certificate Status (22):
- * TLSv1.3 (IN), TLS handshake, Server hello (2):
- * TLSv1.2 (IN), TLS header, Finished (20):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Certificate (11):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, CERT verify (15):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Finished (20):
- * TLSv1.2 (OUT), TLS header, Finished (20):
- * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * TLSv1.3 (OUT), TLS handshake, Finished (20):
- * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
- * ALPN, server accepted to use h2
- * Server certificate:
- * subject: C=CN; ST=\U5E7F\U4E1C\U7701; O=\U5E7F\U4E1C\U5821\U5854\U5B89\U5168\U6280\U672F\U6709\U9650\U516C\U53F8; CN=*.bt.cn
- * start date: Sep 23 00:00:00 2024 GMT
- * expire date: Oct 24 23:59:59 2025 GMT
- * subjectAltName: host "api.bt.cn" matched cert's "*.bt.cn"
- * issuer: C=CN; O=sslTrus; CN=sslTrus (RSA) OV CA
- * SSL certificate verify ok.
- * Using HTTP2, server supports multiplexing
- * Connection state changed (HTTP/2 confirmed)
- * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * Using Stream ID: 1 (easy handle 0xaaaad4b0acc0)
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- > GET /Api/getIpAddress HTTP/2
- > Host: api.bt.cn
- > user-agent: curl/7.81.0
- > accept: */*
- >
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
- * old SSL session ID is stale, removing
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
- * TLSv1.2 (OUT), TLS header, Supplemental data (23):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- * TLSv1.2 (IN), TLS header, Supplemental data (23):
- < HTTP/2 200
- < server: nginx
- < date: Wed, 13 Nov 2024 01:07:58 GMT
- < content-type: text/html;charset=utf8
- < vary: Accept-Encoding
- < strict-transport-security: max-age=31536000
- <
- * Connection #0 to host api.bt.cn left intact
- 113.118.83.186(base) root@orangepiaipro:/home/HwHiAiUser/Downloads#
复制代码
希望有经验的朋友们能给我一些指导和建议,帮助我解决这个难题。非常感谢大家!
|