Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
localhost:8443 {
tls internal
reverse_proxy localhost:8080
}
Binary file added lab4-tls.pcap
Binary file not shown.
49 changes: 49 additions & 0 deletions lab4-trace.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
13:46:07.658418 IP 127.0.0.1.50656 > 127.0.0.1.8080: Flags [S], seq 1938324802, win 65535, options [mss 16344,nop,wscale 6,nop,nop,TS val 3607625365 ecr 0,sackOK,eol], length 0
E..@..@.@...............s.}B.........4....?........
............
13:46:07.658484 IP 127.0.0.1.8080 > 127.0.0.1.50656: Flags [S.], seq 3003311224, ack 1938324803, win 65535, options [mss 16344,nop,wscale 6,nop,nop,TS val 581001549 ecr 3607625365,sackOK,eol], length 0
E..@..@.@..................xs.}C.....4....?........
".aM........
13:46:07.658497 IP 127.0.0.1.50656 > 127.0.0.1.8080: Flags [.], ack 1, win 6380, options [nop,nop,TS val 3607625365 ecr 581001549], length 0
E..4..@.@...............s.}C...y.....(.....
....".aM
13:46:07.658505 IP 127.0.0.1.8080 > 127.0.0.1.50656: Flags [.], ack 1, win 6380, options [nop,nop,TS val 581001549 ecr 3607625365], length 0
E..4..@.@..................ys.}C.....(.....
".aM....
13:46:07.658525 IP 127.0.0.1.50656 > 127.0.0.1.8080: Flags [P.], seq 1:175, ack 1, win 6380, options [nop,nop,TS val 3607625365 ecr 581001549], length 174: HTTP: POST /notes HTTP/1.1
E.....@.@...............s.}C...y...........
....".aMPOST /notes HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: curl/8.7.1
Accept: */*
Content-Type: application/json
Content-Length: 39

{"title":"lab4","body":"network trace"}
13:46:07.658540 IP 127.0.0.1.8080 > 127.0.0.1.50656: Flags [.], ack 175, win 6378, options [nop,nop,TS val 581001549 ecr 3607625365], length 0
E..4..@.@..................ys.}......(.....
".aM....
13:46:07.659162 IP 127.0.0.1.8080 > 127.0.0.1.50656: Flags [P.], seq 1:204, ack 175, win 6378, options [nop,nop,TS val 581001550 ecr 3607625365], length 203: HTTP: HTTP/1.1 201 Created
E.....@.@..................ys.}............
".aN....HTTP/1.1 201 Created
Content-Type: application/json
Date: Sat, 12 Sep 2026 10:46:07 GMT
Content-Length: 90

{"id":6,"title":"lab4","body":"network trace","created_at":"2026-09-12T10:46:07.658749Z"}

13:46:07.659178 IP 127.0.0.1.50656 > 127.0.0.1.8080: Flags [.], ack 204, win 6377, options [nop,nop,TS val 3607625366 ecr 581001550], length 0
E..4..@.@...............s.}....D.....(.....
....".aN
13:46:07.659228 IP 127.0.0.1.50656 > 127.0.0.1.8080: Flags [F.], seq 175, ack 204, win 6377, options [nop,nop,TS val 3607625366 ecr 581001550], length 0
E..4..@.@...............s.}....D.....(.....
....".aN
13:46:07.659241 IP 127.0.0.1.8080 > 127.0.0.1.50656: Flags [.], ack 176, win 6378, options [nop,nop,TS val 581001550 ecr 3607625366], length 0
E..4..@.@..................Ds.}......(.....
".aN....
13:46:07.659253 IP 127.0.0.1.8080 > 127.0.0.1.50656: Flags [F.], seq 204, ack 176, win 6378, options [nop,nop,TS val 581001550 ecr 3607625366], length 0
E..4..@.@..................Ds.}......(.....
".aN....
13:46:07.659270 IP 127.0.0.1.50656 > 127.0.0.1.8080: Flags [.], ack 205, win 6377, options [nop,nop,TS val 3607625366 ecr 581001550], length 0
E..4..@.@...............s.}....E.....(.....
....".aN
Binary file added submissions/lab4-assets/clienthello.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added submissions/lab4-assets/serverhello.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading