Skip to main content

TCP port 443 blocked

Product: Agilent Connected Instrument Device (CID) for OpenLab CDS Audience: Agilent Support, IT/network administrators Support reference: Network / firewall configuration

caution

The diagnostic procedures on this page are intended for IT administrators familiar with Linux commands. Incorrect use of the underlying tools can misconfigure the CID and render it inoperable. Proceed only if you are comfortable working in a Linux environment.


Symptom​

The CID cannot establish a TCP connection on port 443 to one or more required external endpoints. Connection attempts time out or are refused immediately. This may manifest as:

  • Before activation, the CID emits 2 beeps when it cannot contact a CID Hub registration API and retries every 30 seconds (see Beep codes on startup). If activation remains blocked for five minutes, the CID restarts its network service and agent.
  • Software updates, package installations, or cloud-service communication fail entirely.
  • HTTPS requests return connection-timeout errors rather than TLS errors.
  • In CID Hub, the Recent Activity view can show Cannot resolve or connect to IoT endpoint: <mqtt_address> when the IoT endpoint cannot be reached.
  • Alternatively, CID Hub shows the device as offline with no recent telemetry or activity entries at all. This pattern indicates the Registration API itself is unreachable, so the CID has no channel through which to report errors.

Root cause​

When TCP connections on port 443 fail outright, the most common causes are:

  • Port-level firewall rule. The firewall is dropping or rejecting outbound TCP/443 from the CID's IP address or subnet.
  • Domain-based blocking at the TCP layer. The firewall is inspecting the destination hostname (for example via DNS sinkholing) and blocking the connection before it is established.
  • Routing issue. The CID's network route does not have a valid path to the internet.
  • Mandatory outbound proxy. The customer's network requires that all outbound HTTP/HTTPS traffic flow through an explicit proxy. The CID does not support outbound proxy configuration; if a proxy is mandatory, the firewall must allow the CID to bypass it and reach the required endpoints directly.

Confirm this is the right document​

Use the following table to confirm that outbound TCP/443 is the failing layer.

Where you came fromNext step
You ran Verify CID internet connectivity and one or more endpoints returned port-state filtered, closed, or a connection timeoutThis is the correct document. Continue below.
You arrived from Beep codes on startup Step 2 or Step 4 with nc -zv against the Registration API returning Connection refused or timing outThis is the correct document. Continue below.
The connectivity tester reported all endpoints as reachable, but the CID still failsCheck the per-endpoint port state. If port 443 is open for the failing endpoint, see TLS handshake failure.
You have not yet identified a specific endpoint that is failingRun Verify CID internet connectivity first to identify the failing endpoint(s).

If you are working from a direct console with no browser access to the connectivity tester, substitute nc -zv <hostname> 443 against any of the canonical endpoints listed in the Internet requirements section of System requirements to confirm a failing endpoint.


Affected services​

Outbound TCP/443 blocking affects CID services that depend on the blocked endpoint, including activation and registration, telemetry to CID Hub, software updates, and image downloads. If the CID also cannot reach the OpenLab Server, see OpenLab Server unreachable. For the complete list of internet endpoints the CID requires, see the Internet requirements section of System requirements.


Prerequisites​

  • Command-line access to the CID via SSH or direct console connection.
  • Authorization from your IT or network security team to execute network diagnostic commands, if applicable.
tip

Before running manual diagnostics, use Verify CID internet connectivity, the built-in GUI tool that tests all required endpoints and is available even on unactivated CIDs.


Diagnostic steps​

Step 1. Identify the scope and shape of the block​

Use the failed-endpoint list from Verify CID internet connectivity. The connectivity tester runs nmap with -p 443 and --traceroute against every required endpoint, so its output already identifies the port state (filtered vs closed) and shows where the traffic stops.

Identify the scope of the block:

Pattern in the connectivity tester resultsNext step
All or most endpoints failContinue to Step 2 to test the TCP connection to a required endpoint.
Only AWS endpoints failA firewall rule is targeting *.amazonaws.com. Provide the connectivity tester results to your network team. See Resolution.
Only Agilent endpoints failA rule is targeting *.agilent.com. Provide the connectivity tester results to your network team. See Resolution.
Only one endpoint failsA domain-specific rule is in effect. The affected domain must be added to the allowlist individually. See Resolution.

Identify the shape of the block from the per-endpoint port state in the connectivity tester output:

Port state in the connectivity tester outputNext step
filteredThe firewall is silently dropping packets. No reject message is sent back to the CID. See Resolution.
closedThe destination is actively refusing the connection. See Resolution.
Traceroute terminates at an internal IPTraffic never leaves the corporate network. Continue to Step 4 to characterize the dropping hop.

Step 2. Test a required endpoint​

Replace HOSTNAME with a failing hostname from Step 1.

nc -zv HOSTNAME 443
ResultNext step
Connection failsProvide the output to your network team to check routing and outbound access to this endpoint.
Connection succeedsThe TCP connection to this endpoint succeeded. If the CID operation still fails, see TLS handshake failure.

Step 3. Check whether the network requires an outbound proxy​

Some corporate networks require all outbound HTTP/HTTPS traffic to flow through an explicit proxy. The CID does not support outbound proxy configuration; if a proxy is mandatory, the firewall must explicitly allow the CID to bypass it.

env | grep -i proxy
ResultNext step
No proxy variables set, and the network does not require a proxyThis step is not the cause. Continue to Step 4.
No proxy variables set, but the network requires a proxyThe CID cannot route through the corporate proxy. Request that your IT team add an allowlist rule that lets the CID reach the required endpoints directly. See the Internet requirements section of System requirements for the full endpoint list.
Proxy variables are set in the environmentThis is not a supported configuration. Remove the variables and apply the firewall allowlist approach above.

Step 4. Characterize the dropping hop​

If Step 1 showed the traceroute terminating at an internal IP, use mtr to capture per-hop packet loss for the network team. This adds information the connectivity tester's single-pass traceroute does not provide.

# Replace <hostname> with the failing endpoint identified from
# the connectivity tester results or CID Hub Recent Activity.
# Example: hub-ac-registration-api.prd-51.aws.agilent.com

mtr --report --tcp --port 443 <hostname>
ResultNext step
The report shows packet loss starting at an internal hopThe block is inside the corporate network. Provide the full output and the connectivity tester results to your network team. See Resolution.
The report reaches the destination with no loss, or loss begins beyond the corporate edgeTCP/443 is not blocked at the network layer. Re-check the per-endpoint port state in Step 1, then see TLS handshake failure.

Resolution​

Provide the diagnostic output from the diagnostic steps to your network security team and request the appropriate action.

Recommended actionApplicable when
Permit outbound TCP/443 to all required CID endpointsAll or most endpoints failed in Step 1
Add domain-specific allowlist rules for the affected service groupOnly specific domains failed in Step 1
Check routing and outbound access to the tested endpointThe connection in Step 2 failed
Add a firewall allowlist that lets the CID bypass the corporate outbound proxy and reach the required endpoints directlyStep 3 identified that a proxy is required
Review firewall rules for silently filtered trafficStep 1 showed port state filtered
Open firewall rules to allow the destination to accept the connectionStep 1 showed port state closed
Investigate the dropping hop with your network teamStep 1 showed the traceroute terminating internally; Step 4 identified the hop

Last updated: