Commit Graph

904 Commits

Author SHA1 Message Date
fded1f454a Add functions to find the devices connected to this device 2019-03-06 09:43:39 +03:00
a72aec9f9a At least with this added test, the student must find and fix the hidden laptop. Not enough to solve the problem, but a step in the right direction. This test works because it requires the IP address to be unique. 2019-02-28 09:57:14 -06:00
bed1a8a846 When the router needs to be replaced, it should not have the correct routes. You should need to add the right IP addresses and routes both. 2019-02-28 09:01:05 -06:00
9bf9d58c48 IPAE: DNS lookup provides subnet mask as well as IP
If the user types in a name in the IP Address Entry form,
       also replace the subnet mask.

       This is particularly useful for pinging, since ping doesn't
       allow access to the subnet mask field, and if an inappropriate
       mask is autoIP-entered, then the results might be unexpected.

       Exception for DHCP ranges: Actually, it shouldn't be necessary
       (since the IP address field is disabled for DHCP), but just
       for completeness, I ensure that the second field is not altered
       for DHCP range entries.

       Scenario: Level4, Small Subnets
       1.) fix router2, so the subnet mask is /30
       2.) from pc1, ping pc2 (which is address 192.168.1.3)
                       -lastIP sets subnet mask to 255.255.255.252
                       -that makes .3 the broadcast address
       -fix result: lastIP mask is replaced by pc2's real mask.
2019-02-27 10:16:59 -06:00
2a17fba36c broadcast address only applies to correct subnet
Ultimately, the problem stemmed from a ping to an address
       with the wrong subnet mask (auto-filled subnet) which turned
       the address (which should have been routed) into a local broadcast.
       Only the global broadcast, or a local broadcast should be accepted,
       not a broadcast that should be routed.

       This can be seen in Level 4, Small Subnets puzzle.
       1.) fix router2 to be /31
       2.) from pc1, ping pc2 (which turns into 192.168.1.3)
                       -autoIP filled in a subnet mask of 255.255.255.252
                       -therefore 1.3 is considered the broadcast IP.
       -result: a local broadcast on the 192.168.2 network.
       3.) from pc1, ping 192.168.1.1 or 192.168.1.4 works fine.
       4.) edit firewall1, edit route to 192.168.1.1
                       -make no changes, just hit OK
       5.) again from pc1 ping pc2
                       -now autoIP fills in subnet mask 255.255.255.0
       -result: it works
2019-02-27 08:41:58 -06:00
886e1d7911 allow DHCP range to cancel
The problem is easily seen most times when a DHCP range is canceled.
       The cancel completely fails to work, and refuses to cancel until
       correct values are put in start and end. (However, pressing the ESC
       key sometimes helped.)
2019-02-23 12:20:24 -06:00
06eb896558 cancel should also cancel auto-filled lastIP values
The problem is seen in the first puzzle if you ping
       pc0, and then edit the 0.0.0.0 gateway.   It auto-fills in
       the last-used pc0 IP address, and canceling saves that change
       instead of leaving the gateway at 0.0.0.0.

       lastIP nicely saves some typing (although it has also confused
       my student quite a bit I think), but since it updates WhatToEdit,
       that becomes the "saved" value even during a cancel.

       Instead, save the original value as a copy, and set back to
       the original value when cancellng.

       Perhaps it would be worth creating a reparse( NB_IPAddress)
       function, but this was easy to just hack together.

       Tested by pinging pc0, then editing the gateway and cancellng,
       editing the IP address and canceling.

       Next: don't add a canceled route
2019-02-23 12:16:04 -06:00
ddebafeec9 don't add a canceled, empty route
This was especially bad when lastIP filled in default values,
       so this patch pretty much depends on the patch that cancels
       the auto-filled lastIP.

       This didn't cause a problem - it just cluttered up the routing
       table with duplicate, undeletable routes.
2019-02-23 12:08:01 -06:00
2ae5781bea Don't crash when adding a NIC to a PC/server (Justin) 2019-02-23 12:06:24 -06:00
fa163b3d21 ubuntu 18.04 2019-02-22 14:24:45 -06:00
5e916e82a4 Hopefully correct the READ.md file so it displays properly and has the right info. 2019-02-22 13:26:06 -06:00
7c292f5b7d Justin Luth:
ping source is firewall ? set sourceIP to vpn IP address

       The problem can be seen easily in Puzzle 2, VPN Demo.
       From firewall2, ping firewall0. The ping request tunnels
       to firewall0 with a source address of 0.0.0.0, and so
       the reply returns untunneled and drops at the default gateway.

       This patch probably needs to be tweaked a bit in case it
       covers too many situations, but in general something like
       this is needed.
2019-02-22 13:15:43 -06:00
110a751d25 Add time-based delay to slow packet movement on super-fast computers 2019-01-23 08:24:30 -06:00
c66aa99a28 Adding entry for next version number in preparation for adding release note documentation as we make changes. 2018-10-23 11:47:03 -05:00
36dd9639b3 Update to version number from publishing 2018-10-23 11:46:07 -05:00
9de1acf82f A trivial update to the release notes 2018-10-23 11:45:49 -05:00
408e769631 Update version number for publishing 2018-10-23 11:44:34 -05:00
d1e3a4dda9 Update release notes 2018-10-23 09:03:51 -05:00
bf820055ca When doing multiple regression tests, add a counter to the name so we see a status. 2018-10-23 08:52:28 -05:00
facd5d1ea1 Able to change gateway if device has both DHCP and ethernet, but the ethernet is the one plugged in. 2018-10-23 08:25:04 -05:00
2b92fea4cb Do not check firewall rules if the firewall is disabled 2018-10-23 08:01:43 -05:00
c8c66970d0 Get reload to work properly 2018-10-23 07:57:02 -05:00
e6e6328eca Start regression window with untested and failed checked. 2018-10-17 16:58:03 -05:00
59d8fd7e47 Level 6 regression testing completed 2018-10-17 16:56:06 -05:00
8d848eaa39 select the first unfinished puzzle on the level if one is available 2018-10-17 16:23:13 -05:00
b74f9932bb Fix bug with replays and VLANs 2018-10-17 15:23:30 -05:00
811339b176 Network timeout during replay 2018-10-17 14:56:28 -05:00
17b127d69d Fix a bug where resetting a switch did not reset the vlans on the switch 2018-10-17 14:38:42 -05:00
f2c2f9bb96 Level 5 replays 2018-10-16 12:52:01 -05:00
b6d2eb0a60 Some of level 5 2018-10-12 17:38:36 -05:00
48bf63b967 Replays for level 4 2018-10-11 15:08:17 -05:00
b623ebd9ec Fix some duplication when things added. 2018-10-11 14:44:18 -05:00
d0fcba7854 Level 3 replays 2018-10-11 11:24:26 -05:00
27a29ff44f Some older replays which were skipped 2018-10-10 16:15:45 -05:00
258bff6ce7 Finish level2 replays. 2018-10-10 16:11:55 -05:00
cf83771a7d More regression testing for puzzles 2018-10-08 11:54:16 -05:00
2ca9ddce19 Fix reporting bug when doing replay 2018-10-08 11:52:53 -05:00
de5acab132 Make reload work for all puzzles. We want to use that when making replays. It is nice to reload it once we know the solution so we can save a clean replay. 2018-10-05 13:58:54 -05:00
bee42488d2 Refresh the form after one test to show passed / failed 2018-10-05 13:28:49 -05:00
92246a3dac Add file -> forget replay statuses. So we can reset our replays. 2018-10-05 13:24:47 -05:00
d838fe1987 Add a clear replay status function 2018-10-05 13:06:53 -05:00
aa78fa5aca centralize passed/failed tracking 2018-10-05 13:00:04 -05:00
eec743d9c6 Update puzzles passed / failed 2018-10-05 12:53:38 -05:00
00d78684a2 Load puzzles passed/failed 2018-10-05 12:48:27 -05:00
c25e3fd666 make sure UserActions are not serialized 2018-10-05 12:47:18 -05:00
47790c1de1 Add PuzzlesPassed and PuzzlesFailed to settings. 2018-10-05 12:43:57 -05:00
3865794d81 Only allow regression testing if we are not a student. 2018-10-05 11:04:19 -05:00
4c25bf4721 Turning off debugging 2018-10-05 10:52:30 -05:00
0cdb4855ad Update the actiondebug. 2018-10-05 10:51:22 -05:00
b4e828162a refresh the form instead of doing full do-events. Much, much quicker that way. 2018-10-05 10:45:30 -05:00