lollipopkit / flutter_server_box

ServerBox - server status & toolbox app using Flutter
GNU General Public License v3.0
3.65k stars 232 forks source link

主链接内网ip备选链接ddns情况下无法联通 #376

Open liwenjie119 opened 3 weeks ago

liwenjie119 commented 3 weeks ago

描述BUG

主机填写内网ip如192.168.100.1,然后备选链接使用ipv6的ddns域名,在外网下无法正常接入,内网正常链接。 如果反过来,主机填写ipv6域名,备选链接使用内网ip,则内外网都正常。但这样是否内网情况下链接会从外网绕一圈?

复现步骤

上述bug描述已说明,外网连会提示未知


SSHAuthAbortError(Connection closed before authentication)

**期望结果**
<!--一个关于你期望的结果的清晰描述。-->
当主链接内网ip,备选ipv6 ddns域名时,外网正常接入

**实际结果**
<!--一个关于实际结果的清晰描述。-->
报错无法连接

**截图**
<!--如果可以,请添加截图(包括错误界面和日志界面)来帮助解释你的问题。-->

![Screenshot_2024-06-06-15-54-45-550_tech lolli toolbox](https://github.com/lollipopkit/flutter_server_box/assets/25956275/7f1f8ed6-f6b3-4c44-9c0d-d104c2520e7d)
这种情况下,外网使用流量情况下无法联通
**设备**
<!--
- 系统: e.g. iOS16 or Android13
- App版本: e.g. 1.0.302
-->

小米13u OS1.0.24.5.27.DEV
**更多信息**
<!--在这里添加关于这个问题的更多信息。-->
Issues-translate-bot commented 3 weeks ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: The main link intranet IP alternative link ddns cannot be connected.

DESCRIPTION BUG

The host fills in the intranet IP such as 192.168.100.1, and then uses the ddns domain name of IPv6 for the alternative link. It cannot be accessed normally from the external network, but the intranet link is normal. If it is reversed, the host fills in the ipv6 domain name, and the alternative link uses the internal IP, then both the internal and external networks are normal. But does this mean that if the link is on the internal network, it will go around the external network?

Steps to reproduce

The above bug description has explained that the external network connection will prompt unknown


SSHAuthAbortError(Connection closed before authentication)

**Desired result**
<!--A clear description of your desired results. -->
When the main link is internal network IP and the alternative ipv6 ddns domain name is used, the external network can be accessed normally.

**actual results**
<!--A clear description of actual results. -->
Unable to connect error

**screenshot**
<!--If possible, please add screenshots (including error interface and log interface) to help explain your problem. -->

![Screenshot_2024-06-06-15-54-45-550_tech lolli toolbox](https://github.com/lollipopkit/flutter_server_box/assets/25956275/7f1f8ed6-f6b3-4c44-9c0d-d104c2520e7d)
In this case, the external network cannot be connected when using traffic.
**equipment**
<!--
- System: e.g. iOS16 or Android13
- App version: e.g. 1.0.302
-->

Xiaomi 13u OS1.0.24.5.27.DEV
**More information**
<!--Add more information about this issue here. -->