Skip to content

Practice: Everyday Application Traffic

Module
Everyday Application Traffic
Difficulty
Easy
Updated
Tested on
Ubuntu 24.04.5 LTS, netlab 1.2, GNU Bash 5.2.21
On this page

Four requests fail to give you the page you asked for. The cause is different each time. First collect a successful exchange. Then compare each failed request with it and find the last stage that still worked.

Finish From name to page and Recognizing other services. Use two terminals and keep netlab 1.2 in DNS mode. Start at the VM prompt so you can reset or apply a fault before entering laptop.

Run netlab reset on the VM. In terminal 1, enter laptop and capture on eth0 without a filter. Save the file as working-page.pcap. In terminal 2 on laptop, ask for https://web.lab.test/ with the lab authority. Save the status curl reports. Stop the listener and use tshark to read the row number, protocol and description.

Give each group of rows a station and a short explanation. Point to one address that shows the settings in use and one that shows traffic going through the router. For the TLS group, record one thing you can read in the capture and one thing you had to read from curl. Keep this annotated list beside your saved file.

Part 2 · Repeat with one problem at a time

Section titled “Part 2 · Repeat with one problem at a time”

For the first three cases, run netlab break with the fault name from the table at the VM prompt. Then open the two laptop shells. Use the same listener command as in Part 1, without a filter. Give each saved file a different name. Ask for the page with the lab authority. Use -v to see the connection and certificate details. Put time before curl when you measure how long it takes to report a lookup error.

Stop the listener before reading your file. Compare the rows and curl’s result with the working case. Write the failed stage and the row that shows the failure. If an answer or event is missing, write down the last useful row and what you expected next.

Exit both machine shells before using netlab fix at the VM prompt after each case. The last case changes the requested path and needs no lab fault.

Case Page to request
wrong-dns https://web.lab.test/
stopped-service https://web.lab.test/
wrong-certificate https://web.lab.test/
Missing file https://web.lab.test/nothing.txt
  • Look for a DNS answer before looking for a TCP opening.
  • Compare the reply to the opening SYN with the reply in your working capture.
  • A TLS setup row shows a message on the wire. Curl reports whether it accepted what the server sent.
  • For a missing file over HTTPS, read the status from curl. The packet rows still tell you whether the connection reached the protected exchange.

“If the page failed, the connection failed.” Keep the four stages separate in your notes. A later error can happen after all earlier stages succeeded.

Before opening the solution, choose one of your saved files and cover its name. Identify the problem from the rows and the client output alone. Point to the first piece of evidence that lets you rule out one of the other cases.

Solution

In the working case, ARP finds the router, DNS gives the addresses, TCP opens and TLS protects the exchange. Curl reports a successful HTTP response.

Record the first page request
learner@rootvolt:~$ netlab shell laptop[sudo] password for learner: learner@laptop:~$ sudo tcpdump -n -i eth0 -w page.pcap[sudo] password for learner: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes^C24 packets captured
24 packets received by filter
0 packets dropped by kernellearner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Record a working request without a capture filter.
Steps (14)
  1. Type netlab shell laptop
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Type sudo tcpdump -n -i eth0 -w page.pcap
  7. Press Enter
  8. Output: [sudo] password for learner:
  9. Type the password (the terminal shows nothing)
  10. Press Enter
  11. Output: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  12. Ask for the page in terminal 2, then stop this listener.
  13. Press Ctrl + C
  14. Output: 24 packets captured 24 packets received by filter 0 packets dropped by kernel
Ask for the page from laptop
learner@laptop:~$ curl -sS -o /dev/null -w '%{http_code}\n' --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/200learner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Request the working page from laptop.
Steps (3)
  1. Type curl -sS -o /dev/null -w '%{http_code}\n' --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/
  2. Press Enter
  3. Output: 200
Read every row of the first request
learner@laptop:~$ tshark -r page.pcap    1   0.000000 02:77:10:00:00:10 ? Broadcast    ARP 42 Who has 10.77.10.1? Tell 10.77.10.10
    2   0.000035 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01
    3   0.000037  10.77.10.10 ? 10.77.20.53  DNS 72 Standard query 0x9a6e A web.lab.test
    4   0.000081  10.77.10.10 ? 10.77.20.53  DNS 72 Standard query 0x866f AAAA web.lab.test
    5   0.000375  10.77.20.53 ? 10.77.10.10  DNS 121 Standard query response 0x9a6e A web.lab.test A 10.77.20.80 NS ns.lab.test
    6   0.000405  10.77.20.53 ? 10.77.10.10  DNS 133 Standard query response 0x866f AAAA web.lab.test AAAA fd85:b2a8:3761:20:77:20ff:fe00:80 NS ns.lab.test
    7   0.000612  10.77.10.10 ? 10.77.20.80  TCP 74 40482 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=1576398544 TSecr=0 WS=1024
    8   0.000655  10.77.20.80 ? 10.77.10.10  TCP 74 443 ? 40482 [SYN, ACK] Seq=0 Ack=1 Win=65160 Len=0 MSS=1460 SACK_PERM TSval=505452909 TSecr=1576398544 WS=1024
    9   0.000671  10.77.10.10 ? 10.77.20.80  TCP 66 40482 ? 443 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=1576398544 TSecr=505452909
   10   0.001765  10.77.10.10 ? 10.77.20.80  TLSv1 583 Client Hello (SNI=web.lab.test)
   11   0.001812  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 40482 [ACK] Seq=1 Ack=518 Win=65536 Len=0 TSval=505452910 TSecr=1576398545
   12   0.002978  10.77.20.80 ? 10.77.10.10  TLSv1.3 1463 Server Hello, Change Cipher Spec, Application Data, Application Data, Application Data, Application Data
   13   0.003022  10.77.10.10 ? 10.77.20.80  TCP 66 40482 ? 443 [ACK] Seq=518 Ack=1398 Win=67584 Len=0 TSval=1576398547 TSecr=505452912
   14   0.003486  10.77.10.10 ? 10.77.20.80  TLSv1.3 146 Change Cipher Spec, Application Data
   15   0.003634  10.77.20.80 ? 10.77.10.10  TLSv1.3 321 Application Data
   16   0.003726  10.77.10.10 ? 10.77.20.80  TLSv1.3 163 Application Data
   17   0.003736  10.77.20.80 ? 10.77.10.10  TLSv1.3 321 Application Data
   18   0.043949  10.77.10.10 ? 10.77.20.80  TCP 66 40482 ? 443 [ACK] Seq=695 Ack=1908 Win=73728 Len=0 TSval=1576398588 TSecr=505452912
   19   0.044113  10.77.20.80 ? 10.77.10.10  TLSv1.3 577 Application Data, Application Data, Application Data
   20   0.044178  10.77.10.10 ? 10.77.20.80  TCP 66 40482 ? 443 [ACK] Seq=695 Ack=2419 Win=76800 Len=0 TSval=1576398588 TSecr=505452953
   21   0.044387  10.77.10.10 ? 10.77.20.80  TLSv1.3 90 Application Data
   22   0.044590  10.77.10.10 ? 10.77.20.80  TCP 66 40482 ? 443 [FIN, ACK] Seq=719 Ack=2419 Win=76800 Len=0 TSval=1576398588 TSecr=505452953
   23   0.044700  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 40482 [FIN, ACK] Seq=2419 Ack=720 Win=65536 Len=0 TSval=505452953 TSecr=1576398588
   24   0.044735  10.77.10.10 ? 10.77.20.80  TCP 66 40482 ? 443 [ACK] Seq=720 Ack=2420 Win=76800 Len=0 TSval=1576398588 TSecr=505452953learner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Check the groups in a successful exchange.
Steps (3)
  1. Type tshark -r page.pcap
  2. Press Enter
  3. Output: 1 0.000000 02:77:10:00:00:10 ? Broadcast ARP 42 Who has 10.77.10.1? Tell 10.77.10.10 2 0.000035 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01 3 0.000037 10.77.10.10 ? 10.77.20.53 DNS 72 Standard query 0x9a6e A web.lab.test 4 0.000081 10.77.10.10 ? 10.77.20.53 DNS 72 Standard query 0x866f AAAA web.lab.test 5 0.000375 10.77.20.53 ? 10.77.10.10 DNS 121 Standard query response 0x9a6e A web.lab.test A 10.77.20.80 NS ns.lab.test 6 0.000405 10.77.20.53 ? 10.77.10.10 DNS 133 Standard query response 0x866f AAAA web.lab.test AAAA fd85:b2a8:3761:20:77:20ff:fe00:80 NS ns.lab.test 7 0.000612 10.77.10.10 ? 10.77.20.80 TCP 74 40482 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=1576398544 TSecr=0 WS=1024 8 0.000655 10.77.20.80 ? 10.77.10.10 TCP 74 443 ? 40482 [SYN, ACK] Seq=0 Ack=1 Win=65160 Len=0 MSS=1460 SACK_PERM TSval=505452909 TSecr=1576398544 WS=1024 9 0.000671 10.77.10.10 ? 10.77.20.80 TCP 66 40482 ? 443 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=1576398544 TSecr=505452909 10 0.001765 10.77.10.10 ? 10.77.20.80 TLSv1 583 Client Hello (SNI=web.lab.test) 11 0.001812 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 40482 [ACK] Seq=1 Ack=518 Win=65536 Len=0 TSval=505452910 TSecr=1576398545 12 0.002978 10.77.20.80 ? 10.77.10.10 TLSv1.3 1463 Server Hello, Change Cipher Spec, Application Data, Application Data, Application Data, Application Data 13 0.003022 10.77.10.10 ? 10.77.20.80 TCP 66 40482 ? 443 [ACK] Seq=518 Ack=1398 Win=67584 Len=0 TSval=1576398547 TSecr=505452912 14 0.003486 10.77.10.10 ? 10.77.20.80 TLSv1.3 146 Change Cipher Spec, Application Data 15 0.003634 10.77.20.80 ? 10.77.10.10 TLSv1.3 321 Application Data 16 0.003726 10.77.10.10 ? 10.77.20.80 TLSv1.3 163 Application Data 17 0.003736 10.77.20.80 ? 10.77.10.10 TLSv1.3 321 Application Data 18 0.043949 10.77.10.10 ? 10.77.20.80 TCP 66 40482 ? 443 [ACK] Seq=695 Ack=1908 Win=73728 Len=0 TSval=1576398588 TSecr=505452912 19 0.044113 10.77.20.80 ? 10.77.10.10 TLSv1.3 577 Application Data, Application Data, Application Data 20 0.044178 10.77.10.10 ? 10.77.20.80 TCP 66 40482 ? 443 [ACK] Seq=695 Ack=2419 Win=76800 Len=0 TSval=1576398588 TSecr=505452953 21 0.044387 10.77.10.10 ? 10.77.20.80 TLSv1.3 90 Application Data 22 0.044590 10.77.10.10 ? 10.77.20.80 TCP 66 40482 ? 443 [FIN, ACK] Seq=719 Ack=2419 Win=76800 Len=0 TSval=1576398588 TSecr=505452953 23 0.044700 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 40482 [FIN, ACK] Seq=2419 Ack=720 Win=65536 Len=0 TSval=505452953 TSecr=1576398588 24 0.044735 10.77.10.10 ? 10.77.20.80 TCP 66 40482 ? 443 [ACK] Seq=720 Ack=2420 Win=76800 Len=0 TSval=1576398588 TSecr=505452953

Name lookup. Find the DNS questions and the missing answers. After the plain name fails, the resolver used by curl adds the search lab.test suffix from resolv.conf, which explains the web.lab.test.lab.test questions. See Resolvers and authoritative servers.

The ICMP rows say Destination unreachable (Host unreachable) because the router found no machine at 10.77.20.99. Curl reports Could not resolve host: web.lab.test after about twelve seconds in this run. Your timing may differ.

Start and stop the listener
learner@rootvolt:~$ netlab break wrong-dns[sudo] password for learner: Fault wrong-dns applied.learner@rootvolt:~$ netlab shell laptoplearner@laptop:~$ sudo tcpdump -n -i eth0 -w dns-failure.pcap[sudo] password for learner: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes^C20 packets captured
20 packets received by filter
0 packets dropped by kernellearner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Apply the resolver fault and record the request.
Steps (17)
  1. Type netlab break wrong-dns
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: Fault wrong-dns applied.
  7. Type netlab shell laptop
  8. Press Enter
  9. Type sudo tcpdump -n -i eth0 -w dns-failure.pcap
  10. Press Enter
  11. Output: [sudo] password for learner:
  12. Type the password (the terminal shows nothing)
  13. Press Enter
  14. Output: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  15. Send the request in terminal 2, wait for curl to finish, then stop the listener here.
  16. Press Ctrl + C
  17. Output: 20 packets captured 20 packets received by filter 0 packets dropped by kernel
Ask curl for the page and read its result
learner@laptop:~$ time curl -sS --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/curl: (6) Could not resolve host: web.lab.test

real	0m12.275s
user	0m0.004s
sys	0m0.005slearner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Read curl's name lookup error and the time it took to return.
Steps (3)
  1. Type time curl -sS --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/
  2. Press Enter
  3. Output: curl: (6) Could not resolve host: web.lab.test real 0m12.275s user 0m0.004s sys 0m0.005s
Read the diagnostic rows and return to the VM
learner@laptop:~$ tshark -r dns-failure.pcap    1   0.000000 02:77:10:00:00:10 ? Broadcast    ARP 42 Who has 10.77.10.1? Tell 10.77.10.10
    2   0.000049 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01
    3   0.000052  10.77.10.10 ? 10.77.20.99  DNS 72 Standard query 0xbde3 A web.lab.test
    4   0.000078  10.77.10.10 ? 10.77.20.99  DNS 72 Standard query 0x9be1 AAAA web.lab.test
    5   3.052507   10.77.10.1 ? 10.77.10.10  ICMP 100 Destination unreachable (Host unreachable)
    6   3.052549   10.77.10.1 ? 10.77.10.10  ICMP 100 Destination unreachable (Host unreachable)
    7   3.052671  10.77.10.10 ? 10.77.20.99  DNS 72 Standard query 0xbde3 A web.lab.test
    8   3.052719  10.77.10.10 ? 10.77.20.99  DNS 72 Standard query 0x9be1 AAAA web.lab.test
    9   6.124658   10.77.10.1 ? 10.77.10.10  ICMP 100 Destination unreachable (Host unreachable)
   10   6.124719   10.77.10.1 ? 10.77.10.10  ICMP 100 Destination unreachable (Host unreachable)
   11   6.124848  10.77.10.10 ? 10.77.20.99  DNS 81 Standard query 0xbe4c A web.lab.test.lab.test
   12   6.124909  10.77.10.10 ? 10.77.20.99  DNS 81 Standard query 0xe149 AAAA web.lab.test.lab.test
   13   8.269113 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 Who has 10.77.10.10? Tell 10.77.10.1
   14   8.269242 02:77:10:00:00:10 ? 02:77:10:00:00:01 ARP 42 10.77.10.10 is at 02:77:10:00:00:10
   15   9.196904   10.77.10.1 ? 10.77.10.10  ICMP 109 Destination unreachable (Host unreachable)
   16   9.197140   10.77.10.1 ? 10.77.10.10  ICMP 109 Destination unreachable (Host unreachable)
   17   9.197295  10.77.10.10 ? 10.77.20.99  DNS 81 Standard query 0xbe4c A web.lab.test.lab.test
   18   9.197361  10.77.10.10 ? 10.77.20.99  DNS 81 Standard query 0xe149 AAAA web.lab.test.lab.test
   19  12.269006   10.77.10.1 ? 10.77.10.10  ICMP 109 Destination unreachable (Host unreachable)
   20  12.269126   10.77.10.1 ? 10.77.10.10  ICMP 109 Destination unreachable (Host unreachable)learner@laptop:~$ exitlogoutlearner@rootvolt:~$ netlab fixFault wrong-dns removed.learner@rootvolt:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Read the lookup rows and remove the fault.
Steps (9)
  1. Type tshark -r dns-failure.pcap
  2. Press Enter
  3. Output: 1 0.000000 02:77:10:00:00:10 ? Broadcast ARP 42 Who has 10.77.10.1? Tell 10.77.10.10 2 0.000049 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01 3 0.000052 10.77.10.10 ? 10.77.20.99 DNS 72 Standard query 0xbde3 A web.lab.test 4 0.000078 10.77.10.10 ? 10.77.20.99 DNS 72 Standard query 0x9be1 AAAA web.lab.test 5 3.052507 10.77.10.1 ? 10.77.10.10 ICMP 100 Destination unreachable (Host unreachable) 6 3.052549 10.77.10.1 ? 10.77.10.10 ICMP 100 Destination unreachable (Host unreachable) 7 3.052671 10.77.10.10 ? 10.77.20.99 DNS 72 Standard query 0xbde3 A web.lab.test 8 3.052719 10.77.10.10 ? 10.77.20.99 DNS 72 Standard query 0x9be1 AAAA web.lab.test 9 6.124658 10.77.10.1 ? 10.77.10.10 ICMP 100 Destination unreachable (Host unreachable) 10 6.124719 10.77.10.1 ? 10.77.10.10 ICMP 100 Destination unreachable (Host unreachable) 11 6.124848 10.77.10.10 ? 10.77.20.99 DNS 81 Standard query 0xbe4c A web.lab.test.lab.test 12 6.124909 10.77.10.10 ? 10.77.20.99 DNS 81 Standard query 0xe149 AAAA web.lab.test.lab.test 13 8.269113 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 Who has 10.77.10.10? Tell 10.77.10.1 14 8.269242 02:77:10:00:00:10 ? 02:77:10:00:00:01 ARP 42 10.77.10.10 is at 02:77:10:00:00:10 15 9.196904 10.77.10.1 ? 10.77.10.10 ICMP 109 Destination unreachable (Host unreachable) 16 9.197140 10.77.10.1 ? 10.77.10.10 ICMP 109 Destination unreachable (Host unreachable) 17 9.197295 10.77.10.10 ? 10.77.20.99 DNS 81 Standard query 0xbe4c A web.lab.test.lab.test 18 9.197361 10.77.10.10 ? 10.77.20.99 DNS 81 Standard query 0xe149 AAAA web.lab.test.lab.test 19 12.269006 10.77.10.1 ? 10.77.10.10 ICMP 109 Destination unreachable (Host unreachable) 20 12.269126 10.77.10.1 ? 10.77.10.10 ICMP 109 Destination unreachable (Host unreachable)
  4. Type exit
  5. Press Enter
  6. Output: logout
  7. Type netlab fix
  8. Press Enter
  9. Output: Fault wrong-dns removed.

Connection. Read the SYN and the reply with the RST flag. The address lookup worked. Curl reports Connection refused for IPv4 and Network is unreachable for IPv6.

Start and stop the listener
learner@rootvolt:~$ netlab break stopped-service[sudo] password for learner: Fault stopped-service applied.learner@rootvolt:~$ netlab shell laptoplearner@laptop:~$ sudo tcpdump -n -i eth0 -w connection-failure.pcap[sudo] password for learner: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes^C8 packets captured
8 packets received by filter
0 packets dropped by kernellearner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Stop the service with the lab fault and record a request.
Steps (17)
  1. Type netlab break stopped-service
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: Fault stopped-service applied.
  7. Type netlab shell laptop
  8. Press Enter
  9. Type sudo tcpdump -n -i eth0 -w connection-failure.pcap
  10. Press Enter
  11. Output: [sudo] password for learner:
  12. Type the password (the terminal shows nothing)
  13. Press Enter
  14. Output: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  15. Send the request in terminal 2, wait for curl to finish, then stop the listener here.
  16. Press Ctrl + C
  17. Output: 8 packets captured 8 packets received by filter 0 packets dropped by kernel
Ask curl for the page and read its result
learner@laptop:~$ curl -v --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/* Host web.lab.test:443 was resolved.
* IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80
* IPv4: 10.77.20.80
*   Trying 10.77.20.80:443...
* connect to 10.77.20.80 port 443 from 10.77.10.10 port 53862 failed: Connection refused
*   Trying [fd85:b2a8:3761:20:77:20ff:fe00:80]:443...
* Immediate connect fail for fd85:b2a8:3761:20:77:20ff:fe00:80: Network is unreachable
* Failed to connect to web.lab.test port 443 after 1 ms: Couldn't connect to server
* Closing connection
curl: (7) Failed to connect to web.lab.test port 443 after 1 ms: Couldn't connect to serverlearner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Compare curl's IPv6 and IPv4 connection attempts.
Steps (3)
  1. Type curl -v --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/
  2. Press Enter
  3. Output: * Host web.lab.test:443 was resolved. * IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80 * IPv4: 10.77.20.80 * Trying 10.77.20.80:443... * connect to 10.77.20.80 port 443 from 10.77.10.10 port 53862 failed: Connection refused * Trying [fd85:b2a8:3761:20:77:20ff:fe00:80]:443... * Immediate connect fail for fd85:b2a8:3761:20:77:20ff:fe00:80: Network is unreachable * Failed to connect to web.lab.test port 443 after 1 ms: Couldn't connect to server * Closing connection curl: (7) Failed to connect to web.lab.test port 443 after 1 ms: Couldn't connect to server
Read the diagnostic rows and return to the VM
learner@laptop:~$ tshark -r connection-failure.pcap    1   0.000000 02:77:10:00:00:10 ? Broadcast    ARP 42 Who has 10.77.10.1? Tell 10.77.10.10
    2   0.000063 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01
    3   0.000065  10.77.10.10 ? 10.77.20.53  DNS 72 Standard query 0x057b A web.lab.test
    4   0.000132  10.77.10.10 ? 10.77.20.53  DNS 72 Standard query 0x5978 AAAA web.lab.test
    5   0.000424  10.77.20.53 ? 10.77.10.10  DNS 121 Standard query response 0x057b A web.lab.test A 10.77.20.80 NS ns.lab.test
    6   0.000451  10.77.20.53 ? 10.77.10.10  DNS 133 Standard query response 0x5978 AAAA web.lab.test AAAA fd85:b2a8:3761:20:77:20ff:fe00:80 NS ns.lab.test
    7   0.000697  10.77.10.10 ? 10.77.20.80  TCP 74 53862 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=2755217194 TSecr=0 WS=1024
    8   0.000736  10.77.20.80 ? 10.77.10.10  TCP 54 443 ? 53862 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0learner@laptop:~$ exitlogoutlearner@rootvolt:~$ netlab fixFault stopped-service removed.learner@rootvolt:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Find the opening attempt and reset reply, then remove the fault.
Steps (9)
  1. Type tshark -r connection-failure.pcap
  2. Press Enter
  3. Output: 1 0.000000 02:77:10:00:00:10 ? Broadcast ARP 42 Who has 10.77.10.1? Tell 10.77.10.10 2 0.000063 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01 3 0.000065 10.77.10.10 ? 10.77.20.53 DNS 72 Standard query 0x057b A web.lab.test 4 0.000132 10.77.10.10 ? 10.77.20.53 DNS 72 Standard query 0x5978 AAAA web.lab.test 5 0.000424 10.77.20.53 ? 10.77.10.10 DNS 121 Standard query response 0x057b A web.lab.test A 10.77.20.80 NS ns.lab.test 6 0.000451 10.77.20.53 ? 10.77.10.10 DNS 133 Standard query response 0x5978 AAAA web.lab.test AAAA fd85:b2a8:3761:20:77:20ff:fe00:80 NS ns.lab.test 7 0.000697 10.77.10.10 ? 10.77.20.80 TCP 74 53862 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=2755217194 TSecr=0 WS=1024 8 0.000736 10.77.20.80 ? 10.77.10.10 TCP 54 443 ? 53862 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0
  4. Type exit
  5. Press Enter
  6. Output: logout
  7. Type netlab fix
  8. Press Enter
  9. Output: Fault stopped-service removed.

TLS exchange. Curl shows a certificate with CN=old.lab.test and reports SSL: no alternative certificate subject name matches target host name 'web.lab.test'. Curl closes the connection after refusing the certificate. Its output shows TLS alert, close notify, and the saved capture ends with an RST from laptop.

Start and stop the listener
learner@rootvolt:~$ netlab break wrong-certificate[sudo] password for learner: Fault wrong-certificate applied.learner@rootvolt:~$ netlab shell laptoplearner@laptop:~$ sudo tcpdump -n -i eth0 -w certificate-failure.pcap[sudo] password for learner: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes^C19 packets captured
19 packets received by filter
0 packets dropped by kernellearner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Apply the certificate fault and record the connection.
Steps (17)
  1. Type netlab break wrong-certificate
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: Fault wrong-certificate applied.
  7. Type netlab shell laptop
  8. Press Enter
  9. Type sudo tcpdump -n -i eth0 -w certificate-failure.pcap
  10. Press Enter
  11. Output: [sudo] password for learner:
  12. Type the password (the terminal shows nothing)
  13. Press Enter
  14. Output: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  15. Send the request in terminal 2, wait for curl to finish, then stop the listener here.
  16. Press Ctrl + C
  17. Output: 19 packets captured 19 packets received by filter 0 packets dropped by kernel
Ask curl for the page and read its result
learner@laptop:~$ curl -v --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/* Host web.lab.test:443 was resolved.
* IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80
* IPv4: 10.77.20.80
*   Trying 10.77.20.80:443...
* Connected to web.lab.test (10.77.20.80) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /usr/local/share/netlab/lab-ca.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
*  subject: CN=old.lab.test
*  start date: Dec  2 16:58:02 2026 GMT
*  expire date: Mar  6 16:58:02 2029 GMT
*  subjectAltName does not match web.lab.test
* SSL: no alternative certificate subject name matches target host name 'web.lab.test'
* Closing connection
* TLSv1.3 (OUT), TLS alert, close notify (256):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
curl: (60) SSL: no alternative certificate subject name matches target host name 'web.lab.test'
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.learner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Read the received certificate's subject and curl's name-check error.
Steps (3)
  1. Type curl -v --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/
  2. Press Enter
  3. Output: * Host web.lab.test:443 was resolved. * IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80 * IPv4: 10.77.20.80 * Trying 10.77.20.80:443... * Connected to web.lab.test (10.77.20.80) port 443 * ALPN: curl offers h2,http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /usr/local/share/netlab/lab-ca.crt * CApath: /etc/ssl/certs * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS * ALPN: server did not agree on a protocol. Uses default. * Server certificate: * subject: CN=old.lab.test * start date: Dec 2 16:58:02 2026 GMT * expire date: Mar 6 16:58:02 2029 GMT * subjectAltName does not match web.lab.test * SSL: no alternative certificate subject name matches target host name 'web.lab.test' * Closing connection * TLSv1.3 (OUT), TLS alert, close notify (256): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): curl: (60) SSL: no alternative certificate subject name matches target host name 'web.lab.test' More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.
Read the diagnostic rows and return to the VM
learner@laptop:~$ tshark -r certificate-failure.pcap    1   0.000000 02:77:10:00:00:10 ? Broadcast    ARP 42 Who has 10.77.10.1? Tell 10.77.10.10
    2   0.000094 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01
    3   0.000097  10.77.10.10 ? 10.77.20.53  DNS 72 Standard query 0xaeb6 A web.lab.test
    4   0.000148  10.77.10.10 ? 10.77.20.53  DNS 72 Standard query 0xd6b1 AAAA web.lab.test
    5   0.000363  10.77.20.53 ? 10.77.10.10  DNS 121 Standard query response 0xaeb6 A web.lab.test A 10.77.20.80 NS ns.lab.test
    6   0.000400  10.77.20.53 ? 10.77.10.10  DNS 133 Standard query response 0xd6b1 AAAA web.lab.test AAAA fd85:b2a8:3761:20:77:20ff:fe00:80 NS ns.lab.test
    7   0.000676  10.77.10.10 ? 10.77.20.80  TCP 74 39296 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=1946207689 TSecr=0 WS=1024
    8   0.000715  10.77.20.80 ? 10.77.10.10  TCP 74 443 ? 39296 [SYN, ACK] Seq=0 Ack=1 Win=65160 Len=0 MSS=1460 SACK_PERM TSval=2084597926 TSecr=1946207689 WS=1024
    9   0.000730  10.77.10.10 ? 10.77.20.80  TCP 66 39296 ? 443 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=1946207689 TSecr=2084597926
   10   0.001876  10.77.10.10 ? 10.77.20.80  TLSv1 583 Client Hello (SNI=web.lab.test)
   11   0.001907  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 39296 [ACK] Seq=1 Ack=518 Win=65536 Len=0 TSval=2084597928 TSecr=1946207691
   12   0.002845  10.77.20.80 ? 10.77.10.10  TLSv1.3 1441 Server Hello, Change Cipher Spec, Application Data, Application Data, Application Data, Application Data
   13   0.002871  10.77.10.10 ? 10.77.20.80  TCP 66 39296 ? 443 [ACK] Seq=518 Ack=1376 Win=67584 Len=0 TSval=1946207692 TSecr=2084597929
   14   0.003433  10.77.10.10 ? 10.77.20.80  TLSv1.3 146 Change Cipher Spec, Application Data
   15   0.003557  10.77.20.80 ? 10.77.10.10  TLSv1.3 321 Application Data
   16   0.003559  10.77.10.10 ? 10.77.20.80  TLSv1.3 90 Application Data
   17   0.003645  10.77.10.10 ? 10.77.20.80  TCP 66 39296 ? 443 [FIN, ACK] Seq=622 Ack=1631 Win=70656 Len=0 TSval=1946207692 TSecr=2084597929
   18   0.003664  10.77.20.80 ? 10.77.10.10  TLSv1.3 321 Application Data
   19   0.003686  10.77.10.10 ? 10.77.20.80  TCP 54 39296 ? 443 [RST] Seq=623 Win=0 Len=0learner@laptop:~$ exitlogoutlearner@rootvolt:~$ netlab fixFault wrong-certificate removed.learner@rootvolt:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Find laptop's final reset in the file, then remove the fault.
Steps (9)
  1. Type tshark -r certificate-failure.pcap
  2. Press Enter
  3. Output: 1 0.000000 02:77:10:00:00:10 ? Broadcast ARP 42 Who has 10.77.10.1? Tell 10.77.10.10 2 0.000094 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01 3 0.000097 10.77.10.10 ? 10.77.20.53 DNS 72 Standard query 0xaeb6 A web.lab.test 4 0.000148 10.77.10.10 ? 10.77.20.53 DNS 72 Standard query 0xd6b1 AAAA web.lab.test 5 0.000363 10.77.20.53 ? 10.77.10.10 DNS 121 Standard query response 0xaeb6 A web.lab.test A 10.77.20.80 NS ns.lab.test 6 0.000400 10.77.20.53 ? 10.77.10.10 DNS 133 Standard query response 0xd6b1 AAAA web.lab.test AAAA fd85:b2a8:3761:20:77:20ff:fe00:80 NS ns.lab.test 7 0.000676 10.77.10.10 ? 10.77.20.80 TCP 74 39296 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=1946207689 TSecr=0 WS=1024 8 0.000715 10.77.20.80 ? 10.77.10.10 TCP 74 443 ? 39296 [SYN, ACK] Seq=0 Ack=1 Win=65160 Len=0 MSS=1460 SACK_PERM TSval=2084597926 TSecr=1946207689 WS=1024 9 0.000730 10.77.10.10 ? 10.77.20.80 TCP 66 39296 ? 443 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=1946207689 TSecr=2084597926 10 0.001876 10.77.10.10 ? 10.77.20.80 TLSv1 583 Client Hello (SNI=web.lab.test) 11 0.001907 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 39296 [ACK] Seq=1 Ack=518 Win=65536 Len=0 TSval=2084597928 TSecr=1946207691 12 0.002845 10.77.20.80 ? 10.77.10.10 TLSv1.3 1441 Server Hello, Change Cipher Spec, Application Data, Application Data, Application Data, Application Data 13 0.002871 10.77.10.10 ? 10.77.20.80 TCP 66 39296 ? 443 [ACK] Seq=518 Ack=1376 Win=67584 Len=0 TSval=1946207692 TSecr=2084597929 14 0.003433 10.77.10.10 ? 10.77.20.80 TLSv1.3 146 Change Cipher Spec, Application Data 15 0.003557 10.77.20.80 ? 10.77.10.10 TLSv1.3 321 Application Data 16 0.003559 10.77.10.10 ? 10.77.20.80 TLSv1.3 90 Application Data 17 0.003645 10.77.10.10 ? 10.77.20.80 TCP 66 39296 ? 443 [FIN, ACK] Seq=622 Ack=1631 Win=70656 Len=0 TSval=1946207692 TSecr=2084597929 18 0.003664 10.77.20.80 ? 10.77.10.10 TLSv1.3 321 Application Data 19 0.003686 10.77.10.10 ? 10.77.20.80 TCP 54 39296 ? 443 [RST] Seq=623 Win=0 Len=0
  4. Type exit
  5. Press Enter
  6. Output: logout
  7. Type netlab fix
  8. Press Enter
  9. Output: Fault wrong-certificate removed.

HTTP response. The TLS connection carries protected data. The capture cannot show the status inside it. Curl receives 404 over the working connection.

Start and stop the listener
learner@rootvolt:~$ netlab shell laptop[sudo] password for learner: learner@laptop:~$ sudo tcpdump -n -i eth0 -w missing-page.pcap[sudo] password for learner: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes^C25 packets captured
25 packets received by filter
0 packets dropped by kernellearner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Record the request for a missing file.
Steps (14)
  1. Type netlab shell laptop
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Type sudo tcpdump -n -i eth0 -w missing-page.pcap
  7. Press Enter
  8. Output: [sudo] password for learner:
  9. Type the password (the terminal shows nothing)
  10. Press Enter
  11. Output: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  12. Send the request in terminal 2, wait for curl to finish, then stop the listener here.
  13. Press Ctrl + C
  14. Output: 25 packets captured 25 packets received by filter 0 packets dropped by kernel
Ask curl for the page and read its result
learner@laptop:~$ curl -sS -o /dev/null -w '%{http_code}\n' --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/nothing.txt404learner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Read the HTTP status at the client.
Steps (3)
  1. Type curl -sS -o /dev/null -w '%{http_code}\n' --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/nothing.txt
  2. Press Enter
  3. Output: 404
Read the diagnostic rows and return to the VM
learner@laptop:~$ tshark -r missing-page.pcap    1   0.000000 02:77:10:00:00:10 ? Broadcast    ARP 42 Who has 10.77.10.1? Tell 10.77.10.10
    2   0.000047 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01
    3   0.000049  10.77.10.10 ? 10.77.20.53  DNS 72 Standard query 0x3157 A web.lab.test
    4   0.000090  10.77.10.10 ? 10.77.20.53  DNS 72 Standard query 0x4a54 AAAA web.lab.test
    5   0.000349  10.77.20.53 ? 10.77.10.10  DNS 121 Standard query response 0x3157 A web.lab.test A 10.77.20.80 NS ns.lab.test
    6   0.000377  10.77.20.53 ? 10.77.10.10  DNS 133 Standard query response 0x4a54 AAAA web.lab.test AAAA fd85:b2a8:3761:20:77:20ff:fe00:80 NS ns.lab.test
    7   0.000550  10.77.10.10 ? 10.77.20.80  TCP 74 49734 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=1313335617 TSecr=0 WS=1024
    8   0.000588  10.77.20.80 ? 10.77.10.10  TCP 74 443 ? 49734 [SYN, ACK] Seq=0 Ack=1 Win=65160 Len=0 MSS=1460 SACK_PERM TSval=418900712 TSecr=1313335617 WS=1024
    9   0.000603  10.77.10.10 ? 10.77.20.80  TCP 66 49734 ? 443 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=1313335617 TSecr=418900712
   10   0.001693  10.77.10.10 ? 10.77.20.80  TLSv1 583 Client Hello (SNI=web.lab.test)
   11   0.001742  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 49734 [ACK] Seq=1 Ack=518 Win=65536 Len=0 TSval=418900713 TSecr=1313335618
   12   0.002734  10.77.20.80 ? 10.77.10.10  TLSv1.3 1463 Server Hello, Change Cipher Spec, Application Data, Application Data, Application Data, Application Data
   13   0.002760  10.77.10.10 ? 10.77.20.80  TCP 66 49734 ? 443 [ACK] Seq=518 Ack=1398 Win=67584 Len=0 TSval=1313335619 TSecr=418900714
   14   0.003204  10.77.10.10 ? 10.77.20.80  TLSv1.3 146 Change Cipher Spec, Application Data
   15   0.003412  10.77.10.10 ? 10.77.20.80  TLSv1.3 174 Application Data
   16   0.003435  10.77.20.80 ? 10.77.10.10  TLSv1.3 321 Application Data
   17   0.047422  10.77.10.10 ? 10.77.20.80  TCP 66 49734 ? 443 [ACK] Seq=706 Ack=1653 Win=70656 Len=0 TSval=1313335664 TSecr=418900715
   18   0.047502  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 49734 [ACK] Seq=1653 Ack=706 Win=65536 Len=0 TSval=418900759 TSecr=1313335620
   19   0.047526  10.77.20.80 ? 10.77.10.10  TLSv1.3 895 Application Data, Application Data, Application Data, Application Data
   20   0.047551  10.77.10.10 ? 10.77.20.80  TCP 66 49734 ? 443 [ACK] Seq=706 Ack=2482 Win=73728 Len=0 TSval=1313335664 TSecr=418900759
   21   0.047769  10.77.10.10 ? 10.77.20.80  TLSv1.3 90 Application Data
   22   0.047827  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 49734 [ACK] Seq=2482 Ack=730 Win=65536 Len=0 TSval=418900759 TSecr=1313335664
   23   0.047879  10.77.10.10 ? 10.77.20.80  TCP 66 49734 ? 443 [FIN, ACK] Seq=730 Ack=2482 Win=73728 Len=0 TSval=1313335664 TSecr=418900759
   24   0.048033  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 49734 [FIN, ACK] Seq=2482 Ack=731 Win=65536 Len=0 TSval=418900759 TSecr=1313335664
   25   0.048075  10.77.10.10 ? 10.77.20.80  TCP 66 49734 ? 443 [ACK] Seq=731 Ack=2483 Win=73728 Len=0 TSval=1313335664 TSecr=418900759learner@laptop:~$ exitlogoutlearner@rootvolt:~$ netlab fixNo fault is applied.learner@rootvolt:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Find the protected exchange in the file and check the lab state.
Steps (9)
  1. Type tshark -r missing-page.pcap
  2. Press Enter
  3. Output: 1 0.000000 02:77:10:00:00:10 ? Broadcast ARP 42 Who has 10.77.10.1? Tell 10.77.10.10 2 0.000047 02:77:10:00:00:01 ? 02:77:10:00:00:10 ARP 42 10.77.10.1 is at 02:77:10:00:00:01 3 0.000049 10.77.10.10 ? 10.77.20.53 DNS 72 Standard query 0x3157 A web.lab.test 4 0.000090 10.77.10.10 ? 10.77.20.53 DNS 72 Standard query 0x4a54 AAAA web.lab.test 5 0.000349 10.77.20.53 ? 10.77.10.10 DNS 121 Standard query response 0x3157 A web.lab.test A 10.77.20.80 NS ns.lab.test 6 0.000377 10.77.20.53 ? 10.77.10.10 DNS 133 Standard query response 0x4a54 AAAA web.lab.test AAAA fd85:b2a8:3761:20:77:20ff:fe00:80 NS ns.lab.test 7 0.000550 10.77.10.10 ? 10.77.20.80 TCP 74 49734 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=1313335617 TSecr=0 WS=1024 8 0.000588 10.77.20.80 ? 10.77.10.10 TCP 74 443 ? 49734 [SYN, ACK] Seq=0 Ack=1 Win=65160 Len=0 MSS=1460 SACK_PERM TSval=418900712 TSecr=1313335617 WS=1024 9 0.000603 10.77.10.10 ? 10.77.20.80 TCP 66 49734 ? 443 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=1313335617 TSecr=418900712 10 0.001693 10.77.10.10 ? 10.77.20.80 TLSv1 583 Client Hello (SNI=web.lab.test) 11 0.001742 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 49734 [ACK] Seq=1 Ack=518 Win=65536 Len=0 TSval=418900713 TSecr=1313335618 12 0.002734 10.77.20.80 ? 10.77.10.10 TLSv1.3 1463 Server Hello, Change Cipher Spec, Application Data, Application Data, Application Data, Application Data 13 0.002760 10.77.10.10 ? 10.77.20.80 TCP 66 49734 ? 443 [ACK] Seq=518 Ack=1398 Win=67584 Len=0 TSval=1313335619 TSecr=418900714 14 0.003204 10.77.10.10 ? 10.77.20.80 TLSv1.3 146 Change Cipher Spec, Application Data 15 0.003412 10.77.10.10 ? 10.77.20.80 TLSv1.3 174 Application Data 16 0.003435 10.77.20.80 ? 10.77.10.10 TLSv1.3 321 Application Data 17 0.047422 10.77.10.10 ? 10.77.20.80 TCP 66 49734 ? 443 [ACK] Seq=706 Ack=1653 Win=70656 Len=0 TSval=1313335664 TSecr=418900715 18 0.047502 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 49734 [ACK] Seq=1653 Ack=706 Win=65536 Len=0 TSval=418900759 TSecr=1313335620 19 0.047526 10.77.20.80 ? 10.77.10.10 TLSv1.3 895 Application Data, Application Data, Application Data, Application Data 20 0.047551 10.77.10.10 ? 10.77.20.80 TCP 66 49734 ? 443 [ACK] Seq=706 Ack=2482 Win=73728 Len=0 TSval=1313335664 TSecr=418900759 21 0.047769 10.77.10.10 ? 10.77.20.80 TLSv1.3 90 Application Data 22 0.047827 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 49734 [ACK] Seq=2482 Ack=730 Win=65536 Len=0 TSval=418900759 TSecr=1313335664 23 0.047879 10.77.10.10 ? 10.77.20.80 TCP 66 49734 ? 443 [FIN, ACK] Seq=730 Ack=2482 Win=73728 Len=0 TSval=1313335664 TSecr=418900759 24 0.048033 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 49734 [FIN, ACK] Seq=2482 Ack=731 Win=65536 Len=0 TSval=418900759 TSecr=1313335664 25 0.048075 10.77.10.10 ? 10.77.20.80 TCP 66 49734 ? 443 [ACK] Seq=731 Ack=2483 Win=73728 Len=0 TSval=1313335664 TSecr=418900759
  4. Type exit
  5. Press Enter
  6. Output: logout
  7. Type netlab fix
  8. Press Enter
  9. Output: No fault is applied.

Does a successful TLS exchange guarantee a successful HTTP response?

Check your answer

No. The missing-file request went through a successful TLS exchange and the server still returned 404. TLS protects the response, including an error response.

  • Keep a working capture to compare against your failed exchanges.
  • Find the earliest stage that failed and write down the evidence.
  • Read HTTP results inside HTTPS at the client.

Next, IPv6 Foundations revisits addresses and local discovery. It is still in preparation.