Finalize Assignment 7 evidence and local manual builds (refs #19)
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-10-28 16:23:42 -04:00
parent 34c4c7488a
commit 4d1996c0ab
11 changed files with 271 additions and 50 deletions
+30
View File
@@ -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
1 TimeUTC Network Target Port ExpectedReachable TcpTestSucceeded Result
2 2026-10-28T19:32:40.4700276Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 443 True True MATCH
3 2026-10-28T19:32:49.7334208Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 80 True True MATCH
4 2026-10-28T19:33:24.9527541Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 3000 False False MATCH
5 2026-10-28T19:34:00.0160397Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 3001 False False MATCH
6 2026-10-28T19:34:35.0118147Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 8080 False False MATCH
7 2026-10-28T19:35:10.1101959Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 9090 False False MATCH
8 2026-10-28T19:35:44.9897149Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 9100 False False MATCH
9 2026-10-28T19:36:19.9643517Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 9115 False False MATCH
10 2026-10-28T19:36:54.9233170Z External Wi-Fi (Vincent laptop; local network name redacted) 147.182.178.136 50000 False False MATCH
11 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
12 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
13 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
14 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
15 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
16 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
17 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
18 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
19 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
+39
View File
@@ -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"