Merge remote-tracking branch 'muri/de-doc-first_steps-persistence'
[tails/matsa.git] / features / firewall_leaks.feature
blob775c6e135615bbeeefa018e9d8a9483cbc3b21f5
1 @product
2 Feature:
3   As a Tails developer
4   I want to ensure that the automated test suite detects firewall leaks reliably
6   Background:
7     Given a computer
8     And I capture all network traffic
9     And I start the computer
10     And the computer boots Tails
11     And I log in to a new session
12     And Tor is ready
13     And all notifications have disappeared
14     And available upgrades have been checked
15     And all Internet traffic has only flowed through Tor
16     And I save the state so the background can be restored next scenario
18   Scenario: Detecting IPv4 TCP leaks from the Unsafe Browser
19     When I successfully start the Unsafe Browser
20     And I open the address "https://check.torproject.org" in the Unsafe Browser
21     And I see "UnsafeBrowserTorCheckFail.png" after at most 60 seconds
22     Then the firewall leak detector has detected IPv4 TCP leaks
24   Scenario: Detecting IPv4 TCP leaks of TCP DNS lookups
25     Given I disable Tails' firewall
26     When I do a TCP DNS lookup of "torproject.org"
27     Then the firewall leak detector has detected IPv4 TCP leaks
29   Scenario: Detecting IPv4 non-TCP leaks (UDP) of UDP DNS lookups
30     Given I disable Tails' firewall
31     When I do a UDP DNS lookup of "torproject.org"
32     Then the firewall leak detector has detected IPv4 non-TCP leaks
34   Scenario: Detecting IPv4 non-TCP (ICMP) leaks of ping
35     Given I disable Tails' firewall
36     When I send some ICMP pings
37     Then the firewall leak detector has detected IPv4 non-TCP leaks