2 Feature: Spoofing MAC addresses
3 In order to not reveal information about the physical location
5 I want to be able to control whether my network devices MAC addresses should be spoofed
6 And I want this feature to fail safe and notify me in case of errors
9 Given I have started Tails from DVD without network and stopped at Tails Greeter's login screen
10 And I capture all network traffic
11 And the network is plugged
13 Scenario: MAC address spoofing is disabled
14 When I disable MAC spoofing in Tails Greeter
15 And I log in to a new session
17 Then 1 network interface is enabled
18 And the 1st network device has its real MAC address configured
19 When I hotplug a network device and wait for it to be initialized
20 Then 2 network interfaces are enabled
21 And the 2nd network device has its real MAC address configured
22 And some network device leaked the real MAC address
24 Scenario: MAC address spoofing is successful
25 When I log in to a new session
27 Then 1 network interface is enabled
28 And the 1st network device has a spoofed MAC address configured
29 When I hotplug a network device and wait for it to be initialized
30 Then 2 network interfaces are enabled
31 And the 2nd network device has a spoofed MAC address configured
32 And no network device leaked the real MAC address
36 Scenario: MAC address spoofing fails and macchanger returns false
37 Given macchanger will fail by not spoofing and always returns false
38 When I log in to a new session
39 # XXX: workaround for #11941
40 And I see the "Network card disabled" notification after at most 60 seconds
41 Then no network interfaces are enabled
42 And no network device leaked the real MAC address
46 Scenario: MAC address spoofing fails and macchanger returns true
47 Given macchanger will fail by not spoofing and always returns true
48 When I log in to a new session
49 # XXX: workaround for #11941
50 And I see the "Network card disabled" notification after at most 60 seconds
51 Then no network interfaces are enabled
52 And no network device leaked the real MAC address
56 Scenario: MAC address spoofing fails and the module is not removed
57 Given macchanger will fail by not spoofing and always returns true
58 And no network interface modules can be unloaded
59 When I log in to a new session
60 And I see the "All networking disabled" notification after at most 60 seconds
61 Then 1 network interface is enabled
62 But the MAC spoofing panic mode disabled networking
63 And no network device leaked the real MAC address
65 Scenario: The MAC address is not leaked when booting Tails
67 And I capture all network traffic
68 When I start the computer
69 Then the computer boots Tails
70 And no network interfaces are enabled
71 And no network device leaked the real MAC address