Finalize Assignment 7 evidence and local manual builds (refs #19)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# External TCP evidence, 28 October 2026
|
||||
|
||||
Vincent ran the PowerShell loop in the Codex conversation on his external
|
||||
Wi-Fi connection, outside SSH. `ports-20261028-154000.csv` retains all 18
|
||||
connection outcomes and UTC completion timestamps from that run. Only the
|
||||
local Wi-Fi name in `Network` has been replaced by a generic description;
|
||||
the original CSV is retained under ignored `build/evidence/assignment7-port-tests/`.
|
||||
|
||||
The tests ran 19:32:40-19:40:00 UTC (15:32:40-15:40:00 EDT). TCP 443 and 80
|
||||
succeeded on both droplet addresses. TCP 3000, 3001, 8080, 9090, 9100, 9115,
|
||||
and 50000 failed on both. The 443 controls passed before the negative tests.
|
||||
These results establish reachability from the tested client network at that
|
||||
time; they do not identify which networking layer blocked a connection or
|
||||
test TLS, redirects, or application authentication.
|
||||
|
||||
`test-ports.ps1` preserves the executed loop as a reusable script, with network
|
||||
description and output location exposed as parameters. This saved script was
|
||||
syntax-checked; the historical evidence comes from Vincent's earlier run of
|
||||
the conversational loop, not a subsequent execution of this file.
|
||||
|
||||
To repeat from repository root in Windows PowerShell:
|
||||
|
||||
```powershell
|
||||
./monitoring/evidence/test-ports.ps1 -NetworkDescription 'External Wi-Fi'
|
||||
```
|
||||
|
||||
A failed HTTPS control makes that address family's remaining tests
|
||||
inconclusive and skips them. Keep the new date and results; do not replace
|
||||
the historical evidence. See Microsoft's
|
||||
[Test-NetConnection documentation](https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2025-ps).
|
||||
@@ -0,0 +1,19 @@
|
||||
TimeUTC,Network,Target,Port,ExpectedReachable,TcpTestSucceeded,Result
|
||||
2026-10-28T19:32:40.4700276Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,443,True,True,MATCH
|
||||
2026-10-28T19:32:49.7334208Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,80,True,True,MATCH
|
||||
2026-10-28T19:33:24.9527541Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,3000,False,False,MATCH
|
||||
2026-10-28T19:34:00.0160397Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,3001,False,False,MATCH
|
||||
2026-10-28T19:34:35.0118147Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,8080,False,False,MATCH
|
||||
2026-10-28T19:35:10.1101959Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,9090,False,False,MATCH
|
||||
2026-10-28T19:35:44.9897149Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,9100,False,False,MATCH
|
||||
2026-10-28T19:36:19.9643517Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,9115,False,False,MATCH
|
||||
2026-10-28T19:36:54.9233170Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,50000,False,False,MATCH
|
||||
2026-10-28T19:36:55.4230345Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,443,True,True,MATCH
|
||||
2026-10-28T19:36:55.8361207Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,80,True,True,MATCH
|
||||
2026-10-28T19:37:22.1944035Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,3000,False,False,MATCH
|
||||
2026-10-28T19:37:48.6712583Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,3001,False,False,MATCH
|
||||
2026-10-28T19:38:15.0191304Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,8080,False,False,MATCH
|
||||
2026-10-28T19:38:41.1817674Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,9090,False,False,MATCH
|
||||
2026-10-28T19:39:07.6837526Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,9100,False,False,MATCH
|
||||
2026-10-28T19:39:34.1413090Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,9115,False,False,MATCH
|
||||
2026-10-28T19:40:00.0333941Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,50000,False,False,MATCH
|
||||
|
@@ -0,0 +1,39 @@
|
||||
param(
|
||||
[Parameter(Mandatory)][string]$NetworkDescription,
|
||||
[string]$OutputDirectory = 'build/evidence/assignment7-port-tests'
|
||||
)
|
||||
|
||||
# Run on an external Windows client, outside the droplet's SSH session.
|
||||
# Use a generic network description; do not include a personal address or SSID.
|
||||
$targets = @('147.182.178.136', '2604:a880:400:d1:0:5:22d:6001')
|
||||
$results = @()
|
||||
foreach ($target in $targets) {
|
||||
foreach ($port in @(443, 80, 3000, 3001, 8080, 9090, 9100, 9115, 50000)) {
|
||||
Write-Host "Testing $target port $port..."
|
||||
$test = Test-NetConnection -ComputerName $target -Port $port `
|
||||
-InformationLevel Detailed -WarningAction SilentlyContinue
|
||||
$reachable = [bool]$test.TcpTestSucceeded
|
||||
$expected = $port -in @(80, 443)
|
||||
$result = [pscustomobject]@{
|
||||
TimeUTC = (Get-Date).ToUniversalTime().ToString('o')
|
||||
Network = $NetworkDescription
|
||||
Target = $target
|
||||
Port = $port
|
||||
ExpectedReachable = $expected
|
||||
TcpTestSucceeded = $reachable
|
||||
Result = if ($port -eq 443 -and !$reachable) {
|
||||
'INCONCLUSIVE: HTTPS control failed'
|
||||
} elseif ($reachable -eq $expected) { 'MATCH' } else { 'UNEXPECTED' }
|
||||
}
|
||||
$results += $result
|
||||
$result | Format-Table Target, Port, TcpTestSucceeded, Result -AutoSize
|
||||
if ($port -eq 443 -and !$reachable) {
|
||||
Write-Host 'Skipping remaining ports for this address.'
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
New-Item -ItemType Directory -Force -Path $OutputDirectory | Out-Null
|
||||
$file = Join-Path $OutputDirectory ("ports-{0}.csv" -f (Get-Date -Format 'yyyyMMdd-HHmmss'))
|
||||
$results | Export-Csv -LiteralPath $file -NoTypeInformation
|
||||
Write-Host "Results saved to $file"
|
||||
Reference in New Issue
Block a user