内网部署emqx,可以连接到内网,但是无法通过公网映射的ip连接到emqx

[2024-01-22 10:34:40] [INFO] MQTTX client with ID c1eee884--* assigned

[2024-01-22 10:34:40] [INFO] Connect client 公网, MQTT/TCP connection: mqtt://39.153..:1883 with Properties: {“sessionExpiryInterval”:0,“receiveMaximum”:null,“maximumPacketSize”:null,“topicAliasMaximum”:null,“requestResponseInformation”:null,“requestProblemInformation”:null,“authenticationMethod”:null}

[2024-01-22 10:34:40] [INFO] 公网 connect close, MQTT.js onClose trigger
以上是日志信息

telnet 看下端口是否放出来了呢?
内网能连接说明 EMQX 运行是正常的,请检查下网络链路/防火墙/……的配置。

你好,已经用telnet检查过端口了,1883、18083都已放开。
而且还有一个症状就是:内网虽然可以用mqttx连接,但是我用后台的问题分析->WebSocket 客户端连接测试就一直提示“已断开连接”,不知道与这个问题有关没

Websocket 需要使用 8083 端口
Websocket SSL 使用 8084 端口

内网服务器8083放开了,我在内网测试的应该不需要再公网那边也开吧?

你具体使用的是哪个版本呢?
EMQX 的日志也请提供下

版本是5.4.0

日志:
2024-01-22T06:36:48.227387+00:00 [debug] msg: cluster_rpc_apply_result, mfa: emqx_cluster_rpc:log_and_alarm/3(600), entrypoint: <<“emqx:update_config/3”>>, kind: initiate, result: {ok,#{config => #{console => #{burst_limit => #{enable => true,max_count => 10000,window_time => 1000},chars_limit => unlimited,drop_mode_qlen => 3000,enable => false,flush_qlen => 8000,formatter => text,level => warning,max_depth => 100,overload_kill => #{enable => true,mem_size => 31457280,qlen => 20000,restart_after => 5000},single_line => true,supervisor_reports => error,sync_mode_qlen => 100,time_offset => “system”},file => #{default => #{burst_limit => #{enable => true,max_count => 10000,window_time => 1000},chars_limit => unlimited,drop_mode_qlen => 3000,enable => true,flush_qlen => 8000,formatter => text,level => all,max_depth => 100,overload_kill => #{enable => true,mem_size => 31457280,qlen => 20000,restart_after => 5000},path => “/usr/local/emqx/emqx/log/emqx.log”,rotation_count => 10,rotation_size => 52428800,single_line => true,supervisor_reports => error,sync_mode_qlen => 100,time_offset => “system”}}},post_config_update => #{},raw_config => #{<<“console”>> => #{<<“enable”>> => false,<<“formatter”>> => <<“text”>>,<<“level”>> => <<“warning”>>,<<“time_offset”>> => <<“system”>>},<<“file”>> => #{<<“default”>> => #{<<“enable”>> => true,<<“formatter”>> => <<“text”>>,<<“level”>> => <<“all”>>,<<“path”>> => <<“/usr/local/emqx/emqx/log/emqx.log”>>,<<“rotation_count”>> => 10,<<“rotation_size”>> => <<“50MB”>>,<<“time_offset”>> => <<“system”>>}}}}}, tnx_id: 7
2024-01-22T06:37:15.572497+00:00 [debug] event=send_data_succeeded socket=“#Port<0.153>”
2024-01-22T06:37:15.572638+00:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.153>”
2024-01-22T06:37:15.572787+00:00 [debug] event=ping_received driver=tcp socket=“#Port<0.154>” peer=“127.0.0.1:57440” action=ignore
2024-01-22T06:37:17.668812+00:00 [debug] event=ping_received driver=tcp socket=“#Port<0.471>” peer=“127.0.0.1:58792” action=ignore
2024-01-22T06:37:17.669202+00:00 [debug] event=send_data_succeeded socket=“#Port<0.470>”
2024-01-22T06:37:17.669261+00:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.470>”