1 00:00:00,000 --> 00:00:01,770 -: Welcome back. 2 00:00:01,770 --> 00:00:03,600 In the last lecture we talked 3 00:00:03,600 --> 00:00:07,080 about configuring our Kali Linux network settings 4 00:00:07,080 --> 00:00:08,910 to have internet connection 5 00:00:08,910 --> 00:00:11,340 inside of our Kali Linux machine. 6 00:00:11,340 --> 00:00:14,220 Now let's see whether that is set properly. 7 00:00:14,220 --> 00:00:15,750 And in case it isn't, 8 00:00:15,750 --> 00:00:19,170 let's see what we can do to get network connectivity 9 00:00:19,170 --> 00:00:21,330 within our Kali Linux machine. 10 00:00:21,330 --> 00:00:23,790 So a quick reminder, last lecture, 11 00:00:23,790 --> 00:00:25,920 we selected our Kali Linux machine. 12 00:00:25,920 --> 00:00:30,090 We went on settings, we went on network settings 13 00:00:30,090 --> 00:00:34,800 and we chose bridged adapter for our Kali Linux machine. 14 00:00:34,800 --> 00:00:38,756 Now to check whether that works, we can type, once again 15 00:00:38,756 --> 00:00:42,750 ifconfig inside of our terminal that we can open 16 00:00:42,750 --> 00:00:44,970 by clicking on this icon right here 17 00:00:44,970 --> 00:00:47,370 which is the terminal icon. 18 00:00:47,370 --> 00:00:50,850 And under the ETH0 interface 19 00:00:50,850 --> 00:00:53,490 we should get our IPV4 address 20 00:00:53,490 --> 00:00:58,290 that should belong to our network's IP range. 21 00:00:58,290 --> 00:01:00,390 If you do get it, that's good. 22 00:01:00,390 --> 00:01:01,680 If you don't get it 23 00:01:01,680 --> 00:01:05,430 or if you don't get any IP address at all right here, 24 00:01:05,430 --> 00:01:07,800 then we must change something. 25 00:01:07,800 --> 00:01:09,480 But before we do that 26 00:01:09,480 --> 00:01:14,480 we want to also check whether we can ping, let's say Google. 27 00:01:15,390 --> 00:01:19,200 Or any IP address or any website whatsoever. 28 00:01:19,200 --> 00:01:21,870 As you can see, I am receiving responses 29 00:01:21,870 --> 00:01:24,090 right here from Google, so that is good. 30 00:01:24,090 --> 00:01:26,370 I am also getting an IP4 address 31 00:01:26,370 --> 00:01:28,260 that belongs to my network range. 32 00:01:28,260 --> 00:01:30,480 So both of these things are good 33 00:01:30,480 --> 00:01:34,620 and I can proceed to the next lecture with bridge adapter. 34 00:01:34,620 --> 00:01:37,860 If both of these also work for you, feel free to continue 35 00:01:37,860 --> 00:01:39,810 and you can skip the rest of this lecture 36 00:01:39,810 --> 00:01:42,030 and just move on to the next one. 37 00:01:42,030 --> 00:01:45,810 If your bridged adapter, however, is causing some issues, 38 00:01:45,810 --> 00:01:48,930 whether that being your IP not being present here 39 00:01:48,930 --> 00:01:52,290 or you're not getting any packets back from Google 40 00:01:52,290 --> 00:01:55,200 or any other website or IP address, 41 00:01:55,200 --> 00:01:58,680 then we have to change our network settings. 42 00:01:58,680 --> 00:02:01,770 So go back the VirtualBox window, 43 00:02:01,770 --> 00:02:05,580 select your virtual machine or your Kali Linux machine, 44 00:02:05,580 --> 00:02:06,873 go to settings. 45 00:02:08,170 --> 00:02:12,330 And another option that we can go besides bridge adapter 46 00:02:12,330 --> 00:02:14,250 in case bridge adapter doesn't work. 47 00:02:14,250 --> 00:02:16,380 So always go first with bridge adapter, 48 00:02:16,380 --> 00:02:21,180 but in case it doesn't work, we want to go with NAT network. 49 00:02:21,180 --> 00:02:23,580 So don't confuse it with NAT. 50 00:02:23,580 --> 00:02:28,170 We are not choosing just NAT, we want to choose NAT network. 51 00:02:28,170 --> 00:02:29,760 And here you will notice 52 00:02:29,760 --> 00:02:32,160 that we don't have NAT network selected. 53 00:02:32,160 --> 00:02:35,730 That is because we haven't created one yet. 54 00:02:35,730 --> 00:02:36,930 But before we create it, 55 00:02:36,930 --> 00:02:40,080 let's just quickly explain what NAT network is. 56 00:02:40,080 --> 00:02:42,630 Essentially, NAT Network allows us 57 00:02:42,630 --> 00:02:44,710 to have a separate network 58 00:02:45,638 --> 00:02:48,120 where our virtual machine will be connected to 59 00:02:48,120 --> 00:02:51,570 and later on, once we create multiple virtual machines, 60 00:02:51,570 --> 00:02:54,360 we can put several different virtual machines 61 00:02:54,360 --> 00:02:56,130 onto the same NAT network 62 00:02:56,130 --> 00:02:58,410 and they will be able to communicate 63 00:02:58,410 --> 00:03:00,180 with one another. 64 00:03:00,180 --> 00:03:03,060 If we just leave it on NAT, which is the default 65 00:03:03,060 --> 00:03:04,230 then our virtual machine 66 00:03:04,230 --> 00:03:06,300 will most likely have internet connection, 67 00:03:06,300 --> 00:03:09,870 but it will not be able to communicate with machines 68 00:03:09,870 --> 00:03:12,870 inside of our network. 69 00:03:12,870 --> 00:03:17,870 Okay, if we select NAT network, let's click on cancel first 70 00:03:17,910 --> 00:03:19,470 so we can create it, 71 00:03:19,470 --> 00:03:22,950 and to create the NAT network, we want to click on tools, 72 00:03:22,950 --> 00:03:27,950 we want to click on preferences, we want to go to network. 73 00:03:27,990 --> 00:03:30,690 And here under the NAT networks 74 00:03:30,690 --> 00:03:33,510 we want to click on this plus sign, 75 00:03:33,510 --> 00:03:37,563 which will generate the NAT network for us. 76 00:03:38,580 --> 00:03:40,320 If I double click it 77 00:03:40,320 --> 00:03:43,530 it'll also give us the information about the NAT network. 78 00:03:43,530 --> 00:03:46,740 And if you want, you can change certain things right here 79 00:03:46,740 --> 00:03:49,140 such as whether you support IP6, 80 00:03:49,140 --> 00:03:51,690 or you want to change the range of your network. 81 00:03:51,690 --> 00:03:55,140 It doesn't matter, the network name, it's all up to you. 82 00:03:55,140 --> 00:03:57,900 I will just leave all of this on default 83 00:03:57,900 --> 00:03:59,673 and I will click on okay. 84 00:04:00,900 --> 00:04:03,060 I will also click on okay here. 85 00:04:03,060 --> 00:04:04,620 And all I have to do 86 00:04:04,620 --> 00:04:08,040 is go back to settings of my Kali Linux virtual machine. 87 00:04:08,040 --> 00:04:09,690 Go back to the network settings 88 00:04:09,690 --> 00:04:12,840 and switch from bridge adapter to NAT network. 89 00:04:12,840 --> 00:04:15,390 And now you will see that under the name 90 00:04:15,390 --> 00:04:17,853 we have our NAT network selected. 91 00:04:18,839 --> 00:04:23,840 Once I click okay, it will save the settings. 92 00:04:23,970 --> 00:04:27,363 I will now reboot my virtual machine. 93 00:04:28,950 --> 00:04:30,873 Let's give it a restart. 94 00:04:32,520 --> 00:04:37,520 So here it is, our Kali Linux or my Kali Linux has rebooted. 95 00:04:38,070 --> 00:04:41,040 And now let's see whether we do get an IP address 96 00:04:41,040 --> 00:04:45,480 and whether we can ping websites from our Kali Linux. 97 00:04:45,480 --> 00:04:47,160 So first thing we do, once again, 98 00:04:47,160 --> 00:04:49,480 we open terminal by clicking here 99 00:04:51,000 --> 00:04:55,740 and if I type ifconfig, now we get a different IP address, 100 00:04:55,740 --> 00:05:00,420 which is the IP address from the NAT network right here, 101 00:05:00,420 --> 00:05:01,860 which is good. 102 00:05:01,860 --> 00:05:05,730 And yours might be different just so you know. 103 00:05:05,730 --> 00:05:07,830 It doesn't have to be the same as mine. 104 00:05:07,830 --> 00:05:11,790 And the second test that we perform is we ping Google 105 00:05:11,790 --> 00:05:14,670 or we ping any other website or IP address 106 00:05:14,670 --> 00:05:17,160 and we are getting response back 107 00:05:17,160 --> 00:05:20,490 so our NAT network works properly. 108 00:05:20,490 --> 00:05:22,110 Okay, awesome. 109 00:05:22,110 --> 00:05:25,830 That would be all when configuring network settings. 110 00:05:25,830 --> 00:05:28,320 Now two things to take away from this lecture 111 00:05:28,320 --> 00:05:33,180 and previous lecture are if your network settings 112 00:05:33,180 --> 00:05:36,003 work well with bridge adapter, 113 00:05:36,840 --> 00:05:40,020 then proceed with the bridge adapter here 114 00:05:40,020 --> 00:05:42,120 and for any future virtual machine 115 00:05:42,120 --> 00:05:44,460 that we create throughout the course. 116 00:05:44,460 --> 00:05:47,370 If you have problems with bridge adapter, 117 00:05:47,370 --> 00:05:49,410 whether that being not having an IP address 118 00:05:49,410 --> 00:05:51,810 or not being able to browse Firefox 119 00:05:51,810 --> 00:05:54,081 or not being able to ping any website 120 00:05:54,081 --> 00:05:57,819 then proceed by going onto the NAT network. 121 00:05:57,819 --> 00:05:59,850 Configure the NAT network 122 00:05:59,850 --> 00:06:02,640 which we did from tools and then preferences 123 00:06:02,640 --> 00:06:06,840 and then select the NAT network here, reboot your machine 124 00:06:06,840 --> 00:06:10,710 and it should have the NAT network's IP address. 125 00:06:10,710 --> 00:06:13,923 As well as it should be able to ping different websites. 126 00:06:14,850 --> 00:06:17,160 The same thing should be applied 127 00:06:17,160 --> 00:06:20,850 for any future VM that we create throughout the course. 128 00:06:20,850 --> 00:06:23,310 If your Kali Linux is on NAT network 129 00:06:23,310 --> 00:06:26,880 the other virtual machines should also be on NAT network 130 00:06:26,880 --> 00:06:29,970 in order for them to communicate. 131 00:06:29,970 --> 00:06:31,489 Nonetheless, thank you for watching 132 00:06:31,489 --> 00:06:33,753 and I will see you in the next lecture.