You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a5b0c19
Browse filesBrowse the repository at this point in the historyBrowse files
fix(console): netcheck - recommendations that fit any device
The report is read by the customer's IT, who may run a vendor's device
and have no say over its configuration. No recommendation names a config
key any more; where the configuration is the cause, it says what is wrong
and "Please check it, or contact your support". "Contact your support"
throughout, and "not known locally" instead of "the local contact does
not know", as the local contact is who reads it. A test keeps config keys
out of the recommendations.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Simon Walz <contact@simonwalz.de>
Copy file name to clipboardExpand all lines: system/cuos/netcheck.sh
+19-18Lines changed: 19 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -272,11 +272,11 @@ classify_http() {
272
272
"${location:-another address}"
273
273
;;
274
274
403) printf'error\taccess denied (HTTP 403)\tA proxy or firewall in the path probably refuses the request. Allow the registry host for this device.\n' ;;
275
-
404) printf'error\tno registry at this address (HTTP 404)\tCheck update_registry in the system configuration.\n' ;;
275
+
404) printf'error\tno registry at this address (HTTP 404)\tThere is no update registry at the configured address. Please check the update registry setting of the device, or contact your support.\n' ;;
276
276
407) printf'error\tproxy wants authentication (HTTP 407)\tThe proxy requires credentials the device does not send. Allow the device through the proxy without authentication.\n' ;;
277
277
429) printf'warning\trate limited (HTTP 429)\tTry again later.\n' ;;
278
-
5??) printf'error\tserver-side problem (HTTP %s)\tTry again later; contact support if it persists.\n'"${code}" ;;
279
-
*) printf'error\tunexpected answer (HTTP %s)\tContact support with this output.\n'"${code:-none}" ;;
278
+
5??) printf'error\tserver-side problem (HTTP %s)\tTry again later; contact your support if it persists.\n'"${code}" ;;
279
+
*) printf'error\tunexpected answer (HTTP %s)\tContact your support with this output.\n'"${code:-none}" ;;
280
280
esac
281
281
}
282
282
@@ -447,7 +447,7 @@ check_gateway() {
447
447
mapfile -t gateways <<(default_gateways)
448
448
if((${#gateways[@]}==0));then
449
449
record gateway error "no default route" \
450
-
"Configure a gateway for this device (network settings)."
450
+
"No gateway is configured. Please check the network settings of the device, or contact your support."
451
451
return
452
452
fi
453
453
forgwin"${gateways[@]}";do
@@ -480,7 +480,7 @@ check_dns_config() {
480
480
mapfile -t servers <<(nameservers)
481
481
if((${#servers[@]}==0));then
482
482
record dns_config error "no DNS server configured" \
483
-
"Configure DNS servers for this device (network settings)."
483
+
"No DNS server is configured. Please check the network settings of the device, or contact your support."
record tls_handshake error "$(describe_handshake "${main}") - the large ClientHello is not accepted" \
590
-
"A firewall or proxy in the path cannot handle the larger TLS ClientHello with a post-quantum key share (X25519MLKEM768). Update the firmware of that device; contact support for a workaround."
590
+
"A firewall or proxy in the path cannot handle the larger TLS ClientHello with a post-quantum key share (X25519MLKEM768). Update the firmware of that device; contact your support for a workaround."
591
591
;;
592
592
sni_block)
593
593
record tls_handshake error "$(describe_handshake "${main}") - blocked by server name" \
594
-
"A firewall or proxy in the path blocks the connection by its server name (SNI). Allow ${HOST} in ALL firewalls and proxies in the path (URL/category filter, application control, TLS inspection rules). Often there is a further firewall (corporate, site, provider) the local contact does not know about."
594
+
"A firewall or proxy in the path blocks the connection by its server name (SNI). Allow ${HOST} in ALL firewalls and proxies in the path (URL/category filter, application control, TLS inspection rules). Often there is a further firewall in the path (corporate, site, provider) that is not known locally."
595
595
;;
596
596
*)
597
597
if [[ "${main}"== alert* ]];then
598
598
record tls_handshake error "the server refuses the handshake (${main#alert })" \
599
-
"The server or a proxy in the path refuses the TLS connection. Contact support with this output."
599
+
"The server or a proxy in the path refuses the TLS connection. Contact your support with this output."
600
600
else
601
601
record tls_handshake error "$(describe_handshake "${main}") - every TLS connection to ${TARGET_IP} is cut" \
602
-
"Something in the path cuts every TLS connection to ${TARGET_IP}:${PORT}, whatever the server name. Allow ${HOST} in all firewalls in the path, including any the local contact may not know about (corporate, site, provider)."
602
+
"Something in the path cuts every TLS connection to ${TARGET_IP}:${PORT}, whatever the server name. Allow ${HOST} in all firewalls in the path, including any that are not known locally (corporate, site, provider)."
603
603
fi
604
604
;;
605
605
esac
606
606
}
607
607
608
608
check_time() {
609
-
local now build ntp rec="Configure NTP servers (network settings) and allow NTP (UDP 123) to them. A wrong clock makes certificates look invalid."
609
+
local now build ntp rec="Please check the NTP servers in the network settings of the device, and allow NTP (UDP 123) from the device; or contact your support. A wrong clock makes certificates look invalid."
610
610
now="$(now_epoch)"
611
611
build="$(build_epoch)"
612
612
if [[ -n"${build}" ]] &&(( now < build ));then
@@ -655,7 +655,7 @@ check_cert_ca() {
655
655
656
656
if [[ "${sys_code}"=="aborted"||"${pub_code}"=="aborted"||-z"${LEAF}" ]];then
657
657
record cert_ca error "the certificate could not be fetched${SYS_MSG:+:${SYS_MSG#curl: }}" \
658
-
"The connection broke off although the handshake worked before. Run the check again; if it happens again, contact support with this output."
658
+
"The connection broke off although the handshake worked before. Run the check again; if it happens again, contact your support with this output."
659
659
return
660
660
fi
661
661
@@ -677,7 +677,7 @@ check_cert_ca() {
677
677
;;
678
678
time)
679
679
record cert_ca error "certificate expired or not yet valid" \
680
-
"If the system time is wrong, fix it first (see System time). Otherwise contact support with this output."
680
+
"If the system time is wrong, fix it first (see System time). Otherwise contact your support with this output."
681
681
;;
682
682
unknown)
683
683
describe_cert "topmost certificate""${top}"
@@ -691,7 +691,7 @@ Note: with b) the inspection infrastructure sees this traffic, credentials inclu
691
691
;;
692
692
*)
693
693
record cert_ca error "certificate not accepted${SYS_MSG:+:${SYS_MSG#curl: }}" \
local rec="Check update_registry_user and update_registry_password in the system configuration, and the licence; contact support."
746
+
local rec="The access data for the update registry is not accepted. Please check it, or contact your support."
747
747
case"$(classify_login "${rc}""${out}")"in
748
748
ok) record credentials ok "accepted" ;;
749
749
rejected) record credentials error "rejected""${rec}" ;;
750
-
denied) record credentials error "accepted, but access denied""${rec}" ;;
750
+
denied) record credentials error "accepted, but access denied" \
751
+
"The access data for the update registry is accepted, but does not give access to the updates (licence or permissions). Please check it, or contact your support." ;;
0 commit comments