1 00:00:27,740 --> 00:00:29,500 Transcription by ESO. Translation by — 2 00:00:40,560 --> 00:00:59,900 Transcription by ESO. Translation by — 3 00:01:03,060 --> 00:01:29,780 Transcription by ESO. Translation by — 4 00:01:38,600 --> 00:01:59,980 Transcription by ESO. Translation by — 5 00:02:00,000 --> 00:02:02,580 Transcription by ESO. Translation by — 6 00:02:31,760 --> 00:02:59,900 Transcription by ESO. Translation by — 7 00:03:00,000 --> 00:03:01,200 Transcription by ESO. Translation by — 8 00:03:38,700 --> 00:03:56,720 Transcription by ESO. Translation by — 9 00:04:06,020 --> 00:04:29,980 Transcription by ESO. Translation by — 10 00:04:31,260 --> 00:04:31,420 Transcription by ESO. Translation by — 11 00:05:00,000 --> 00:05:01,340 Transcription by ESO. Translation by — 12 00:05:30,000 --> 00:05:31,680 Transcription by ESO. Translation by — 13 00:06:00,880 --> 00:06:02,100 Transcription by ESO. Translation by — 14 00:06:30,160 --> 00:06:31,980 Transcription by ESO. Translation by — 15 00:06:36,000 --> 00:06:38,740 Transcription by ESO. Translation by — 16 00:06:43,440 --> 00:06:45,320 Transcription by — 17 00:06:46,700 --> 00:06:48,480 Transcription by ESO. Translation by — 18 00:06:48,480 --> 00:06:49,560 Transcription by ESO. Translation by — 19 00:06:49,560 --> 00:06:49,820 Transcription by — 20 00:06:49,820 --> 00:06:51,600 Transcription by ESO. Translation by — 21 00:06:51,600 --> 00:06:51,620 Transcription by — 22 00:06:51,620 --> 00:06:51,640 Transcription by — 23 00:06:51,640 --> 00:06:51,840 Transcription by — 24 00:06:51,840 --> 00:06:51,860 Transcription by — 25 00:06:51,860 --> 00:06:52,320 Transcription by — 26 00:06:52,320 --> 00:06:52,920 Transcription by — 27 00:06:52,920 --> 00:06:54,040 Transcription by — 28 00:06:54,040 --> 00:06:54,580 Transcription by — 29 00:06:55,600 --> 00:06:56,620 Transcription by — 30 00:06:56,620 --> 00:06:58,700 Transcription by — 31 00:06:59,620 --> 00:07:09,560 Net. Debugged an internet connectivity problem. Okay, be careful now. Brought down Yahoo with 32 00:07:09,560 --> 00:07:21,560 a DDoS attack. Okay, just a few of you. Here is one possible definition of NAT. I couldn't 33 00:07:21,560 --> 00:07:26,760 find anything official or formal on the internet anywhere, so I'm sort of making this up. The 34 00:07:26,760 --> 00:07:32,360 assigning of two different IP addresses to the same TCP IP host, a public one to be used when 35 00:07:32,360 --> 00:07:37,360 accessing the host from inside the security perimeter, and a private one to be used when 36 00:07:37,360 --> 00:07:43,560 accessing the host from outside the security perimeter. So as you all probably know, the basic 37 00:07:43,560 --> 00:07:50,220 concept of NAT is that you establish a security perimeter around your organization and use 38 00:07:50,220 --> 00:07:55,100 different IP addresses on the inside and on the outside. You need a network address translation 39 00:07:55,100 --> 00:07:56,740 box, a NAT box, and a network address translation box. You need a network address translation box, 40 00:07:56,740 --> 00:08:02,340 sitting on the perimeter in order to do the intelligent translations back and forth. But 41 00:08:02,340 --> 00:08:06,860 this is the basic concept. If you have a better definition, I'd like to hear it, but I think this 42 00:08:06,860 --> 00:08:16,780 works pretty well. Some basics. We're going to talk about RFC 1918, the concept of private IP 43 00:08:16,780 --> 00:08:26,300 addresses, and two general modes of operation for NAT. You've all probably heard of by now the 44 00:08:26,300 --> 00:08:26,720 Internet Hacking System. The Internet Hacking System is a very popular and very popular 45 00:08:26,720 --> 00:08:36,480 engineering task force. They archive these things called RFCs. They are requests for comments. This 46 00:08:36,480 --> 00:08:42,380 is the, I guess, democratic unstructured way that the Internet has developed. Somebody comes up with 47 00:08:42,380 --> 00:08:48,780 a bright idea and posts publicly a request for comment. Basically what they're saying is, I think 48 00:08:48,780 --> 00:08:55,400 this is a good idea. I think this is the way the world should do things. I assert this is the best 49 00:08:55,400 --> 00:08:55,920 we've got. 50 00:08:56,720 --> 00:09:03,380 And I'm posting this for comments. And only after it's been subjected to perhaps withering public 51 00:09:03,380 --> 00:09:10,220 scrutiny do people sort of generally agree that, yeah, this works. So most of the internet, the 52 00:09:10,220 --> 00:09:18,260 specifications, have been designated and cleared up and archived in these RFCs. The famous one for us, 53 00:09:18,280 --> 00:09:24,120 in terms of network address translation, is 1918. Anybody who knows NAT, anybody who can tell you the 54 00:09:24,120 --> 00:09:26,000 story about those funny IP addresses, 55 00:09:27,240 --> 00:09:37,800 192.168? How many people here have seen a strange look, seen some addresses 192.168 and you know there's something funny about them but you're not quite sure what it is? Hands? Thank you. 56 00:09:39,380 --> 00:09:53,220 So, in 1918, address allocation for private internets discusses some of this, but not all of it. You can find them all at IETF.org. There's all sorts of great stuff. On a boring, rainy afternoon, it's a terrific way to learn some more things about the internet. 57 00:09:53,660 --> 00:09:54,100 Okay. 58 00:09:55,540 --> 00:09:55,980 Thank you. 59 00:09:56,000 --> 00:10:25,980 Okay. So let's talk about private IP addresses. On the bottom row there, you see the 192.168s. Now, early in your careers, when messing with TCP IP and routing issues, you quickly figured out that there was something different and strange and special about those IP addresses. If you were paying attention, you figured out that they couldn't route out to the internet. These are three different classes of IP addresses. 60 00:10:26,000 --> 00:10:32,520 So, what's sort of interesting about this is that there's 16 million IP addresses that have been reserved and are private. One of them is a Class A block, the tens. 61 00:10:32,840 --> 00:10:42,980 So, if you ever see any IP addresses starting with Ten, you know that these are private, uh... they're non-routable on the internet. We'll talk about some of these special characteristics here in a minute. 62 00:10:45,540 --> 00:10:55,780 Um... this is particularly nice because you've got 16 million IP addresses, and you can use this no matter how big your organization is. You can use the Ten block to help get things structured internally. 63 00:10:56,000 --> 00:11:05,940 The class B blocks, which are the toughest trivia question here, ask somebody what are the class B private address blocks, 17216 through 17231. 64 00:11:06,120 --> 00:11:17,920 There are 16 class B blocks available, each of which has 64,000 IP addresses, and there are 256 class C blocks, each of which has 256 IP addresses. 65 00:11:18,220 --> 00:11:25,380 So you should know, if you ever see any host with these IP addresses, that there's something special going on. 66 00:11:25,380 --> 00:11:32,060 These are private IP addresses. They are non-routable on the Internet, and we'll talk about some of the special characteristics here. 67 00:11:33,200 --> 00:11:41,520 These private addresses are reserved in that they'll never be assigned to someone in the global Internet routing scheme. 68 00:11:42,240 --> 00:11:49,440 There is no host out there at 192168 on the Internet somewhere. None. There are none. 69 00:11:49,540 --> 00:11:55,020 In fact, every router on the Internet is required to drop all packets addressed. 70 00:11:55,380 --> 00:11:59,040 To any IP address in these blocks. So you don't have to worry about it. 71 00:12:00,020 --> 00:12:09,440 So if you're on your corporate LAN, and you know there's a web server that you're using at 10.1.1.1, what does that say to you? 72 00:12:09,600 --> 00:12:14,720 Well, the immediate conclusion you can come to is that, well, that must be internal to my corporation somewhere, 73 00:12:14,880 --> 00:12:19,320 because you know for a fact it can't be over the Internet, because you can't get to it. 74 00:12:20,860 --> 00:12:25,120 So it's nice that you never have to worry about a collision. 75 00:12:25,120 --> 00:12:32,920 You never have to worry about, well, if I make my host 10.1.1.1, oh no, have I just screwed up my routing tables? 76 00:12:33,240 --> 00:12:37,180 You know, what if there is a 10.1.1.1 out there? I'm never going to be able to reach them now, 77 00:12:37,240 --> 00:12:39,700 because, you know, I'm going to be routing back to myself. 78 00:12:41,240 --> 00:12:45,860 So one of the benefits of having private IP addresses is you can use them all you want internally, 79 00:12:46,060 --> 00:12:54,280 and you have no fear that you're going to screw up your routing tables and find yourself colliding with something that's legitimate and valid out on the Internet, 80 00:12:55,120 --> 00:12:56,180 even though, for a fact, it's not. 81 00:12:57,800 --> 00:13:04,900 Packets with a private address destination are dropped by Internet routers, and we're going to talk about one of the benefits of this in the future. 82 00:13:05,980 --> 00:13:12,700 If one of your internal machines that you don't want people on the Internet to have access to has one of these private IP addresses, 83 00:13:13,000 --> 00:13:21,280 it's a lot harder for someone on the Internet to connect to it, because any packets that a hacker sends to 192.168, 84 00:13:21,800 --> 00:13:24,120 as soon as they get out on the Internet, they're going to be dropped, right? 85 00:13:24,120 --> 00:13:29,120 This is even better than an access control list. This is... I don't have an address you can get to. 86 00:13:31,280 --> 00:13:35,420 Anyone can use them internally, as they'll never collide with external addresses. 87 00:13:36,760 --> 00:13:41,120 Okay, we've talked about RFC 1918 and some private addresses. 88 00:13:42,800 --> 00:13:48,320 If you've been playing with network address translation, you've probably seen that in most firewalls, 89 00:13:48,320 --> 00:13:51,900 in particular here, the Checkpoints Firewall 1. 90 00:13:52,040 --> 00:13:54,100 If you notice here, I'm sort of using some other translation. 91 00:13:54,120 --> 00:13:55,880 Well, I am. 92 00:13:56,560 --> 00:14:00,720 There are two modes, generally speaking, for network address translation. 93 00:14:01,180 --> 00:14:07,180 Hide mode, otherwise known as many-to-one, or static mode, which is one-to-one. 94 00:14:08,480 --> 00:14:14,080 And this is largely because when it comes to granting Internet access in your organization, 95 00:14:14,380 --> 00:14:19,160 you can pretty much partition all of your TCP IP hosts into two groups, 96 00:14:19,880 --> 00:14:23,440 those of which should have some access, 97 00:14:24,200 --> 00:14:29,200 by people on the Internet, you know, your mail server, right, your web server, your FTP server, 98 00:14:30,120 --> 00:14:33,720 and those that you never want anyone on the Internet to have access to, 99 00:14:33,840 --> 00:14:38,460 your payroll server, the accounting server, your workstation, say. 100 00:14:39,160 --> 00:14:44,200 I'm speaking only of connections coming from the Internet in, not connections going from the inside out. 101 00:14:44,580 --> 00:14:48,900 So if you're like most organizations, you can partition all of your TCP IP hosts, 102 00:14:49,020 --> 00:14:51,300 you know, all but five of them. 103 00:14:51,820 --> 00:14:53,660 You want to be internal and protected. 104 00:14:54,120 --> 00:14:58,500 For the purposes of this discussion, I'm going to call that the LAN, the local area network. 105 00:15:00,100 --> 00:15:06,240 And then there's maybe four or five servers, or hundreds if you're a big content provider, 106 00:15:06,740 --> 00:15:11,120 and you're going to want those to be allowed at least some access from people on the Internet. 107 00:15:11,320 --> 00:15:16,000 And I'm going to call that the DMZ, demilitarized zone, which is sort of not very descriptive, 108 00:15:16,140 --> 00:15:21,560 but it's a special zone, perhaps it's even a special nick off of your firewall on a protected subnet, 109 00:15:21,680 --> 00:15:24,020 in which you're allowing some access. 110 00:15:24,120 --> 00:15:25,500 By people on the Internet. 111 00:15:25,920 --> 00:15:30,060 Very filtered, very specific, very carefully monitored access, 112 00:15:30,580 --> 00:15:32,440 but you are allowing some access. 113 00:15:32,920 --> 00:15:39,860 But the machines on the inside, like, you know, the woman who does payroll, her laptop, you know, her desktop machine, 114 00:15:40,100 --> 00:15:43,300 you don't want people on the outside to be able to connect to that under any circumstances. 115 00:15:43,480 --> 00:15:47,880 So those go in the LAN, and they'll be in something called hide mode. 116 00:15:48,900 --> 00:15:52,200 Static motor one-to-one is what you typically do for servers, 117 00:15:52,280 --> 00:15:54,100 machines that you wish to make available. 118 00:15:54,120 --> 00:15:59,260 So the moral of the story is, if you're going to set up NAT in your organization, 119 00:15:59,600 --> 00:16:04,540 one of the first things you need to do is basically think about all your TCP IP hosts 120 00:16:04,540 --> 00:16:08,920 and partition them into two groups, mutually exclusive, collectively exhaustive, 121 00:16:09,520 --> 00:16:12,860 and figure out which ones go in the DMZ and which ones go in the LAN. 122 00:16:13,260 --> 00:16:15,140 And that'll help you figure out which mode to use. 123 00:16:17,320 --> 00:16:19,380 Okay, so we've talked about the first section here. 124 00:16:19,840 --> 00:16:20,840 Let's have some questions. 125 00:16:21,040 --> 00:16:22,460 I've talked about RFC 1918. 126 00:16:23,600 --> 00:16:24,100 I've talked about RFC 2018. 127 00:16:24,100 --> 00:16:25,560 I've talked about private IP addresses. 128 00:16:25,800 --> 00:16:29,160 I've talked about two modes of network address translation. 129 00:16:30,060 --> 00:16:30,620 Questions? 130 00:16:31,300 --> 00:16:32,520 Things I've screwed up on. 131 00:16:32,580 --> 00:16:32,700 Yes? 132 00:16:33,260 --> 00:16:36,680 How would NAT work in a VPN situation? 133 00:16:37,020 --> 00:16:39,860 The question is, how would NAT work in a VPN situation? 134 00:16:40,380 --> 00:16:42,960 The short answer is, with great difficulty. 135 00:16:43,860 --> 00:16:44,700 It's a real problem. 136 00:16:44,840 --> 00:16:48,920 I believe IPSec embeds the IP address of the host, and that goes out. 137 00:16:49,020 --> 00:16:50,340 It's some problems. 138 00:16:50,340 --> 00:16:55,040 I don't know a whole lot more than that that I can share with you at this point. 139 00:16:55,180 --> 00:16:58,440 But yes, there's some real difficulties if you're trying to use a VPN with NAT. 140 00:16:58,780 --> 00:17:05,880 Because NAT, the host and the server, or the two ends of the connection using NAT, 141 00:17:06,080 --> 00:17:13,600 basically don't need to, and perhaps cannot, be aware of the fact that network address translation was used. 142 00:17:15,260 --> 00:17:16,020 We'll show here. 143 00:17:16,100 --> 00:17:19,480 I'm going to go through some descriptions here and walk through with packets. 144 00:17:20,340 --> 00:17:25,160 And I'm going to show that both, for example, if you're browsing the web with a client using network address translation, 145 00:17:25,460 --> 00:17:27,960 neither side is even aware that NAT is going on. 146 00:17:28,640 --> 00:17:36,400 So for most protocols that operate with good manners and don't embed IP addresses in the payload, 147 00:17:36,620 --> 00:17:38,020 then NAT works just fine. 148 00:17:38,220 --> 00:17:44,940 But one of the security aspects of some VPN protocols is that in order to prevent various attacks, et cetera, 149 00:17:45,000 --> 00:17:48,020 they embed the IP address in the payload, and that can cause some problems. 150 00:17:48,680 --> 00:17:49,160 . 151 00:17:50,340 --> 00:17:52,220 So the best way to do that is to have... 152 00:17:52,220 --> 00:17:56,420 The best way to solve this problem is to have the VPN and your firewall working together. 153 00:17:57,220 --> 00:17:59,980 For example, Checkpoint Firewall 1, the example I know. 154 00:18:00,080 --> 00:18:01,000 I'm not trying to plug them. 155 00:18:01,720 --> 00:18:02,680 They do that well. 156 00:18:02,800 --> 00:18:05,000 You can mix the VPN with network address translation. 157 00:18:06,740 --> 00:18:07,440 Other questions? 158 00:18:09,320 --> 00:18:09,760 Okay. 159 00:18:10,180 --> 00:18:11,980 This is a typical NAT configuration. 160 00:18:12,420 --> 00:18:15,620 This is a highly stylized, simple network. 161 00:18:16,340 --> 00:18:19,520 This is your new .com company. 162 00:18:19,560 --> 00:18:20,280 Two years ago. 163 00:18:20,280 --> 00:18:21,660 They've been in business for two weeks. 164 00:18:22,340 --> 00:18:23,500 The Big Eye Internet. 165 00:18:23,700 --> 00:18:24,700 We have a gateway router. 166 00:18:24,980 --> 00:18:29,480 It's your Cisco 1700 or your Cisco 3600, whatever it is. 167 00:18:30,260 --> 00:18:31,960 You're running a firewall there with NAT. 168 00:18:32,540 --> 00:18:36,720 And you'll see that there are two separate NICs coming out of that firewall. 169 00:18:37,060 --> 00:18:44,140 I'm really trying to separate those two LAN segments to the greatest degree possible. 170 00:18:44,540 --> 00:18:46,840 On the lower right, we have the DMZ. 171 00:18:47,160 --> 00:18:49,960 And you'll see we've got a worldwide web server. 172 00:18:50,280 --> 00:18:52,000 We have a mail server and an FTP server. 173 00:18:53,280 --> 00:19:00,120 And those machines are in the DMZ because we do want people on the Internet to have some limited access to those machines. 174 00:19:01,720 --> 00:19:03,840 On the lower left-hand side is the LAN. 175 00:19:05,680 --> 00:19:08,620 And there's the server there and various users. 176 00:19:08,860 --> 00:19:15,460 And, again, the purpose is we don't want anyone on the Internet to have any access to the people in the LAN. 177 00:19:15,560 --> 00:19:16,980 So we've already done this partitioning. 178 00:19:16,980 --> 00:19:18,300 We've already got it split out here. 179 00:19:18,300 --> 00:19:21,600 Into two separate subnets with two separate policies. 180 00:19:21,980 --> 00:19:25,060 The one on the lower right is using static mode NAT. 181 00:19:25,180 --> 00:19:27,520 The one on the lower left is using hide mode NAT. 182 00:19:28,000 --> 00:19:28,400 Question? 183 00:19:30,700 --> 00:19:32,620 What if your router is what handles the NAT? 184 00:19:33,080 --> 00:19:35,100 Can you still split it up in those two different modes? 185 00:19:35,400 --> 00:19:38,740 The question is what if your router does your NAT for you? 186 00:19:38,780 --> 00:19:41,200 Can you still split it up into two different modes? 187 00:19:41,380 --> 00:19:42,860 Like lower end Cisco routers? 188 00:19:44,820 --> 00:19:47,260 675, 678, 800, stuff like that? 189 00:19:47,260 --> 00:19:50,420 Okay, the question is particularly about low end Cisco routers. 190 00:19:50,500 --> 00:19:51,400 I don't know. 191 00:19:51,840 --> 00:19:58,200 If there's a single NIC coming out on the bottom of the router, then it makes it a lot harder, obviously, to split it into two NICs. 192 00:19:59,600 --> 00:20:02,000 You know, put a switch underneath it and do the best you can. 193 00:20:02,200 --> 00:20:04,360 You know, the point of security is not to be perfect. 194 00:20:04,460 --> 00:20:08,680 It's just to put up, you know, as many sort of walls to climb over as you can. 195 00:20:09,300 --> 00:20:16,940 One of the purposes of splitting it into two different NICs is it's like those lizards in the deserts of Arizona 196 00:20:16,940 --> 00:20:18,080 who have those big tails. 197 00:20:18,320 --> 00:20:22,020 And if a predator grabs the tail, well, the tail breaks off and the lizard gets away. 198 00:20:22,580 --> 00:20:28,760 And the DMZ is sort of the lizard's tail here because you are allowing some access from the Internet. 199 00:20:28,860 --> 00:20:31,940 There is still some chance of somebody taking over one of your servers. 200 00:20:32,220 --> 00:20:39,580 And so you set up your routing rules and the firewall rules in such a way that even if somebody takes over your web server, 201 00:20:39,860 --> 00:20:41,760 they still can't get into the LAN. 202 00:20:42,000 --> 00:20:46,780 Okay, this is the whole reason why you use two separate subnets and have two separate policies here. 203 00:20:47,700 --> 00:20:50,820 You know, obviously nobody wants to get their web server taken over. 204 00:20:50,960 --> 00:20:56,580 But if it does, well, okay, you can flatten that hard drive and start over. 205 00:20:56,780 --> 00:21:02,680 But at no time did they have enhanced access to get back into the LAN and get into your payroll server, 206 00:21:02,820 --> 00:21:03,640 which is the real concern. 207 00:21:03,860 --> 00:21:07,600 So that's the motivation behind having these two different LAN segments. 208 00:21:21,440 --> 00:21:30,300 The question is that some routers will do specific port forwarding, limiting packets destined for certain ports only to certain IP addresses. 209 00:21:30,860 --> 00:21:34,620 That sounds like an access control list or basic firewall configuration issues. 210 00:21:34,820 --> 00:21:39,660 It's like if a packet comes in on port 80, then it goes forward to a certain address. 211 00:21:39,840 --> 00:21:43,220 So it does sort of do what you would ask it to do. 212 00:21:44,280 --> 00:21:44,760 . 213 00:21:54,660 --> 00:21:56,260 NAT in action. 214 00:21:56,640 --> 00:22:03,460 All right, we're going to – I wanted to have a little icon here of a guy named NAT, 215 00:22:03,680 --> 00:22:07,080 and I was going to use him as a little animated something stupid here. 216 00:22:07,160 --> 00:22:12,000 But with my lame amateur PowerPoint skills, you've been saved. 217 00:22:13,060 --> 00:22:14,020 So we're going to – 218 00:22:14,020 --> 00:22:14,740 . 219 00:22:14,760 --> 00:22:14,800 NAT in action. 220 00:22:14,800 --> 00:22:15,420 All right, we're going to look here. 221 00:22:16,320 --> 00:22:17,660 There are four possibilities. 222 00:22:18,420 --> 00:22:21,180 We're going to look here at hide mode and static mode. 223 00:22:22,460 --> 00:22:23,660 There's another cell phone. 224 00:22:24,020 --> 00:22:28,280 And we're going to look at outbound connections and inbound connections and see what happens. 225 00:22:31,300 --> 00:22:35,980 Okay, the first thing we're going to do here is talk about what's inside an IP packet. 226 00:22:36,340 --> 00:22:39,920 I could spend four days talking about what's inside an IP packet. 227 00:22:40,040 --> 00:22:44,660 I'm just going to mention a couple of basic fundamental things that you need to know for network address translation. 228 00:22:44,660 --> 00:22:48,740 You can get a Ph.D. in IP packetology, I'm sure, from somewhere. 229 00:22:50,740 --> 00:22:54,440 Two of the most important things are the IP source address. 230 00:22:54,900 --> 00:23:01,220 Every TCP IP packet that goes anywhere contains the source address of the machine where it came from. 231 00:23:01,480 --> 00:23:05,100 Or if you spoof it, it can contain any IP address you want. 232 00:23:05,240 --> 00:23:12,280 But let's start with normal expected IP packets, which have the IP address of the TCP IP host that sent the packet. 233 00:23:12,580 --> 00:23:12,640 . 234 00:23:13,200 --> 00:23:15,280 Another thing it also contains is the destination. 235 00:23:16,060 --> 00:23:21,820 You wouldn't be able to route the packet over your network or over the Internet if it didn't have an address where it wants to go. 236 00:23:22,160 --> 00:23:27,800 So this is like a letter you're throwing in the mail, or I guess in the example of the Internet, the canonical example, 237 00:23:27,880 --> 00:23:29,620 it's a postcard you're throwing in the mail. 238 00:23:29,680 --> 00:23:32,200 And this postcard has a to address and it has a from address. 239 00:23:32,520 --> 00:23:33,480 You already know that. 240 00:23:33,560 --> 00:23:34,680 This is simple stuff. 241 00:23:37,320 --> 00:23:39,580 Something else that it has is a port number. 242 00:23:39,820 --> 00:23:40,200 . 243 00:23:40,200 --> 00:23:44,320 Those of you who know the OSI model, this is layer 4. 244 00:23:44,420 --> 00:23:45,540 This is the transport layer. 245 00:23:46,280 --> 00:23:48,840 For example, these are port numbers you've heard about. 246 00:23:48,920 --> 00:23:51,520 If you're talking to a web server, it's port 80 HTTP. 247 00:23:52,060 --> 00:23:54,300 If you're talking to an FTP server, it's port 21. 248 00:23:55,020 --> 00:23:58,120 Outbound email is SMTP port 25, etc. 249 00:23:58,320 --> 00:23:59,580 You've heard these port numbers before. 250 00:24:00,860 --> 00:24:02,640 These get sent along with every packet. 251 00:24:02,820 --> 00:24:04,980 Again, this is a to address and a from address. 252 00:24:06,260 --> 00:24:09,220 The from address is actually sort of a little more mysterious. 253 00:24:09,220 --> 00:24:17,680 A lot of times when I'm teaching firewall classes, a lot of people are sort of uncertain or sort of surprised by this concept that every packet has a from port address. 254 00:24:17,860 --> 00:24:19,880 And it turns out it's actually fairly valuable. 255 00:24:20,300 --> 00:24:25,420 It's one of the things that keeps firewalls, by which a firewall can keep its internal state tables straight. 256 00:24:25,580 --> 00:24:26,640 And we'll talk about that in a minute. 257 00:24:28,280 --> 00:24:30,900 Also, inside an IP packet, there's lots of other stuff. 258 00:24:31,680 --> 00:24:32,820 There's the data payload. 259 00:24:33,660 --> 00:24:38,660 And this is your oversized ping of death packet or whatever it is you're sending today. 260 00:24:39,780 --> 00:24:42,840 Error correction information, etc. 261 00:24:43,140 --> 00:24:47,400 There's an awful lot of other stuff corresponding with other layers and flags, etc., etc. 262 00:24:47,720 --> 00:25:00,460 But for purposes of the discussion of network address translation, the only things that are really important for us today are the to and from address for the to and from IP address and the to and from port address. 263 00:25:01,460 --> 00:25:04,480 So we could talk about translating some of those addresses. 264 00:25:04,780 --> 00:25:07,660 Is that for TCP IP or IP in general? 265 00:25:08,940 --> 00:25:09,720 IP in general. 266 00:25:12,860 --> 00:25:16,260 Okay, so now we're going to go to hide mode outbound, the first one. 267 00:25:17,060 --> 00:25:18,040 Step number one. 268 00:25:19,300 --> 00:25:20,460 Okay, this is hide mode. 269 00:25:20,620 --> 00:25:23,940 You remember we have the LAN users who are sitting inside the LAN. 270 00:25:24,900 --> 00:25:26,500 They're protected by hide mode. 271 00:25:26,800 --> 00:25:28,220 They have a non-routable address. 272 00:25:28,320 --> 00:25:29,480 They have one of these private addresses. 273 00:25:29,580 --> 00:25:31,380 It's like 192.168, right? 274 00:25:31,840 --> 00:25:36,500 So we know already that if they send a request out to some web server on the Internet, 275 00:25:37,300 --> 00:25:38,520 using their own address, 276 00:25:39,600 --> 00:25:42,240 where's the web server going to reply to, right? 277 00:25:42,600 --> 00:25:45,140 If this packet goes out just by itself, 278 00:25:45,520 --> 00:25:49,780 some web server somewhere on the Internet is going to get a request, an HTTP request, 279 00:25:49,980 --> 00:25:55,700 from somebody who's identifying themselves as being 192.168.1.2. 280 00:25:55,940 --> 00:26:01,780 That web server can't reply because we know that you can't respond to an address like that. 281 00:26:01,820 --> 00:26:05,260 You can't send packets over the Internet to one of those non-routable addresses. 282 00:26:05,600 --> 00:26:08,520 So we know already that some translation is going to have to occur. 283 00:26:08,520 --> 00:26:10,840 Before that packet leaves your security perimeter. 284 00:26:11,880 --> 00:26:13,480 So the packet leaves the client. 285 00:26:13,800 --> 00:26:15,000 And you can see here, 286 00:26:16,040 --> 00:26:20,780 I've just enumerated the four sort of different embedded addresses in that packet. 287 00:26:21,000 --> 00:26:24,400 The first one is the IP source address is the private address. 288 00:26:24,680 --> 00:26:28,880 You know, this is the private address of your web client there at work. 289 00:26:29,120 --> 00:26:32,840 The IP destination, I'm just using www.website.com. 290 00:26:32,960 --> 00:26:34,460 It's just a placeholder. 291 00:26:35,840 --> 00:26:38,500 Your web client is going to pick a random high key. 292 00:26:38,520 --> 00:26:39,440 It's going to have a TCP port number. 293 00:26:39,560 --> 00:26:41,420 And the destination is going to be port 80. 294 00:26:41,580 --> 00:26:43,660 And we know that because you're trying to talk to a web server. 295 00:26:45,440 --> 00:26:49,340 As it leaves your firewall or your NAT box, 296 00:26:49,600 --> 00:26:51,960 this is where the network address translation comes in. 297 00:26:53,480 --> 00:26:59,100 Your NAT box overwrites the source address with the public IP address. 298 00:26:59,960 --> 00:27:03,640 So you see there, the IP source, we've overwritten it with a virtual public address. 299 00:27:03,760 --> 00:27:05,360 This is an address that you own. 300 00:27:05,600 --> 00:27:07,780 You've been assigned it by your ISP, 301 00:27:08,520 --> 00:27:10,660 and you own it, and it routes on the internet. 302 00:27:11,120 --> 00:27:13,320 And the other three addresses you leave unchanged. 303 00:27:15,800 --> 00:27:21,200 One of the important things here is that the firewall has to store information about this connection in the state table. 304 00:27:21,680 --> 00:27:24,180 Because this packet, you know, this packet, this connection, 305 00:27:24,400 --> 00:27:28,100 well, the firewall is actually sort of maintaining two different connections now. 306 00:27:28,180 --> 00:27:30,420 One between the internal client and the firewall, 307 00:27:30,640 --> 00:27:35,560 and another one between the firewall and this web server out on the internet. 308 00:27:35,780 --> 00:27:37,160 And you have to keep all that straight. 309 00:27:37,320 --> 00:27:38,500 Because when the answer comes back, 310 00:27:38,500 --> 00:27:41,000 the firewall has to decide whether to let this in or not. 311 00:27:41,320 --> 00:27:43,000 So the firewall keeps a state table. 312 00:27:43,140 --> 00:27:43,960 Just a little bit of RAM, 313 00:27:44,260 --> 00:27:47,880 just keeps a little piece of, just a simple little table that says, 314 00:27:48,080 --> 00:27:50,520 okay, this inside user at this IP address, 315 00:27:50,820 --> 00:27:53,500 he has an open connection going out to this web server. 316 00:27:53,740 --> 00:27:55,380 His real address is this. 317 00:27:55,460 --> 00:27:57,780 The fake external address we gave him is that. 318 00:27:58,220 --> 00:27:59,560 And the connection is open. 319 00:27:59,860 --> 00:28:01,340 He went out on this port number. 320 00:28:01,680 --> 00:28:03,600 You know, just some basic information. 321 00:28:05,340 --> 00:28:07,500 So the firewall keeps the state information. 322 00:28:07,500 --> 00:28:10,360 In other words, in order to keep the channel open for the return traffic. 323 00:28:11,700 --> 00:28:15,460 The remote public server, this is, you know, the website you're going to. 324 00:28:16,240 --> 00:28:19,220 Now, he sees a request from a valid internet host. 325 00:28:19,440 --> 00:28:22,740 You know, 205.219.84.5 or whatever. 326 00:28:22,880 --> 00:28:24,100 That's a valid routable address. 327 00:28:24,420 --> 00:28:28,240 So the web server sees this and says, hey, I'm a web server. 328 00:28:28,380 --> 00:28:30,400 My job is to serve up web pages. 329 00:28:30,640 --> 00:28:34,440 I've got a valid HTTP request here from a valid internet address. 330 00:28:34,920 --> 00:28:36,020 So he just responds. 331 00:28:36,020 --> 00:28:38,060 So he sends back. 332 00:28:38,480 --> 00:28:42,400 Now, in a sense, it's easy to see he's just flipping the to and from 333 00:28:42,400 --> 00:28:44,960 on both the IP address and the port address. 334 00:28:45,400 --> 00:28:46,760 So he flips the two here. 335 00:28:46,860 --> 00:28:50,020 So this packet that leaves the server has a source address from him, 336 00:28:50,080 --> 00:28:51,380 which makes perfect sense. 337 00:28:51,580 --> 00:28:54,000 He's sending it back to the virtual public address. 338 00:28:54,740 --> 00:28:55,980 The port is on 80. 339 00:28:56,040 --> 00:28:57,420 The port source is on 80. 340 00:28:57,600 --> 00:29:00,900 And the destination is the original high TCP port number. 341 00:29:01,140 --> 00:29:05,000 Now, this is sort of one of the mysteries that everyone is sort of surprised to see 342 00:29:05,000 --> 00:29:09,700 is that when answers, when your replies come back from public web servers 343 00:29:09,700 --> 00:29:10,800 or from any web server, 344 00:29:10,940 --> 00:29:15,900 the two port number is the same random high TCP port number 345 00:29:15,900 --> 00:29:17,920 that your machine selected at the beginning. 346 00:29:18,220 --> 00:29:21,340 Now, since the firewall has kept that information in the table, 347 00:29:21,500 --> 00:29:24,600 the firewall is able to disambiguate these replies 348 00:29:24,600 --> 00:29:26,820 when they come back and decide who gets this packet. 349 00:29:31,360 --> 00:29:32,560 Well, it... 350 00:29:45,140 --> 00:29:46,440 Okay, the question is, 351 00:29:46,500 --> 00:29:51,280 if you have multiple web browsers in hide mode in the same LAN, 352 00:29:51,800 --> 00:29:54,140 and they all want to go out and browse the web simultaneously, 353 00:29:54,880 --> 00:29:57,620 and they collide on high TCP port numbers, 354 00:29:57,860 --> 00:29:58,820 how do you resolve that? 355 00:29:59,120 --> 00:30:03,560 Well, the answer is we're much more willing to take the chance 356 00:30:03,560 --> 00:30:05,080 they're going to collide on port numbers 357 00:30:05,080 --> 00:30:08,880 than on the chance that they're going to collide on outbound IP addresses, 358 00:30:09,040 --> 00:30:10,100 which we know they're going to collide 359 00:30:10,100 --> 00:30:12,060 because they're all hiding behind the same IP address. 360 00:30:12,620 --> 00:30:14,880 I don't know how the firewall resolves that. 361 00:30:15,060 --> 00:30:18,460 It probably rejects the connection and says try again. 362 00:30:18,760 --> 00:30:23,100 But there's 64,000 or 63,000 random high TCP port addresses, 363 00:30:23,260 --> 00:30:25,400 so your chances of colliding are actually very small. 364 00:30:25,700 --> 00:30:28,980 I would imagine if you were a firewall and somebody... 365 00:30:29,450 --> 00:30:31,500 You know, the way you would keep those straight 366 00:30:31,500 --> 00:30:33,300 would be either to reject the second connection 367 00:30:33,560 --> 00:30:36,360 or maybe do something smart like keep track of, 368 00:30:36,440 --> 00:30:38,220 well, this guy's going to a different IP address, 369 00:30:38,460 --> 00:30:39,800 so when the answer comes back, 370 00:30:39,840 --> 00:30:42,060 you match both the IP address and the port number, 371 00:30:42,180 --> 00:30:43,100 and that's how you keep it straight. 372 00:30:43,420 --> 00:30:45,180 So I imagine if you did both of those... 373 00:30:45,180 --> 00:30:48,160 I mean, what are the chances of two LAN hosts 374 00:30:48,160 --> 00:30:50,140 simultaneously going to Yahoo 375 00:30:50,140 --> 00:30:52,320 both with the same random high port number? 376 00:30:52,500 --> 00:30:53,120 Pretty small. 377 00:30:57,140 --> 00:30:58,020 Excuse me? 378 00:31:01,320 --> 00:31:03,220 Who would pick a different high port number? 379 00:31:03,780 --> 00:31:04,280 The firewall. 380 00:31:04,280 --> 00:31:04,540 The firewall. 381 00:31:05,880 --> 00:31:07,320 All right, the question is, 382 00:31:07,340 --> 00:31:11,000 is it possible the firewall would just pick a second high port number 383 00:31:11,000 --> 00:31:12,000 going to the same destination? 384 00:31:12,780 --> 00:31:13,220 Right. 385 00:31:13,660 --> 00:31:15,620 There's something called port address translation. 386 00:31:15,900 --> 00:31:19,340 The firewall does have the ability to play further games with this, 387 00:31:19,400 --> 00:31:20,800 pick different port numbers, et cetera. 388 00:31:21,320 --> 00:31:23,340 The chances of this happening are very small, 389 00:31:23,400 --> 00:31:25,420 so it's not something we worry about a whole lot. 390 00:31:25,900 --> 00:31:29,620 I don't know the details of how firewall one in particular resolves that. 391 00:31:29,760 --> 00:31:31,940 But given the fact that there are 63,000 392 00:31:31,940 --> 00:31:34,040 random high TCP port numbers, 393 00:31:34,820 --> 00:31:38,040 and most LANs are hiding only a few hundred people 394 00:31:38,040 --> 00:31:39,720 behind a single NAT configuration, 395 00:31:40,180 --> 00:31:41,900 it doesn't seem to happen very often. 396 00:31:42,060 --> 00:31:42,900 I'm sure there's a solution. 397 00:31:43,080 --> 00:31:44,480 I'm sure they've worked on it, 398 00:31:44,540 --> 00:31:46,720 but I haven't considered it very much. 399 00:31:47,340 --> 00:31:48,720 Does the Mac address play a role in that at all? 400 00:31:48,980 --> 00:31:49,680 Does the... 401 00:31:49,680 --> 00:31:50,380 The Mac address? 402 00:31:51,020 --> 00:31:52,060 Does the Mac address... 403 00:31:52,460 --> 00:31:53,460 Does it get overwritten, right? 404 00:31:53,900 --> 00:31:58,660 Well, Mac addresses are local to your Ethernet segment. 405 00:31:59,840 --> 00:32:01,660 They don't cross routers. 406 00:32:02,900 --> 00:32:04,380 They don't even cross switches. 407 00:32:07,040 --> 00:32:11,460 So whatever Mac address you have on your local LAN client 408 00:32:11,460 --> 00:32:13,380 could easily be long gone 409 00:32:13,380 --> 00:32:15,420 by the time you get to your gateway router or your NAT box. 410 00:32:15,900 --> 00:32:17,560 That's Layer 2 Ethernet only. 411 00:32:18,800 --> 00:32:21,380 Doesn't have any part of this type of NAT. 412 00:32:22,740 --> 00:32:23,260 Question? 413 00:32:28,280 --> 00:32:29,320 All right. 414 00:32:29,340 --> 00:32:30,480 The comment is, 415 00:32:30,480 --> 00:32:32,180 if you're using firewall 1 in hide mode, 416 00:32:32,280 --> 00:32:34,160 you're always going to be using port address translation. 417 00:32:35,400 --> 00:32:36,720 It doesn't make sense, though, 418 00:32:36,720 --> 00:32:39,660 if the port's maintaining the same port, 419 00:32:39,740 --> 00:32:40,820 because it's really an older connection. 420 00:32:42,340 --> 00:32:42,740 Okay. 421 00:32:42,900 --> 00:32:44,480 So all they have to do is maintain 422 00:32:45,220 --> 00:32:47,540 hide and port information, right? 423 00:32:48,260 --> 00:32:48,660 Okay. 424 00:32:48,800 --> 00:32:49,720 The comment is, 425 00:32:49,800 --> 00:32:52,340 there's no reason to be maintaining force 426 00:32:52,340 --> 00:32:53,300 the same port number. 427 00:32:53,740 --> 00:32:54,360 Okay, fine. 428 00:32:54,460 --> 00:32:56,560 This is not something I'm an expert on on these details. 429 00:32:56,700 --> 00:32:58,460 I know that, you know, 430 00:32:58,460 --> 00:32:59,800 the firewall handles them just fine, 431 00:32:59,800 --> 00:33:00,760 and I haven't torn into it. 432 00:33:04,620 --> 00:33:06,900 The response finally comes back to the client. 433 00:33:07,180 --> 00:33:09,660 The client receives the reply from the Internet host. 434 00:33:09,980 --> 00:33:10,840 So he's happy. 435 00:33:10,940 --> 00:33:13,320 He sent out a request to an Internet server, 436 00:33:13,520 --> 00:33:15,600 and he got his HTTP request back, 437 00:33:15,660 --> 00:33:16,580 so he's perfectly happy. 438 00:33:16,820 --> 00:33:18,900 Number nine, he has no idea NAT was used. 439 00:33:19,000 --> 00:33:20,520 He has no idea that the web server 440 00:33:20,520 --> 00:33:24,780 thought he was really talking to 204.205.199.1. 441 00:33:24,860 --> 00:33:25,760 He has no idea. 442 00:33:25,940 --> 00:33:27,620 And the server has no idea also. 443 00:33:27,720 --> 00:33:28,860 The server, as far as he knows, 444 00:33:28,860 --> 00:33:30,000 he received a valid request. 445 00:33:30,440 --> 00:33:32,140 So one of the important issues here, 446 00:33:32,240 --> 00:33:33,760 if NAT is working properly, 447 00:33:33,900 --> 00:33:35,880 is that neither the client nor the server 448 00:33:35,880 --> 00:33:37,640 have any idea that NAT was used, 449 00:33:37,760 --> 00:33:38,660 and it doesn't matter. 450 00:33:38,740 --> 00:33:39,380 They don't need to know, 451 00:33:39,460 --> 00:33:42,200 except for some unusual circumstances such as the VPN. 452 00:33:43,860 --> 00:33:45,080 Okay, that was outbound. 453 00:33:45,940 --> 00:33:47,740 Now we're going to talk about hide mode 454 00:33:47,740 --> 00:33:49,280 and inbound connections. 455 00:33:50,220 --> 00:33:51,440 And if you're thinking ahead, 456 00:33:52,560 --> 00:33:53,580 if you're reading ahead, 457 00:33:53,740 --> 00:33:54,400 you might be thinking, 458 00:33:54,480 --> 00:33:55,580 something's not right here. 459 00:33:55,680 --> 00:33:57,900 Why should there be inbound connections and hide mode? 460 00:33:59,040 --> 00:33:59,900 And it's true. 461 00:34:00,740 --> 00:34:02,320 One of the purposes of hide mode 462 00:34:02,320 --> 00:34:04,260 is that there can't be inbound connections. 463 00:34:05,140 --> 00:34:07,680 So let's say that web server you just connected to 464 00:34:07,680 --> 00:34:09,720 has an evil process on it, 465 00:34:09,760 --> 00:34:11,920 and it tries to open another connection 466 00:34:11,920 --> 00:34:13,320 back to your web client. 467 00:34:13,740 --> 00:34:15,400 Those of you who have firewalls now 468 00:34:15,400 --> 00:34:16,640 and watch the logs, 469 00:34:16,800 --> 00:34:18,420 you see this all the time. 470 00:34:18,520 --> 00:34:20,960 I'm running firewall one in my lab right now, 471 00:34:21,060 --> 00:34:22,200 and I'm seeing it all the time. 472 00:34:22,260 --> 00:34:24,660 I connect to some web server somewhere on the internet, 473 00:34:24,820 --> 00:34:26,320 and three seconds later, 474 00:34:27,200 --> 00:34:28,180 there's some, you know, 475 00:34:28,180 --> 00:34:30,080 high TCP port attempted connection 476 00:34:30,080 --> 00:34:31,340 right back to my web client. 477 00:34:31,660 --> 00:34:33,760 My firewall drops them all and logs them, 478 00:34:33,840 --> 00:34:34,860 but this happens all the time. 479 00:34:36,040 --> 00:34:37,900 So in this scenario, 480 00:34:40,000 --> 00:34:41,860 the packet comes in from this website. 481 00:34:42,880 --> 00:34:45,800 Its destination is the public IP address, 482 00:34:46,040 --> 00:34:48,760 the routable one that your NAT box was using. 483 00:34:50,300 --> 00:34:52,420 Whatever the port source is and the port destination, 484 00:34:53,280 --> 00:34:55,680 if it's an evil process, it can fake it all at once. 485 00:34:55,780 --> 00:34:57,160 But it's coming in on something 486 00:34:57,160 --> 00:34:58,240 that, well, clearly, 487 00:34:58,260 --> 00:35:00,100 you're not allowing any port numbers to come through 488 00:35:00,100 --> 00:35:02,200 because you're in hide mode on the LAN. 489 00:35:03,120 --> 00:35:05,100 The firewall sees the incoming packet 490 00:35:05,100 --> 00:35:06,980 and is unable to match it 491 00:35:06,980 --> 00:35:09,320 with a known connection described in the state table. 492 00:35:09,480 --> 00:35:10,340 So remember before, 493 00:35:10,400 --> 00:35:11,740 we talked about the state table, 494 00:35:11,760 --> 00:35:12,940 where the firewall keeps information 495 00:35:13,780 --> 00:35:15,380 about connections that are outbound. 496 00:35:15,520 --> 00:35:17,040 So when packets come back in, 497 00:35:17,140 --> 00:35:18,560 it can look up in the table and say, 498 00:35:18,700 --> 00:35:20,340 oh, yeah, I know about you. 499 00:35:20,400 --> 00:35:21,440 I was expecting you. 500 00:35:21,720 --> 00:35:23,640 You're the answer to this request 501 00:35:23,640 --> 00:35:24,900 from someone in my LAN. 502 00:35:25,560 --> 00:35:27,140 However, if a new connection takes place 503 00:35:27,160 --> 00:35:28,220 and tries to come through, 504 00:35:28,400 --> 00:35:29,840 the firewall looks at this and says, 505 00:35:30,020 --> 00:35:30,960 what is this? 506 00:35:31,080 --> 00:35:31,880 You're trying to connect 507 00:35:31,880 --> 00:35:33,980 to somebody who's in hide mode. 508 00:35:34,320 --> 00:35:35,400 And the firewall says, 509 00:35:35,620 --> 00:35:37,740 you know, my job is to hide those hosts. 510 00:35:39,700 --> 00:35:40,820 So the firewall says, 511 00:35:41,000 --> 00:35:42,740 well, this is a virtual IP address only. 512 00:35:42,780 --> 00:35:43,940 It's not a real IP address. 513 00:35:44,080 --> 00:35:46,040 We just used it temporarily for hide mode NAT. 514 00:35:46,800 --> 00:35:48,260 Also, here's an interesting question. 515 00:35:48,420 --> 00:35:51,380 Even if the firewall could forward that packet 516 00:35:51,380 --> 00:35:53,380 to some host inside the LAN, 517 00:35:54,440 --> 00:35:55,420 it's an interesting question. 518 00:35:55,600 --> 00:35:56,920 Which host is it intended for? 519 00:35:57,000 --> 00:35:57,140 There's no way 520 00:35:57,160 --> 00:35:58,360 there could be 200 hosts in there. 521 00:36:04,680 --> 00:36:06,440 Lastly, hiding the internal hosts 522 00:36:07,020 --> 00:36:08,380 is the whole point of hide mode. 523 00:36:09,000 --> 00:36:10,960 So the next item here is, 524 00:36:11,040 --> 00:36:12,200 well, the next thing that happens 525 00:36:12,200 --> 00:36:13,260 is the connection fails. 526 00:36:13,440 --> 00:36:14,860 No connection can be made, 527 00:36:14,960 --> 00:36:16,040 hence hide mode. 528 00:36:18,000 --> 00:36:19,080 All right, we've talked about 529 00:36:19,080 --> 00:36:20,160 the first two in hide mode. 530 00:36:20,300 --> 00:36:22,700 I'll more quickly go through static mode. 531 00:36:23,920 --> 00:36:24,760 Okay, questions. 532 00:36:24,920 --> 00:36:25,400 Question here? 533 00:36:26,100 --> 00:36:26,560 . 534 00:36:32,020 --> 00:36:34,640 Is there a cache that can be exploited 535 00:36:34,640 --> 00:36:37,020 from the hide mode local addresses? 536 00:36:38,080 --> 00:36:40,080 The only cache, so to speak, 537 00:36:40,200 --> 00:36:41,160 would be, my understanding, 538 00:36:41,440 --> 00:36:44,320 would be the state tables 539 00:36:44,320 --> 00:36:45,320 that are stored in the firewall. 540 00:36:47,320 --> 00:36:49,880 Well, sure, once the connection leaves the firewall, 541 00:36:50,220 --> 00:36:52,940 you know, it's subject to all sorts of other, 542 00:36:53,000 --> 00:36:54,560 you know, man-in-the-middle attacks or whatever, 543 00:36:55,400 --> 00:36:56,020 and at that point, 544 00:36:56,080 --> 00:36:57,000 it's just a standard connection 545 00:36:57,000 --> 00:36:58,160 going out over the Internet. 546 00:36:58,880 --> 00:37:01,600 I suppose if you were able to, you know, 547 00:37:01,600 --> 00:37:03,420 hack into that, you could get back through. 548 00:37:03,520 --> 00:37:04,820 But the firewall's fairly clever. 549 00:37:06,140 --> 00:37:07,760 I don't know all the details 550 00:37:07,760 --> 00:37:09,380 of what it's got there to prevent that, 551 00:37:09,440 --> 00:37:11,060 but the firewall is only going to allow, 552 00:37:11,260 --> 00:37:13,620 you know, replies from that IP address 553 00:37:13,620 --> 00:37:15,100 with the correct port number 554 00:37:15,100 --> 00:37:17,000 and within a certain period of time. 555 00:37:18,300 --> 00:37:21,540 If you're hiding a couple of hundred LAN hosts 556 00:37:21,540 --> 00:37:22,500 in hide mode, 557 00:37:22,680 --> 00:37:24,900 hiding behind a single IP address 558 00:37:24,900 --> 00:37:25,500 on the Internet, 559 00:37:25,740 --> 00:37:28,100 and let's say you were sniffing that connection, 560 00:37:28,260 --> 00:37:30,480 you sniffed somebody's T1 line going out to the Internet, 561 00:37:30,660 --> 00:37:31,480 what do you see? 562 00:37:31,680 --> 00:37:35,360 You see a single IP address that's incredibly chatty, right? 563 00:37:35,460 --> 00:37:36,660 You see a single IP address 564 00:37:36,660 --> 00:37:39,200 that's simultaneously talking to 53 websites. 565 00:37:40,160 --> 00:37:41,320 That's hard. That's harder. 566 00:37:41,520 --> 00:37:42,960 That's a real blizzard of information, 567 00:37:43,160 --> 00:37:45,320 and it's harder to keep all those data streams separate 568 00:37:45,320 --> 00:37:47,020 and tease them out and figure out who's what, 569 00:37:47,160 --> 00:37:48,480 and it'd be hard work. 570 00:37:48,640 --> 00:37:51,020 But, yeah, once the connection leaves the firewall 571 00:37:51,020 --> 00:37:53,080 and goes out on the Internet insecurely, 572 00:37:53,080 --> 00:37:54,820 yes, there's some things that can be done. 573 00:37:54,900 --> 00:37:57,940 But the firewall is keeping a state table 574 00:37:57,940 --> 00:37:59,040 with all the relevant information 575 00:37:59,040 --> 00:38:01,100 and blocks everything that doesn't match 576 00:38:01,100 --> 00:38:02,440 exactly what it's expecting. 577 00:38:02,840 --> 00:38:04,640 The firewall is much smarter 578 00:38:04,640 --> 00:38:06,660 than a simple access control list, 579 00:38:06,800 --> 00:38:07,580 which just says, 580 00:38:07,740 --> 00:38:10,160 let this, you know, port number into this IP address. 581 00:38:10,380 --> 00:38:12,100 The firewall has a state table and says, 582 00:38:12,680 --> 00:38:14,120 only this connection 583 00:38:14,120 --> 00:38:16,040 and only for the next 30 seconds, 584 00:38:16,220 --> 00:38:17,920 and you have to be this IP address, 585 00:38:18,060 --> 00:38:19,200 you have to be this port number, 586 00:38:19,880 --> 00:38:21,420 otherwise you get dropped. 587 00:38:22,320 --> 00:38:22,840 Question? 588 00:38:37,980 --> 00:38:38,660 . 589 00:38:49,640 --> 00:38:51,600 Well, the only connection that stays open 590 00:38:51,600 --> 00:38:53,420 is for return HTTP 591 00:38:54,140 --> 00:38:54,540 information. 592 00:38:55,340 --> 00:38:58,920 So it has to have a source port number of 80. 593 00:39:01,120 --> 00:39:03,000 So there is no way... 594 00:39:03,000 --> 00:39:06,460 The firewall, in order to allow web traffic requests 595 00:39:06,460 --> 00:39:07,880 to come back to the client, 596 00:39:08,460 --> 00:39:10,120 has to allow web traffic requests 597 00:39:10,120 --> 00:39:10,980 to come back to the client. 598 00:39:11,100 --> 00:39:12,320 So as long as they look like that, 599 00:39:12,400 --> 00:39:13,460 yes, they're going to be let through. 600 00:39:13,960 --> 00:39:16,740 But if they come in as an attempted telnet connection, 601 00:39:17,340 --> 00:39:18,660 no, the port numbers are wrong. 602 00:39:18,720 --> 00:39:19,160 It'll get blocked. 603 00:39:20,360 --> 00:39:22,660 So, you know, the firewall is only smart enough 604 00:39:22,660 --> 00:39:23,720 to let web traffic back. 605 00:39:23,940 --> 00:39:26,620 But, you know, if there's something dangerous in that, 606 00:39:26,800 --> 00:39:29,100 you know, you've attached a, you know, 607 00:39:29,120 --> 00:39:30,660 a Trojan horse .exe to it, 608 00:39:30,700 --> 00:39:32,600 well, the firewall has to do other things 609 00:39:32,600 --> 00:39:33,520 to protect you against that. 610 00:39:33,620 --> 00:39:35,240 But the connections that is opened 611 00:39:35,240 --> 00:39:37,320 allows web traffic responses 612 00:39:37,320 --> 00:39:39,000 back from that IP address 613 00:39:39,840 --> 00:39:40,840 until the timeout. 614 00:39:43,360 --> 00:39:43,800 . 615 00:39:45,780 --> 00:39:46,220 . 616 00:39:46,220 --> 00:39:46,540 . 617 00:40:07,180 --> 00:40:09,160 All right, the question is that 618 00:40:09,160 --> 00:40:10,960 if the web server responds 619 00:40:11,280 --> 00:40:13,620 with the correct source IP address 620 00:40:13,620 --> 00:40:15,760 and the correct source port address, 621 00:40:15,760 --> 00:40:17,740 that matches the existing connection, 622 00:40:17,940 --> 00:40:19,420 then the firewall will let that through. 623 00:40:21,240 --> 00:40:22,620 The answer is yes. 624 00:40:23,500 --> 00:40:25,140 I mean, that's what it does. 625 00:40:26,640 --> 00:40:29,980 You know, the firewall has to do some other things 626 00:40:29,980 --> 00:40:32,620 in terms of further inspection of attached files, say, 627 00:40:32,700 --> 00:40:34,040 so much more high-level inspection, 628 00:40:34,280 --> 00:40:35,820 layer seven in the packets. 629 00:40:35,940 --> 00:40:38,160 But for what I'm talking about here 630 00:40:38,160 --> 00:40:39,240 with network address translation, 631 00:40:39,480 --> 00:40:41,560 it's just looking at layers three and four. 632 00:40:41,880 --> 00:40:44,460 And so if something comes back through the firewall 633 00:40:44,460 --> 00:40:46,480 that looks like valid web response, 634 00:40:46,740 --> 00:40:48,440 it's something the web server sent, 635 00:40:48,720 --> 00:40:50,360 then yes, it's going to let it back in. 636 00:40:50,480 --> 00:40:52,340 This is just simply, you know, 637 00:40:52,360 --> 00:40:53,740 allowing web access from the LAN. 638 00:40:54,460 --> 00:40:54,900 Yes. 639 00:40:56,500 --> 00:40:57,540 Gentleman in the back, white shirt. 640 00:41:00,380 --> 00:41:00,820 . 641 00:41:02,100 --> 00:41:02,540 . 642 00:41:02,540 --> 00:41:03,240 . 643 00:41:16,960 --> 00:41:17,440 . 644 00:41:29,400 --> 00:41:31,440 All right, the question or the comment 645 00:41:31,440 --> 00:41:34,140 is that there are some known 646 00:41:34,140 --> 00:41:36,660 and perhaps patched issues involving firewalls 647 00:41:37,100 --> 00:41:39,700 with buffer overflows. 648 00:41:39,960 --> 00:41:41,260 Yeah, those are separate issues. 649 00:41:41,360 --> 00:41:43,680 I'm not really trying to talk about some of the, you know, 650 00:41:43,680 --> 00:41:46,180 the more detailed security issues here. 651 00:41:46,300 --> 00:41:46,800 These are just... 652 00:41:46,800 --> 00:41:48,200 I'm going through the basics of NAT. 653 00:41:48,280 --> 00:41:49,620 Yes, there are other firewall issues. 654 00:41:50,120 --> 00:41:50,520 . 655 00:41:53,320 --> 00:41:56,120 Right, if you can do a buffer overflow in a firewall, 656 00:41:56,280 --> 00:41:57,340 there's all sorts of things possible. 657 00:41:58,360 --> 00:41:58,760 . 658 00:42:02,960 --> 00:42:05,280 Okay, we're in static mode here outbound. 659 00:42:05,780 --> 00:42:06,680 This is going out. 660 00:42:06,720 --> 00:42:08,780 The firewall overwrites the IP source address 661 00:42:08,780 --> 00:42:10,020 with the public IP address. 662 00:42:10,160 --> 00:42:11,940 So this is just like we saw in hide mode. 663 00:42:12,120 --> 00:42:13,600 This is the packet going outbound. 664 00:42:13,600 --> 00:42:17,680 Since the from IP address on this packet 665 00:42:17,680 --> 00:42:19,500 is a local non-routable address, 666 00:42:19,680 --> 00:42:21,860 the firewall has to change it on the way outbound. 667 00:42:23,660 --> 00:42:24,300 . 668 00:42:27,780 --> 00:42:32,100 The question is, does the firewall accommodate 669 00:42:32,100 --> 00:42:35,140 a single or perhaps multiple hide addresses? 670 00:42:36,140 --> 00:42:38,860 My understanding with the Checkpoint Firewall 1 product, 671 00:42:38,960 --> 00:42:41,840 it's only one IP address per, say, subnet 672 00:42:41,840 --> 00:42:43,180 or per group or per rule. 673 00:42:44,200 --> 00:42:46,220 My experience with the Cisco PIX firewall 674 00:42:46,220 --> 00:42:48,720 is that you can designate a range of IP addresses 675 00:42:48,720 --> 00:42:50,420 and it will randomly select among them. 676 00:42:50,500 --> 00:42:51,220 That's even better. 677 00:42:51,780 --> 00:42:55,480 Present your opponents with 100 IP addresses 678 00:42:55,480 --> 00:42:58,240 and individual traffic is bouncing around between them, 679 00:42:58,360 --> 00:43:01,160 sort of a spread spectrum sort of approach to it. 680 00:43:01,300 --> 00:43:03,080 So it depends which product you have. 681 00:43:03,480 --> 00:43:05,620 Firewall 1, I think, typically goes with 1, 682 00:43:05,660 --> 00:43:07,760 but I know that Cisco PIX you can put a range in. 683 00:43:08,260 --> 00:43:09,620 We're going to talk about it here in a minute, 684 00:43:09,680 --> 00:43:12,680 but, of course, any IP address that you're hiding behind for NAT 685 00:43:12,680 --> 00:43:15,280 has to be a public address that you own, right? 686 00:43:15,380 --> 00:43:17,880 You can't just pick some random IP address 687 00:43:17,880 --> 00:43:20,440 because then your traffic will go out, 688 00:43:20,480 --> 00:43:21,320 but it won't come back. 689 00:43:25,600 --> 00:43:28,060 The remote public server, it sees the request. 690 00:43:28,480 --> 00:43:29,900 It looks perfectly reasonable. 691 00:43:30,100 --> 00:43:31,420 It looks like a valid request. 692 00:43:31,520 --> 00:43:33,180 It just flips the two addresses, 693 00:43:33,300 --> 00:43:35,420 puts the payload in, and sends it back. 694 00:43:35,560 --> 00:43:38,060 This is just a standard response from a web server. 695 00:43:38,860 --> 00:43:42,340 Coming back in, the firewall has to do the translation again. 696 00:43:42,340 --> 00:43:45,400 Since it was addressed to the virtual public IP address, 697 00:43:45,600 --> 00:43:47,580 it now needs to be disambiguated 698 00:43:47,580 --> 00:43:49,400 and sent back to the correct internal address. 699 00:43:50,220 --> 00:43:52,360 So the moral of the story here is that 700 00:43:52,360 --> 00:43:54,340 your network address translation box 701 00:43:54,340 --> 00:43:56,800 changes one address on the way out 702 00:43:56,800 --> 00:43:58,980 and one address on the way in, and that's it. 703 00:43:59,240 --> 00:44:00,620 You just have to get the right one. 704 00:44:01,380 --> 00:44:04,400 The DMZ server receives the reply from the Internet host. 705 00:44:04,500 --> 00:44:06,780 The client has no idea that NAT was used, 706 00:44:06,840 --> 00:44:08,760 and the server has no idea that NAT was used. 707 00:44:08,900 --> 00:44:11,520 So, again, as long as you're using safe protocols 708 00:44:11,520 --> 00:44:14,760 that don't embed an IP address inside the payload, 709 00:44:15,020 --> 00:44:16,360 then this shouldn't be a problem. 710 00:44:18,880 --> 00:44:20,960 Let's do the last one here before we take the break. 711 00:44:21,540 --> 00:44:24,600 And, again, this is going to be for people 712 00:44:24,600 --> 00:44:27,320 trying to connect to your web servers. 713 00:44:27,520 --> 00:44:29,300 These are people on the Internet trying to connect 714 00:44:29,300 --> 00:44:31,080 into your web server, your FTP server, 715 00:44:31,180 --> 00:44:32,140 any of your public servers. 716 00:44:33,680 --> 00:44:35,180 And, again, here's the four addresses. 717 00:44:35,920 --> 00:44:38,720 It's being addressed to your virtual public address. 718 00:44:41,520 --> 00:44:44,520 A leading question here, where does the Internet client 719 00:44:44,520 --> 00:44:47,160 get this static virtual public address? 720 00:44:47,860 --> 00:44:49,700 This is leading to the DNS discussion 721 00:44:49,700 --> 00:44:50,980 we're going to have in the next hour. 722 00:44:51,300 --> 00:44:53,480 If you have more than one IP address 723 00:44:53,480 --> 00:44:55,640 assigned to a particular TCP IP host, 724 00:44:55,840 --> 00:44:57,580 you have to be careful to make sure 725 00:44:57,580 --> 00:45:00,160 that you load up your DNS servers with the correct address 726 00:45:00,160 --> 00:45:03,060 depending on who's going to be querying that DNS server. 727 00:45:03,480 --> 00:45:05,400 So if this is a public DNS server 728 00:45:05,400 --> 00:45:06,640 that you want people on the Internet 729 00:45:06,640 --> 00:45:08,500 to be able to get to your server with, 730 00:45:08,660 --> 00:45:11,040 then you have to make sure that you're using 731 00:45:11,520 --> 00:45:13,220 one of your virtual IP addresses for it, right? 732 00:45:13,320 --> 00:45:15,240 You don't want to load up a public DNS server 733 00:45:15,240 --> 00:45:17,760 with a 192.168. That won't do any good. 734 00:45:17,940 --> 00:45:18,820 They'll never get to you. 735 00:45:19,760 --> 00:45:21,660 So I want you to just keep in mind 736 00:45:21,660 --> 00:45:23,360 that one of the issues you have to resolve 737 00:45:23,360 --> 00:45:24,520 with network address translation 738 00:45:24,520 --> 00:45:27,120 is how to load up your DNS servers. 739 00:45:30,000 --> 00:45:31,570 On the way in, the firewall overwrites 740 00:45:32,040 --> 00:45:34,320 the destination address with your private address. 741 00:45:37,540 --> 00:45:40,440 Your DMZ server sees a request from an Internet host. 742 00:45:40,440 --> 00:45:41,280 It replies. 743 00:45:46,380 --> 00:45:48,880 The firewall on the way out, 744 00:45:48,920 --> 00:45:50,740 this reply, the firewall has to overwrite 745 00:45:50,740 --> 00:45:52,200 the source address one more time 746 00:45:52,200 --> 00:45:54,280 so the packet appears to be coming 747 00:45:54,280 --> 00:45:55,780 from a valid Internet address. 748 00:45:57,240 --> 00:45:59,640 And lastly, the Internet client out there 749 00:45:59,640 --> 00:46:02,700 receives the reply from the DMZ server. 750 00:46:03,440 --> 00:46:05,440 The client has no idea that NAT was used. 751 00:46:05,540 --> 00:46:07,320 The server has no idea that NAT was used. 752 00:46:07,760 --> 00:46:09,360 So I just wanted to enumerate here 753 00:46:09,360 --> 00:46:10,300 the four different types, 754 00:46:10,360 --> 00:46:12,880 or the four different inbound and outbound 755 00:46:12,880 --> 00:46:15,800 with both hide mode and static mode 756 00:46:15,800 --> 00:46:16,860 and just sort of step through it. 757 00:46:17,120 --> 00:46:18,280 It's not that complicated. 758 00:46:18,400 --> 00:46:20,460 Once you sit down with paper and pencil 759 00:46:20,460 --> 00:46:22,100 and work it through, it's not that tough. 760 00:46:22,220 --> 00:46:24,460 You're only changing one address in each direction, 761 00:46:25,260 --> 00:46:27,620 and all you're doing is just maintaining the consistency 762 00:46:27,620 --> 00:46:29,420 that the packets have correct addresses, 763 00:46:29,620 --> 00:46:31,720 whether they're on the inside or the outside. 764 00:46:35,280 --> 00:46:37,480 The question is, how do you protect your LAN 765 00:46:37,480 --> 00:46:39,280 from your compromised DMZ? 766 00:46:40,140 --> 00:46:41,560 Well, you do it in your firewall 767 00:46:42,520 --> 00:46:44,200 with rules in your firewall 768 00:46:44,200 --> 00:46:46,540 and that you don't allow any connections 769 00:46:46,540 --> 00:46:49,940 from hosts in the DMZ into hosts on the LAN. 770 00:46:50,280 --> 00:46:51,700 So you plan ahead, and you say, 771 00:46:51,800 --> 00:46:54,360 well, what if somebody totally owned my web server? 772 00:46:54,500 --> 00:46:55,520 What's the first thing they're going to do? 773 00:46:55,600 --> 00:46:57,680 They're going to try to use that as a stepping stone, 774 00:46:57,860 --> 00:46:59,520 a springboard into the rest of your network. 775 00:47:00,060 --> 00:47:02,700 And at that point, the firewall's going to stop them 776 00:47:02,700 --> 00:47:04,720 as they're trying to connect from the inside. 777 00:47:05,200 --> 00:47:07,580 So this is the main reason why you want to have 778 00:47:07,580 --> 00:47:09,340 your DMZ and your LAN on separate LANs 779 00:47:09,360 --> 00:47:11,720 and separate NIC cards, separate LAN segments, 780 00:47:11,940 --> 00:47:14,160 so that the firewall has the best chance possible 781 00:47:14,160 --> 00:47:16,420 of still providing a defense there. 782 00:47:16,800 --> 00:47:19,600 Your DMZ is sort of a LAN 783 00:47:19,600 --> 00:47:21,360 where things are partially trusted. 784 00:47:21,660 --> 00:47:23,400 You'll let people from the outside in 785 00:47:23,400 --> 00:47:27,040 to some degree to get on specific port numbers, 786 00:47:27,240 --> 00:47:30,680 but if something on the DMZ starts trying to connect 787 00:47:30,680 --> 00:47:32,920 back into your LAN, you don't allow it. 788 00:47:33,140 --> 00:47:36,040 And so even if it's totally compromised, that's okay, 789 00:47:36,220 --> 00:47:38,420 because you still have a firewall protecting 790 00:47:38,420 --> 00:47:39,640 your inside LAN. 791 00:47:40,240 --> 00:47:40,780 Yes? 792 00:47:43,880 --> 00:47:45,780 The question is, that could be improved 793 00:47:45,780 --> 00:47:46,900 with a cascading firewall? 794 00:47:47,340 --> 00:47:47,880 Sure. 795 00:47:48,640 --> 00:47:49,180 Question? 796 00:47:53,600 --> 00:47:56,140 Is there a reason why some services 797 00:47:56,140 --> 00:47:58,360 don't go through a firewall like voice? 798 00:47:59,500 --> 00:48:04,200 Some of the new multimedia protocols are very complex. 799 00:48:04,500 --> 00:48:05,900 They open up a control channel, 800 00:48:06,140 --> 00:48:08,040 and then they send all sorts of port, 801 00:48:08,420 --> 00:48:10,460 port number information about it, 802 00:48:10,500 --> 00:48:11,820 about the connection, 803 00:48:12,060 --> 00:48:15,360 and then they open up a whole bunch of random high TCP ports 804 00:48:15,360 --> 00:48:16,960 in order to send the data. 805 00:48:18,040 --> 00:48:22,260 Those of you who have worked with other access control lists, 806 00:48:22,360 --> 00:48:23,640 et cetera, you know that FTP 807 00:48:24,080 --> 00:48:26,040 is sort of a strange protocol, right? 808 00:48:26,120 --> 00:48:28,680 It's a strange, not well-behaving protocol, 809 00:48:28,900 --> 00:48:31,600 because once you do that port 21, port 20 thing, 810 00:48:31,640 --> 00:48:33,980 you get it set up, and then all of a sudden 811 00:48:33,980 --> 00:48:36,040 there's this discussion between the server and the client 812 00:48:36,040 --> 00:48:38,280 about which random high TCP port number 813 00:48:38,420 --> 00:48:39,580 are we going to use for the data channel. 814 00:48:39,800 --> 00:48:42,480 Well, if you have a static access control list, 815 00:48:42,680 --> 00:48:44,160 you can't prepare for that, 816 00:48:44,240 --> 00:48:47,480 because if somebody's picking port, you know, 5021, 817 00:48:48,160 --> 00:48:49,520 well, you can't, you know, 818 00:48:49,620 --> 00:48:51,660 you can't set up an access control list 819 00:48:51,660 --> 00:48:53,060 that you're constantly changing for that. 820 00:48:53,340 --> 00:48:55,840 So FTP is special. FTP is different. 821 00:48:56,040 --> 00:48:57,660 And that's why you need a firewall 822 00:48:57,660 --> 00:48:59,860 that's smart enough to understand the protocol 823 00:48:59,860 --> 00:49:01,700 and actually sniff the packets. 824 00:49:01,800 --> 00:49:02,920 And this is what an FTP, you know, 825 00:49:02,960 --> 00:49:04,820 this is how FTP is handled in a firewall, 826 00:49:04,960 --> 00:49:07,540 is the firewall is actually sniffing the control channel 827 00:49:08,420 --> 00:49:10,560 and saying, oh, you want port 5021 open? 828 00:49:10,720 --> 00:49:13,060 Well, it temporarily makes a hole in the firewall 829 00:49:13,060 --> 00:49:16,040 just for those IP addresses and just that port number 830 00:49:16,040 --> 00:49:18,540 and only while the connection is valid. 831 00:49:19,280 --> 00:49:20,940 So if you're running some of these, 832 00:49:22,700 --> 00:49:26,400 sort of the new Microsoft multimedia H323 833 00:49:26,400 --> 00:49:28,280 or whatever they are, I don't know all the details, 834 00:49:28,980 --> 00:49:31,180 you need a firewall that understands them 835 00:49:31,180 --> 00:49:33,300 and can sniff the control channel and say, 836 00:49:33,420 --> 00:49:36,680 oh, okay, I need to open up these five high TCP ports. 837 00:49:36,680 --> 00:49:39,480 It has to be a dynamic, intelligent thing. 838 00:49:39,580 --> 00:49:41,960 You can't just, you know, set something 839 00:49:41,960 --> 00:49:44,020 where we're going to allow this or we're not going to allow that. 840 00:49:44,080 --> 00:49:47,140 It requires some real dynamic thinking going on 841 00:49:47,140 --> 00:49:47,980 in order to make that work. 842 00:49:49,520 --> 00:49:52,560 It's just about time, so I'm going to release you. 843 00:49:52,660 --> 00:49:54,940 We're starting again at 4 o'clock on the dot 844 00:49:55,590 --> 00:49:57,060 and ask me questions here in between. 845 00:50:03,340 --> 00:50:06,000 Nat for newbies and not so newbies. 846 00:50:07,660 --> 00:50:09,820 We're going to run until 4.50 p.m. 847 00:50:11,900 --> 00:50:14,320 We have several more issues to discuss. 848 00:50:14,800 --> 00:50:16,900 I'm going to talk about the benefits of using NAT. 849 00:50:16,980 --> 00:50:20,100 I'm going to talk about some special firewall configuration issues. 850 00:50:20,560 --> 00:50:21,900 I'm going to talk about DNS. 851 00:50:24,700 --> 00:50:25,900 Questions at this point? 852 00:50:26,000 --> 00:50:30,020 Those of you who were here before, any lingering questions? 853 00:50:30,180 --> 00:50:32,540 Anything that we can talk about before we go forward? 854 00:50:50,660 --> 00:50:51,060 . 855 00:50:56,360 --> 00:50:57,440 All right, the question is, 856 00:50:58,200 --> 00:51:00,380 even if you have NAT configured properly 857 00:51:00,380 --> 00:51:03,340 and you have a lot of people on your LAN who are using hide mode, 858 00:51:04,380 --> 00:51:05,920 the question is, what else can... 859 00:51:06,680 --> 00:51:11,100 What else can you do to protect yourself from, what, your ISP 860 00:51:11,100 --> 00:51:13,320 or somebody who is sniffing your T1 line, say, 861 00:51:13,340 --> 00:51:14,460 and has figured out you're using NAT? 862 00:51:16,480 --> 00:51:20,740 Well, if you think the intrusion is only local to you, 863 00:51:21,460 --> 00:51:24,460 it's only between your gateway router and your ISP 864 00:51:24,460 --> 00:51:25,260 or something like that, 865 00:51:26,060 --> 00:51:28,880 go find another ISP somewhere who's willing to make... 866 00:51:28,880 --> 00:51:31,280 No, who's willing to be the other end of a VPN 867 00:51:31,280 --> 00:51:32,880 and just tunnel to them. 868 00:51:32,960 --> 00:51:35,000 Find somebody, anybody on the Internet, 869 00:51:36,460 --> 00:51:38,320 who's willing to be the other end of a VPN 870 00:51:38,320 --> 00:51:41,100 and just tunnel all of your company's traffic through that box. 871 00:51:41,320 --> 00:51:42,480 In other words, you'd be... 872 00:51:42,480 --> 00:51:44,660 And a VPN, just to be really clear, 873 00:51:44,780 --> 00:51:47,920 is an authenticated, encrypted, private channel 874 00:51:47,920 --> 00:51:50,120 over the public Internet, over a public network. 875 00:51:50,660 --> 00:51:53,140 So you could have your entire company VPN 876 00:51:53,900 --> 00:51:56,900 through your public ISP over to somebody, anybody. 877 00:51:57,220 --> 00:51:59,320 Pick somebody in Australia for 20 bucks a month. 878 00:51:59,360 --> 00:51:59,860 It doesn't matter. 879 00:52:00,200 --> 00:52:01,060 And then you get... 880 00:52:01,060 --> 00:52:03,100 Then from there, you will emerge from the tunnel 881 00:52:03,100 --> 00:52:04,340 and be released out on the Internet, 882 00:52:04,340 --> 00:52:07,340 and your ISP or anybody who's sniffing your T1 line, 883 00:52:07,460 --> 00:52:07,980 what do they see? 884 00:52:08,120 --> 00:52:10,180 They see a ton of encrypted traffic, 885 00:52:10,280 --> 00:52:11,760 and the value to them should be zero. 886 00:52:12,660 --> 00:52:14,580 So if it's local to you like that, 887 00:52:14,740 --> 00:52:17,080 then find another place to emerge on the Internet 888 00:52:17,080 --> 00:52:20,100 or find another ISP or whatever. 889 00:52:20,220 --> 00:52:21,300 That would be one way to do it. 890 00:52:22,900 --> 00:52:23,680 Other questions? 891 00:52:26,960 --> 00:52:29,680 Okay, I'm going to talk about the benefits of using NAT. 892 00:52:30,280 --> 00:52:32,200 The reason I developed this talk was because 893 00:52:32,200 --> 00:52:33,980 I think NAT is really cool. 894 00:52:34,340 --> 00:52:35,520 I think you get an awful lot of benefits 895 00:52:35,520 --> 00:52:36,980 for very little hassle. 896 00:52:37,680 --> 00:52:39,400 I find it really valuable. 897 00:52:41,040 --> 00:52:43,800 So there's basically four main issues here. 898 00:52:44,000 --> 00:52:46,540 You can hide your internal network structure from outsiders, 899 00:52:47,180 --> 00:52:49,580 structurally block all connections from the Internet 900 00:52:49,580 --> 00:52:51,740 to your hosts using hide mode, 901 00:52:51,960 --> 00:52:53,960 preserve scarce IP addresses, 902 00:52:54,120 --> 00:52:57,900 and something called preventing leakage around your firewall, 903 00:52:58,040 --> 00:52:58,640 which we'll talk about. 904 00:52:59,180 --> 00:53:00,320 The first one here. 905 00:53:01,480 --> 00:53:03,660 Since network address translation 906 00:53:04,340 --> 00:53:06,520 provides the logical bridge between 907 00:53:07,280 --> 00:53:10,240 your internal LAN IP addresses, 908 00:53:10,460 --> 00:53:11,220 which you created, 909 00:53:11,400 --> 00:53:13,660 and your external IP addresses, 910 00:53:13,800 --> 00:53:16,900 which those are the ones you got from your ISP or IANA, 911 00:53:17,020 --> 00:53:20,380 since you can completely control what happens inside 912 00:53:20,380 --> 00:53:22,920 and you can completely control that logical bridging, 913 00:53:23,740 --> 00:53:26,060 you can do whatever you want on the inside 914 00:53:27,240 --> 00:53:29,360 and basically structure it so that 915 00:53:29,360 --> 00:53:31,620 you can control what people on the outside see. 916 00:53:31,860 --> 00:53:33,320 On the outside, you could have 917 00:53:34,340 --> 00:53:36,940 five IP addresses in numeric sequence, 918 00:53:37,200 --> 00:53:39,760 but they really represent servers 919 00:53:40,140 --> 00:53:42,060 that are on five different DMZ subnets. 920 00:53:42,180 --> 00:53:42,540 Whatever. 921 00:53:42,640 --> 00:53:45,440 What matters is you can completely de-link 922 00:53:45,440 --> 00:53:47,660 what people see on the outside 923 00:53:47,660 --> 00:53:49,380 from what's actually happening on the inside. 924 00:53:50,520 --> 00:53:54,160 We talk about tools like Nmap and port scanning, etc. 925 00:53:54,440 --> 00:53:58,820 The whole point, if you're sort of a hacker 926 00:53:58,820 --> 00:54:01,680 and you're doing your basic research on some company 927 00:54:01,680 --> 00:54:03,180 and you were considering seeing 928 00:54:03,180 --> 00:54:05,940 what sort of mischief you can get up to with them, 929 00:54:06,380 --> 00:54:07,580 what's the first thing you're going to do? 930 00:54:07,620 --> 00:54:09,940 You're going to try to scan their public IP addresses, right? 931 00:54:10,000 --> 00:54:11,880 You're going to find out, well, what subnets do they have? 932 00:54:11,960 --> 00:54:12,560 What do they own? 933 00:54:12,680 --> 00:54:14,180 What domain names do they have registered? 934 00:54:15,360 --> 00:54:17,620 These IP addresses, okay, let's do a port scan. 935 00:54:17,800 --> 00:54:19,800 Okay, look, they've got a web server at these addresses. 936 00:54:19,920 --> 00:54:22,240 They respond to FTP at these addresses. 937 00:54:22,360 --> 00:54:23,980 Ooh, look, there's one of their mail servers, right? 938 00:54:24,060 --> 00:54:24,860 This is easy stuff. 939 00:54:24,940 --> 00:54:26,380 This is public information, basically. 940 00:54:27,560 --> 00:54:29,640 But the nice thing is if you're using NAT, 941 00:54:30,820 --> 00:54:33,160 then getting all of that public external information 942 00:54:33,180 --> 00:54:36,880 gives you zero information about what's happening inside. 943 00:54:37,300 --> 00:54:39,820 So this is the main benefit of NAT, 944 00:54:40,340 --> 00:54:42,920 is you can make the outside look like whatever you want, 945 00:54:43,060 --> 00:54:46,080 and it's completely orthogonal to what's happening on the inside. 946 00:54:46,180 --> 00:54:47,720 There's absolutely no relation at all. 947 00:54:47,820 --> 00:54:48,120 Question? 948 00:55:04,620 --> 00:55:08,000 Okay, the question is, you've got a NAT box running, 949 00:55:08,220 --> 00:55:10,360 which is also serving as an FTP server? 950 00:55:12,740 --> 00:55:15,640 Well, okay, well, I guess I'd start off by saying that's a bad idea. 951 00:55:15,940 --> 00:55:19,220 You should, you know, move your FTP server into the DMZ. 952 00:55:19,320 --> 00:55:21,440 I mean, FTP is notorious, you know. 953 00:55:21,500 --> 00:55:27,420 I mean, in my lab, my FTP server got ransacked two months ago through FTP. 954 00:55:27,600 --> 00:55:29,400 So I'm here to tell you, I don't like FTP. 955 00:55:29,600 --> 00:55:31,020 It's a bad thing to be serving. 956 00:55:31,860 --> 00:55:32,740 So, no. 957 00:55:32,740 --> 00:55:36,260 You don't want somebody to be able to do something evil with FTP 958 00:55:36,260 --> 00:55:37,920 and then gain control of your NAT box. 959 00:55:38,140 --> 00:55:39,360 Oh, man, you just gave them the keys. 960 00:55:39,980 --> 00:55:41,380 So, first of all, separate those out. 961 00:55:41,440 --> 00:55:44,420 Make your NAT box firewall just a NAT box firewall. 962 00:55:44,620 --> 00:55:47,060 In fact, strip that thing down so there's nothing on it 963 00:55:47,060 --> 00:55:48,760 except your NAT and your firewall. 964 00:55:51,460 --> 00:55:53,680 So, here, I'll rephrase your question. 965 00:55:53,820 --> 00:55:56,000 If you do have a FTP server inside 966 00:55:56,800 --> 00:56:00,740 and you're making it available to outsiders using, say, static mode NAT, 967 00:56:00,980 --> 00:56:02,640 yeah, people can tell that you've got, 968 00:56:02,740 --> 00:56:05,240 you know, people do a port scan, 969 00:56:05,400 --> 00:56:08,400 they will be able to tell, yeah, there's an FTP server there at that IP address. 970 00:56:08,840 --> 00:56:09,720 That's what you want. 971 00:56:09,800 --> 00:56:10,620 You're making it public. 972 00:56:10,840 --> 00:56:13,160 I mean, that's why you have an FTP server. 973 00:56:13,360 --> 00:56:16,880 So, yes, if you want people to be able to connect to your mail server, 974 00:56:17,020 --> 00:56:19,980 web server, FTP server, then, yes, if they do a port scan, 975 00:56:20,200 --> 00:56:21,480 they will see those ports open. 976 00:56:21,700 --> 00:56:22,480 That's the point. 977 00:56:22,740 --> 00:56:28,080 But you've limited it to exactly which IP addresses you want 978 00:56:28,080 --> 00:56:29,800 and exactly which port numbers you want. 979 00:56:30,020 --> 00:56:32,560 And you're not giving away any information. 980 00:56:32,740 --> 00:56:33,620 You're not giving away any information about the inside structure. 981 00:56:33,820 --> 00:56:36,540 All you're giving away is that somewhere in your organization 982 00:56:37,160 --> 00:56:40,700 there's an FTP server, but who knows what that address is. 983 00:56:40,800 --> 00:56:43,120 It's probably a private, non-routable inside address, right? 984 00:56:43,280 --> 00:56:44,920 I mean, nobody, you know, you're not giving away anything. 985 00:56:45,040 --> 00:56:49,320 You're giving away the fact that an FTP site exists at your company, 986 00:56:49,440 --> 00:56:50,960 but you've already told people that. 987 00:56:51,060 --> 00:56:52,640 So, that's not giving away anything more. 988 00:56:54,200 --> 00:56:54,860 Other questions? 989 00:56:57,340 --> 00:56:59,700 Okay, so this is the main benefit of NAT, 990 00:56:59,700 --> 00:57:02,980 is you can completely decouple your internal structure 991 00:57:03,440 --> 00:57:07,280 from your external structure, say, your external IP structure. 992 00:57:07,880 --> 00:57:10,660 So, let ScriptKitties do all the port scanning they want. 993 00:57:10,840 --> 00:57:13,980 All they're going to find out is that, yeah, your company has a web server. 994 00:57:14,760 --> 00:57:15,160 Duh. 995 00:57:16,160 --> 00:57:18,620 They're going to find out, yeah, your company has an FTP server. 996 00:57:19,340 --> 00:57:20,080 You're a genius. 997 00:57:20,260 --> 00:57:21,560 And you've got a mail server. 998 00:57:21,860 --> 00:57:23,320 All right, you're still a genius. 999 00:57:23,460 --> 00:57:24,840 Okay, that doesn't do them any good. 1000 00:57:25,800 --> 00:57:28,920 So, your public IP address structure is designed independently 1001 00:57:28,920 --> 00:57:30,440 of your internal structure. 1002 00:57:32,820 --> 00:57:34,240 Another benefit to NAT. 1003 00:57:37,080 --> 00:57:41,980 Posts protected by hide mode don't have a public IP address. 1004 00:57:42,320 --> 00:57:43,060 This is crucial. 1005 00:57:43,480 --> 00:57:46,080 In the previous hour, we talked about, in hide mode, 1006 00:57:46,180 --> 00:57:49,340 how someone can try to make a connection into one of the machines on your LAN. 1007 00:57:49,840 --> 00:57:54,520 Well, the machines on your LAN don't have a public IP address. 1008 00:57:54,860 --> 00:57:57,980 Okay, this is even better than an access control list. 1009 00:57:57,980 --> 00:58:00,460 This is even better than a router or a firewall saying, 1010 00:58:00,720 --> 00:58:03,280 oh, you know, we're not going to allow people to connect 1011 00:58:03,280 --> 00:58:05,380 to this particular IP address with this port number. 1012 00:58:06,080 --> 00:58:08,940 It's even better because this IP address doesn't even exist. 1013 00:58:09,600 --> 00:58:12,340 I mean, this is much better than an access control list. 1014 00:58:12,480 --> 00:58:14,760 This is, you've made an architectural change, 1015 00:58:14,860 --> 00:58:17,680 or it's being completely blocked by architecture. 1016 00:58:18,020 --> 00:58:20,960 They can't even tell that those machines exist. 1017 00:58:21,440 --> 00:58:24,220 Somebody on the outside could be pinging that machine all day long. 1018 00:58:24,360 --> 00:58:26,420 Well, first of all, what address would they ping? 1019 00:58:26,420 --> 00:58:29,360 Well, there is no address they could ping. 1020 00:58:29,460 --> 00:58:31,000 So you can't even get started. 1021 00:58:31,180 --> 00:58:32,240 So that's a real benefit. 1022 00:58:35,280 --> 00:58:37,340 A third benefit to network address translation 1023 00:58:38,360 --> 00:58:42,320 is to preserve scarce IPv4 IP addresses. 1024 00:58:43,300 --> 00:58:45,760 How many people here have heard of something called IPv6 1025 00:58:45,760 --> 00:58:47,800 coming along real soon now? 1026 00:58:48,160 --> 00:58:49,380 Okay, any year now. 1027 00:58:49,520 --> 00:58:50,780 I know we're working on it. 1028 00:58:52,540 --> 00:58:55,420 Back when the Internet, you know, was first starting, 1029 00:58:55,420 --> 00:58:58,480 you know, the concept of a 32-bit IP address, 1030 00:58:58,660 --> 00:59:01,340 that is such a vast IP address space, 1031 00:59:01,480 --> 00:59:02,640 nobody thought we'd ever run out. 1032 00:59:02,780 --> 00:59:04,220 Well, clearly, we're running out. 1033 00:59:06,920 --> 00:59:08,880 The same thing about 20-meg hard drives, right? 1034 00:59:09,000 --> 00:59:12,660 I mean, if a guy like me can have 16 IP addresses in his house, 1035 00:59:12,940 --> 00:59:14,500 you know, we're going to run out soon. 1036 00:59:16,880 --> 00:59:22,140 So there are only 128 Class A IP address blocks. 1037 00:59:22,740 --> 00:59:23,600 That's all there are. 1038 00:59:24,020 --> 00:59:26,220 There are only 32,000 Class Bs 1039 00:59:26,220 --> 00:59:28,000 and only about 8 million Class Cs. 1040 00:59:28,120 --> 00:59:28,860 We're running out. 1041 00:59:29,360 --> 00:59:31,600 I'll show you some examples here of people, you know, 1042 00:59:31,600 --> 00:59:33,120 sort of grabbing more than they needed. 1043 00:59:33,200 --> 00:59:34,900 There's some humorous examples here we'll get to. 1044 00:59:35,260 --> 00:59:37,200 But the fact is, there just aren't enough. 1045 00:59:37,480 --> 00:59:40,180 I mean, every organization who's bigger than five people 1046 00:59:40,180 --> 00:59:42,180 is going to claim they want their own Class B, 1047 00:59:42,820 --> 00:59:44,360 and there just aren't enough to go around. 1048 00:59:46,220 --> 00:59:48,660 Non-market allocation adds to scarcity. 1049 00:59:50,880 --> 00:59:51,280 Uh... 1050 00:59:52,340 --> 00:59:54,420 IP addresses, once they're assigned, 1051 00:59:54,700 --> 00:59:57,960 they tend to have fairly strong squatter's rights. 1052 00:59:58,200 --> 01:00:00,800 So once your company gets a Class B or a Class A, 1053 01:00:00,980 --> 01:00:03,900 you tend to hold on to it and resist people taking it from you. 1054 01:00:04,420 --> 01:00:06,060 And we'll see here some examples. 1055 01:00:06,140 --> 01:00:10,200 One of the reasons we tend to be running out of IP address blocks. 1056 01:00:10,860 --> 01:00:12,600 And also routing table restrictions. 1057 01:00:13,520 --> 01:00:15,820 The central core routers on the Internet 1058 01:00:16,520 --> 01:00:18,520 have to have routing table entries 1059 01:00:18,520 --> 01:00:23,160 for basically every single valid IP address in the world. 1060 01:00:24,620 --> 01:00:25,620 And my understanding... 1061 01:00:26,120 --> 01:00:28,320 I'm sure there's someone in this room who knows this better than I, 1062 01:00:28,380 --> 01:00:29,980 but my understanding, just a year or two ago, 1063 01:00:30,000 --> 01:00:32,740 I read an article saying, well, it's bigger than 64 megs now 1064 01:00:32,740 --> 01:00:35,280 and approaching 128, and it's really causing a problem, 1065 01:00:35,400 --> 01:00:37,860 because a lot of those routers only have 128 megs. 1066 01:00:38,340 --> 01:00:40,820 Well, first of all, imagine how difficult it is 1067 01:00:40,820 --> 01:00:42,860 for a router to dynamically search through 1068 01:00:42,860 --> 01:00:45,900 a 128-megabyte routing table to figure out 1069 01:00:46,380 --> 01:00:48,500 which, you know, which dick it should send this package to. 1070 01:00:48,500 --> 01:00:48,880 Or which packet out on. 1071 01:00:49,520 --> 01:00:52,100 So the more IP addresses you have out there 1072 01:00:52,100 --> 01:00:53,320 and the more fragmented they become, 1073 01:00:53,520 --> 01:00:55,500 the harder it is to keep straight where you route things. 1074 01:00:55,700 --> 01:00:58,220 Because a router on the central part of the Internet, 1075 01:00:58,440 --> 01:00:59,940 you know, has to be able to handle 1076 01:00:59,940 --> 01:01:01,760 pretty much every packet that comes its way. 1077 01:01:04,900 --> 01:01:06,560 Okay, let's talk about squatters' rights. 1078 01:01:07,100 --> 01:01:08,320 This is interesting stuff. 1079 01:01:10,280 --> 01:01:11,720 I was getting curious about 1080 01:01:11,720 --> 01:01:13,760 who owns all the Class A address blocks. 1081 01:01:14,020 --> 01:01:16,160 These are 1 through 127. 1082 01:01:16,440 --> 01:01:17,620 I guess 0 through 127. 1083 01:01:19,080 --> 01:01:19,820 Here's some of them. 1084 01:01:20,400 --> 01:01:20,800 40. 1085 01:01:20,880 --> 01:01:22,600 If you ever see a packet coming from 40, 1086 01:01:22,640 --> 01:01:24,200 you can thank Eli Lilly and Company. 1087 01:01:24,480 --> 01:01:26,660 Now, what are Eli Lilly and Company doing 1088 01:01:26,660 --> 01:01:28,700 with a full Class A address block? 1089 01:01:28,860 --> 01:01:29,220 I don't know. 1090 01:01:29,240 --> 01:01:31,240 That makes them equivalent to Sprint, I think, 1091 01:01:31,300 --> 01:01:33,200 in terms of how many IP addresses they have. 1092 01:01:33,320 --> 01:01:34,100 This is stupid. 1093 01:01:35,220 --> 01:01:36,020 Prudential Securities. 1094 01:01:36,880 --> 01:01:37,680 EI DuPont. 1095 01:01:38,220 --> 01:01:38,620 Merck. 1096 01:01:39,420 --> 01:01:39,820 Boeing. 1097 01:01:40,900 --> 01:01:42,280 I mean, Boeing, give me a break. 1098 01:01:42,540 --> 01:01:43,920 I mean, you know, with a Class B, 1099 01:01:44,020 --> 01:01:45,800 you could give an IP address to every seat 1100 01:01:45,800 --> 01:01:47,820 on every plane Boeing has ever sold, I think. 1101 01:01:50,860 --> 01:01:52,300 So, another one here, 1102 01:01:52,360 --> 01:01:54,120 which I think recently got yanked, 1103 01:01:54,140 --> 01:01:55,800 was Mercedes-Benz had 53. 1104 01:01:57,360 --> 01:01:58,700 You know, I like Mercedes-Benz, 1105 01:01:58,820 --> 01:02:01,080 but, you know, I'm pretty sure 1106 01:02:01,080 --> 01:02:04,260 that if I were allowed to use NAT, 1107 01:02:04,400 --> 01:02:06,460 I could hide any one of these companies 1108 01:02:06,460 --> 01:02:08,560 behind a Class C address block, right? 1109 01:02:09,200 --> 01:02:10,720 I mean, for any size company, 1110 01:02:10,880 --> 01:02:12,760 I mean, how many public IP addresses do you need? 1111 01:02:12,920 --> 01:02:14,540 Couple of web servers, couple of mail servers, 1112 01:02:14,640 --> 01:02:15,860 couple of FTP servers, right? 1113 01:02:16,020 --> 01:02:16,920 How many do you need? 1114 01:02:16,920 --> 01:02:17,740 10? 12? 1115 01:02:18,480 --> 01:02:19,880 And then maybe one hide address 1116 01:02:19,880 --> 01:02:21,680 for me to hide the rest of your people behind? 1117 01:02:21,860 --> 01:02:22,840 Or maybe a range? 1118 01:02:23,020 --> 01:02:24,720 But still, I'm willing to bet, 1119 01:02:24,900 --> 01:02:27,760 if you let me spend money on hardware like I want to, 1120 01:02:27,900 --> 01:02:29,900 I could hide any corporation in America 1121 01:02:29,900 --> 01:02:31,980 behind a single Class C IP address block. 1122 01:02:32,260 --> 01:02:34,040 You don't need, however, 16 million 1123 01:02:34,040 --> 01:02:35,640 or some ridiculous number of IP addresses. 1124 01:02:36,500 --> 01:02:38,960 So I'm looking here at number 48, Prudential Securities. 1125 01:02:39,080 --> 01:02:40,560 They got it in May of 1995. 1126 01:02:41,220 --> 01:02:42,580 Well, everyone talks about 1995 1127 01:02:42,580 --> 01:02:45,100 as the year the Internet really took off. 1128 01:02:45,300 --> 01:02:46,900 It looks like they just got it 1129 01:02:46,920 --> 01:02:47,540 in under the wire. 1130 01:02:47,980 --> 01:02:48,540 This was probably... 1131 01:02:48,540 --> 01:02:50,600 From my looking through IANA's website, 1132 01:02:50,820 --> 01:02:53,140 this is the last corporate Class A giveaway. 1133 01:02:54,060 --> 01:02:55,880 Some lucky guys there over at Prudential 1134 01:02:56,900 --> 01:02:58,820 pulling down a whole Class A for the company. 1135 01:02:58,940 --> 01:02:59,960 Now it would be a whole lot harder. 1136 01:03:01,120 --> 01:03:02,560 So, as you can see, 1137 01:03:04,200 --> 01:03:06,000 if these guys like Eli Lilly 1138 01:03:06,000 --> 01:03:07,300 can grab a whole Class A, 1139 01:03:07,440 --> 01:03:10,400 obviously we're not allocating IPv4 addresses 1140 01:03:10,400 --> 01:03:11,200 very efficiently, 1141 01:03:11,420 --> 01:03:13,040 and this is one of the reasons we're running out. 1142 01:03:17,520 --> 01:03:18,980 So, here, back to that. 1143 01:03:19,520 --> 01:03:21,420 So the reason you're able to use NAT 1144 01:03:21,420 --> 01:03:23,040 to preserve scarce IP addresses 1145 01:03:23,040 --> 01:03:25,180 is because all of your internal machines 1146 01:03:25,180 --> 01:03:26,940 have private non-routables, 1147 01:03:27,420 --> 01:03:29,540 and then the only ones that you need for the outside 1148 01:03:29,540 --> 01:03:31,780 are the static addresses that you're using 1149 01:03:31,780 --> 01:03:33,080 for people to come to your servers 1150 01:03:33,080 --> 01:03:35,160 and the hide mode addresses that you're using. 1151 01:03:35,260 --> 01:03:39,400 So almost any company could turn in their Class A 1152 01:03:39,400 --> 01:03:40,960 if they wanted to and pick up a Class C 1153 01:03:40,960 --> 01:03:42,120 and probably do just fine. 1154 01:03:44,280 --> 01:03:45,940 Another benefit of NAT, number four, 1155 01:03:45,940 --> 01:03:48,000 is preventing leakage around your firewall. 1156 01:03:48,660 --> 01:03:51,480 How many people here are sort of network administrators 1157 01:03:51,480 --> 01:03:53,440 or sysadmins or something like that, 1158 01:03:53,480 --> 01:03:55,060 or you're in charge of a network in some organization? 1159 01:03:55,700 --> 01:03:57,980 How many people have had somebody in your organization, 1160 01:03:58,240 --> 01:04:01,340 they get either a dial-up account at their desk 1161 01:04:01,340 --> 01:04:02,640 or they get a ricochet modem 1162 01:04:02,640 --> 01:04:06,400 or they get some other way to connect to the internet, 1163 01:04:07,720 --> 01:04:09,180 and before you know it, 1164 01:04:09,220 --> 01:04:10,900 they're starting to route internal LAN packets 1165 01:04:10,900 --> 01:04:12,060 through their private connection? 1166 01:04:12,320 --> 01:04:13,420 Has that happened to anybody here? 1167 01:04:14,200 --> 01:04:17,280 It's a real issue that somebody at work, 1168 01:04:17,700 --> 01:04:19,980 well, as we all know, the most dangerous thing in the world 1169 01:04:19,980 --> 01:04:21,500 is a helpful engineer with a screwdriver, 1170 01:04:22,020 --> 01:04:24,040 but let's say you get somebody at your office 1171 01:04:24,040 --> 01:04:26,920 who's sick and tired of not being able to get through the firewall 1172 01:04:26,920 --> 01:04:28,860 to do whatever he wants, so he gets a dial-up account, 1173 01:04:29,080 --> 01:04:30,840 and he gets a modem line in his office, 1174 01:04:30,880 --> 01:04:31,960 and he starts dialing out. 1175 01:04:32,080 --> 01:04:34,600 Well, let's say he's running Windows NT Server, 1176 01:04:34,860 --> 01:04:37,080 he accidentally checks the forward packets box, 1177 01:04:37,280 --> 01:04:37,960 and what do you know? 1178 01:04:38,060 --> 01:04:40,560 He's got a server connected to the internet without protection, 1179 01:04:40,720 --> 01:04:42,800 and now he's routing between the internet and your LAN, 1180 01:04:42,800 --> 01:04:44,380 and it's not going through your firewall. 1181 01:04:44,840 --> 01:04:45,980 Well, this is real trouble. 1182 01:04:47,260 --> 01:04:50,120 So one of the things that network address translation does for you 1183 01:04:50,120 --> 01:04:51,860 is it helps prevent this leakage. 1184 01:04:51,980 --> 01:04:52,660 I call this leakage. 1185 01:04:53,240 --> 01:04:55,020 If you're setting up a security perimeter 1186 01:04:55,020 --> 01:04:56,660 and you've got your firewall, 1187 01:04:56,960 --> 01:04:59,600 I mean, the whole point is that all of the traffic 1188 01:04:59,600 --> 01:05:01,380 has to go through that checkpoint, right? 1189 01:05:01,940 --> 01:05:04,580 If some of your traffic is leaking around your firewall 1190 01:05:04,580 --> 01:05:06,540 or your NAT box, well, that's not very secure 1191 01:05:06,540 --> 01:05:09,300 because you can be sure hackers are going to be leaking back, 1192 01:05:09,460 --> 01:05:10,900 well, taking it, yeah, okay, 1193 01:05:10,900 --> 01:05:12,580 leaking back in the other direction. 1194 01:05:13,260 --> 01:05:14,380 So this is not good. 1195 01:05:15,380 --> 01:05:17,800 So if you force all of your traffic, 1196 01:05:18,000 --> 01:05:20,100 well, if you use network address translation, 1197 01:05:20,360 --> 01:05:23,060 then you're forcing all of your traffic to go through the NAT box. 1198 01:05:23,240 --> 01:05:26,560 You can't leak around it because your addresses aren't any good. 1199 01:05:26,720 --> 01:05:29,980 So since the state tables on your NAT box 1200 01:05:29,980 --> 01:05:32,180 are private to your NAT box, 1201 01:05:32,900 --> 01:05:36,340 and since, therefore, nobody else can get in there 1202 01:05:36,340 --> 01:05:37,640 and sort of figure out what's going on, 1203 01:05:37,760 --> 01:05:39,080 if somebody does leak, 1204 01:05:39,080 --> 01:05:42,620 the private address they have is worthless on the outside. 1205 01:05:42,880 --> 01:05:45,440 So let's say somebody with a machine with a 192.168 1206 01:05:45,440 --> 01:05:48,460 dials up somewhere and connects to somebody and starts routing, 1207 01:05:49,180 --> 01:05:52,260 well, that 192.168 isn't going anywhere, right? 1208 01:05:52,320 --> 01:05:53,700 It's a private, non-routable address. 1209 01:05:53,820 --> 01:05:55,980 That's the point. It's worthless on the Internet. 1210 01:05:57,580 --> 01:05:59,640 Public addresses are worthless on the inside 1211 01:05:59,640 --> 01:06:02,240 because they have to go through the network address translation, 1212 01:06:03,060 --> 01:06:05,100 and traffic that leaks around the firewall 1213 01:06:05,100 --> 01:06:07,400 has senseless IP address translation. 1214 01:06:07,400 --> 01:06:10,400 So one of the nice things about NAT 1215 01:06:10,400 --> 01:06:12,940 is that you, not perfectly, 1216 01:06:13,020 --> 01:06:16,520 but fairly effectively ruin the effectiveness 1217 01:06:16,520 --> 01:06:18,920 of any traffic that tries to leak around your firewall. 1218 01:06:32,080 --> 01:06:33,380 This is Windows 98. 1219 01:06:35,780 --> 01:06:37,120 It's taking a little time here. 1220 01:06:49,740 --> 01:06:50,460 We're just going to go through the 1221 01:06:50,460 --> 01:06:55,880 Up here I have, I brought 50 copies, 1222 01:06:56,100 --> 01:06:57,740 which clearly isn't enough, 1223 01:06:57,960 --> 01:07:02,420 a printout of the presentation. 1224 01:07:02,800 --> 01:07:03,700 So if you want, 1225 01:07:03,700 --> 01:07:04,740 why don't you come up and grab one now. 1226 01:07:06,960 --> 01:07:08,700 Oh, yeah, by the end of the presentation, 1227 01:07:08,880 --> 01:07:09,340 I'll show you here. 1228 01:07:09,380 --> 01:07:11,040 This presentation is already posted on the Internet. 1229 01:07:25,780 --> 01:07:27,800 Okay, the fifth issue here. 1230 01:07:28,960 --> 01:07:30,880 Let's talk about just some basics, 1231 01:07:30,940 --> 01:07:32,800 how to configure a firewall for NAT. 1232 01:07:33,920 --> 01:07:36,140 Because NAT is usually done through a firewall. 1233 01:07:36,560 --> 01:07:38,120 You know, if someone's going to go through the trouble 1234 01:07:38,120 --> 01:07:41,580 of writing, designing, coding a firewall, 1235 01:07:41,720 --> 01:07:43,140 adding NAT is fairly easy. 1236 01:07:43,260 --> 01:07:45,100 So you should get them as a bundle. 1237 01:07:45,560 --> 01:07:48,600 I know that Checkpoint Firewall 1, 1238 01:07:48,700 --> 01:07:51,600 you get NAT with it for free, as they say. 1239 01:07:51,740 --> 01:07:53,680 And Cisco PIX has NAT also. 1240 01:07:55,480 --> 01:07:55,960 . 1241 01:08:01,400 --> 01:08:02,540 The question is, 1242 01:08:02,560 --> 01:08:05,820 what about the cheap personal hardware firewalls 1243 01:08:05,820 --> 01:08:06,840 like Linksys and D-Link? 1244 01:08:07,360 --> 01:08:08,020 They're great. 1245 01:08:08,380 --> 01:08:09,860 You know, hey, for 300 bucks, 1246 01:08:10,100 --> 01:08:11,260 geez, you can't go wrong. 1247 01:08:11,500 --> 01:08:12,600 It's not perfect. 1248 01:08:12,700 --> 01:08:15,200 You can't do all sorts of crazy configuration stuff. 1249 01:08:15,420 --> 01:08:16,680 You know, you can't get Microsoft 1250 01:08:16,680 --> 01:08:18,220 Net Meeting to go through it or something. 1251 01:08:18,620 --> 01:08:22,220 But, man, I strongly recommend everybody 1252 01:08:22,220 --> 01:08:24,160 have a personal firewall of some sort 1253 01:08:24,160 --> 01:08:25,320 if you're going to connect to the Internet. 1254 01:08:25,320 --> 01:08:27,740 And D-Link or Linksys, 1255 01:08:27,840 --> 01:08:29,380 these guys, you know, out of Taiwan 1256 01:08:29,380 --> 01:08:30,820 that make great stuff really inexpensive, 1257 01:08:31,280 --> 01:08:31,720 it works. 1258 01:08:31,840 --> 01:08:33,020 I've got a couple of them at home. 1259 01:08:34,700 --> 01:08:35,320 I'm sorry. 1260 01:08:35,440 --> 01:08:36,580 Like, what about Black Ice? 1261 01:08:37,980 --> 01:08:39,120 Black Ice didn't... 1262 01:08:39,120 --> 01:08:40,660 I think Steve Gibson's website, 1263 01:08:40,920 --> 01:08:43,980 I think he definitively proves it's worthless. 1264 01:08:44,280 --> 01:08:45,700 So go with something. 1265 01:08:45,840 --> 01:08:47,440 In his opinion, go with something else. 1266 01:08:48,480 --> 01:08:49,840 Zone Alarm is very good. 1267 01:08:50,140 --> 01:08:50,620 Yes. 1268 01:08:50,980 --> 01:08:51,460 . 1269 01:08:53,220 --> 01:08:53,860 To what? 1270 01:08:54,120 --> 01:08:54,460 . 1271 01:08:55,540 --> 01:08:56,080 . 1272 01:08:59,840 --> 01:09:02,100 Do hardware, firewalls, 1273 01:09:02,100 --> 01:09:04,180 and NAT boxes like the D-Link or the Linksys, 1274 01:09:04,260 --> 01:09:06,240 do they add much network overhead? 1275 01:09:06,680 --> 01:09:07,120 I think... 1276 01:09:07,120 --> 01:09:09,000 You're really asking do they add much latency? 1277 01:09:09,900 --> 01:09:12,040 No, under-debatable, milliseconds, 1278 01:09:12,940 --> 01:09:13,800 not a problem. 1279 01:09:14,200 --> 01:09:15,980 It's in hardware. 1280 01:09:16,120 --> 01:09:17,080 You know, it's an ASIC. 1281 01:09:17,560 --> 01:09:18,100 . 1282 01:09:19,460 --> 01:09:20,000 . 1283 01:09:22,160 --> 01:09:22,700 . 1284 01:09:27,580 --> 01:09:33,020 The announcement is that many of those boxes have NAT only and do not have firewall. 1285 01:09:33,960 --> 01:09:36,360 You're saying the Netgear in particular does have firewall? 1286 01:09:44,620 --> 01:09:49,660 Okay, the Netgear box includes some rules-based firewall technology from SonicWall. 1287 01:09:49,660 --> 01:09:56,380 One of the ones I use is a D-Link box that also provides my wireless, my 802.11b Wi-Fi connection. 1288 01:09:56,560 --> 01:10:05,720 It is a wireless node and NAT box and firewall with rules together for, I don't know, $230, something like that. 1289 01:10:05,760 --> 01:10:07,540 Whatever, the price is falling. You can't go wrong. 1290 01:10:08,160 --> 01:10:10,100 You know, get one that has firewall and NAT. 1291 01:10:11,320 --> 01:10:12,020 Other questions? 1292 01:10:13,500 --> 01:10:13,980 Okay. 1293 01:10:14,640 --> 01:10:15,120 Okay. 1294 01:10:18,960 --> 01:10:19,440 Okay. 1295 01:10:19,660 --> 01:10:22,940 The question is, am I going to address circumvention of NAT device? 1296 01:10:24,080 --> 01:10:24,560 No. 1297 01:10:26,140 --> 01:10:27,800 This is designed for newbies. 1298 01:10:28,300 --> 01:10:35,280 This is a tutorial so that the goal is that at the end of this you have more confidence and information about setting up NAT 1299 01:10:35,280 --> 01:10:38,120 rather than confidence and information about cracking it. 1300 01:10:41,160 --> 01:10:42,540 Is that the next hour? 1301 01:10:42,720 --> 01:10:43,500 That's the next hour. 1302 01:10:44,040 --> 01:10:45,960 We're meeting at a bar downtown. 1303 01:10:49,500 --> 01:11:03,720 So, I hate to be so simplistic here to say that, you know, in order to configure NAT on your firewall, the first step should be document your network, but it's, gosh, it's awfully important to do that. 1304 01:11:03,820 --> 01:11:08,340 If you don't know what you have, you don't know where you're going, and it's sometimes a lot of work to really figure out what you've got. 1305 01:11:08,840 --> 01:11:14,820 You know, I use what I call the pre-beta version of Visio. 1306 01:11:14,860 --> 01:11:15,940 Visio 0.1. 1307 01:11:15,960 --> 01:11:26,540 Visio 0.9, which is a piece of 8.5 by 11 paper and a pencil, and I draw and I make the diagram, and I draw in my, you know, I draw in all my subnets and everything, and it works just fine. 1308 01:11:27,000 --> 01:11:31,980 I've got to tell you, it's actually more complex than you think to really sit down and diagram what you've got. 1309 01:11:32,200 --> 01:11:33,560 You have to be really clear. 1310 01:11:33,660 --> 01:11:35,640 You have to know what are your IP subnets here. 1311 01:11:36,140 --> 01:11:38,480 You know, what are the default gateways? 1312 01:11:38,600 --> 01:11:39,920 What are the subnet masks? 1313 01:11:40,320 --> 01:11:42,060 You know, and you've got to learn all that technology. 1314 01:11:42,080 --> 01:11:45,740 You know, you have to learn all that terminology, you know, 255, 255, 255. 1315 01:11:46,260 --> 01:11:47,420 248, what does that mean? 1316 01:11:47,960 --> 01:11:48,760 You've got to figure that out. 1317 01:11:48,900 --> 01:11:52,360 So that's the first part, document your network. 1318 01:11:52,560 --> 01:11:54,140 Number two, make a plan. 1319 01:11:54,260 --> 01:11:55,200 Figure out where you want to be. 1320 01:11:55,840 --> 01:12:01,320 If you're going to be instituting NAT for the first time, there's actually some substantial changes you need to make to your network. 1321 01:12:01,440 --> 01:12:03,180 You're changing all of your internal IP addresses. 1322 01:12:05,580 --> 01:12:08,680 One of the technical things we've got to talk about here is ARP issues. 1323 01:12:09,220 --> 01:12:14,920 Just briefly, ARP is a Layer 3, Layer 2 protocol called Address Resolution Protocol. 1324 01:12:15,960 --> 01:12:19,800 This is how you convert Layer 3 addresses into Ethernet addresses. 1325 01:12:20,340 --> 01:12:21,900 Think of it as a vending machine. 1326 01:12:22,440 --> 01:12:26,540 You put in a Layer 3 address, and what you get out is a Layer 2 address. 1327 01:12:27,780 --> 01:12:33,660 If somebody's on your local area network and you want to talk to them through Ethernet, because that's how you talk to somebody on your LAN, 1328 01:12:33,800 --> 01:12:37,980 and you know their IP address but not their Ethernet address, you send out an ARP broadcast. 1329 01:12:38,200 --> 01:12:44,340 You say, yo, anybody out there on this IP address, and whoever has it answers back and gives you his Ethernet address. 1330 01:12:44,520 --> 01:12:44,820 Whatever. 1331 01:12:44,820 --> 01:12:48,220 We're going to talk about ARP here in a minute, but it's a technical detail you need to know. 1332 01:12:48,300 --> 01:12:50,780 It's sort of one of the few things we need to talk about down at Layer 2. 1333 01:12:52,200 --> 01:12:56,280 Also, we have to talk about routing issues, because if you're changing all of your IP addresses, 1334 01:12:56,480 --> 01:12:58,380 well, clearly you have to change all your routing setups. 1335 01:13:00,180 --> 01:13:02,560 Also, there's a special thing you have to worry about here. 1336 01:13:03,680 --> 01:13:09,620 Your firewall is a router first and has a bad attitude second, right? 1337 01:13:09,980 --> 01:13:11,160 That's what a firewall is. 1338 01:13:11,300 --> 01:13:14,740 It's a router first with an added bad attitude. 1339 01:13:15,260 --> 01:13:21,140 And when you're setting up your firewall, let's say if you're doing checkpoint firewall one, 1340 01:13:21,760 --> 01:13:27,880 and it sits on top of a Solaris box or an NT box, you want to get your NT box up and running first 1341 01:13:27,880 --> 01:13:32,860 and make sure you can route through it first before you add the firewall and start dropping packets. 1342 01:13:33,480 --> 01:13:34,620 So keep that in mind. 1343 01:13:35,480 --> 01:13:42,620 A firewall is just a router with some advanced, sophisticated access control lists and similar types of things. 1344 01:13:43,440 --> 01:13:44,760 So it's an interesting question. 1345 01:13:44,820 --> 01:13:53,700 If a packet is coming into your network and it needs to be NATed, say, static mode, 1346 01:13:55,420 --> 01:14:02,320 and while it's in that NAT box, its to address for IP gets changed, right? 1347 01:14:02,420 --> 01:14:05,200 It gets changed from the virtual public IP address into the private one. 1348 01:14:06,040 --> 01:14:08,720 Well, that brings up an interesting question about routing, 1349 01:14:08,860 --> 01:14:14,100 because where you route a packet is based entirely upon what is the to address of that packet. 1350 01:14:14,100 --> 01:14:18,000 So now you have a packet whose address, you know, its mailing address is changing, 1351 01:14:18,400 --> 01:14:20,000 so there's issues we have to go over here. 1352 01:14:20,060 --> 01:14:22,880 We have to talk about, you know, exactly how do you handle that. 1353 01:14:22,940 --> 01:14:26,080 How do you route a packet whose address is changing dynamically on you? 1354 01:14:26,200 --> 01:14:28,700 Do you route it to the public one? Do you route it to the private one? 1355 01:14:28,920 --> 01:14:32,420 Do you route first and NAT second? Do you NAT first? Whatever. We'll talk about that. 1356 01:14:46,720 --> 01:14:47,760 Oh, I'm locked up. 1357 01:14:50,640 --> 01:14:52,480 I should have used Linux. Thank you. 1358 01:14:53,520 --> 01:14:54,200 Oh, here we go. 1359 01:15:21,520 --> 01:15:26,680 I have this wireless LAN card here, so I'm probably being hacked. 1360 01:15:27,460 --> 01:15:33,100 We should expect messages coming up on the screen here any minute. 1361 01:15:39,780 --> 01:15:42,520 Can somebody return one of the printouts, please? 1362 01:15:43,420 --> 01:15:44,080 Thank you. 1363 01:15:44,100 --> 01:15:44,300 Thank you. 1364 01:16:02,500 --> 01:16:04,400 Well, unfortunately this machine... 1365 01:16:04,400 --> 01:16:06,260 Oh, here we go. We just got some action. 1366 01:16:09,680 --> 01:16:12,100 Okay, this is the next slide, so I'm going to try to continue on this. 1367 01:16:12,140 --> 01:16:13,140 If not, I can use the whiteboard. 1368 01:16:14,100 --> 01:16:18,460 In terms of documenting your network, as I said, this is really just the basics. 1369 01:16:18,840 --> 01:16:24,520 IP addresses, subnets, gateways, routers, firewalls, all connections through the security perimeter. 1370 01:16:24,900 --> 01:16:26,460 Again, I'm just talking about documenting. 1371 01:16:26,500 --> 01:16:29,040 What do you have, just so you know what you've got currently going? 1372 01:16:36,520 --> 01:16:41,200 I guess I'm going to continue to speak to the next slide while it slowly comes up here. 1373 01:16:43,220 --> 01:16:44,240 Making a plan. 1374 01:16:47,100 --> 01:16:50,280 The main issues are just what are your public and your private IP addresses. 1375 01:16:50,540 --> 01:16:56,620 Whatever your documentation is, your hand drawing, et cetera, you need to have it at least as detailed for what you're doing going forward. 1376 01:16:57,340 --> 01:17:04,060 And your NAT rules, you need to figure out in advance what are you going to do in terms of which machines are going to be in the LAN, 1377 01:17:04,280 --> 01:17:10,500 and are going to have hide mode network address translation, and which machines are going to be in your DMZ and have static mode. 1378 01:17:11,560 --> 01:17:12,660 Man, this is annoying. 1379 01:17:19,140 --> 01:17:21,940 I hate to reboot because it just takes forever on this machine. 1380 01:17:27,660 --> 01:17:29,080 I'm waiting for my mouse to come back. 1381 01:17:34,720 --> 01:17:35,120 Huh? 1382 01:17:37,320 --> 01:17:39,600 Yeah, that's next on my list. 1383 01:17:41,920 --> 01:17:44,340 The question is let's talk about DNS issues. 1384 01:17:45,480 --> 01:17:47,820 DNS issues are three slides away. 1385 01:17:52,020 --> 01:17:53,260 We've already been over at VPN. 1386 01:17:54,640 --> 01:18:02,100 In case you missed the first hour, there was a question about VPN, about VPN compatibility with network address translation. 1387 01:18:02,460 --> 01:18:05,680 It's the one sort of barely resolved issue. 1388 01:18:08,860 --> 01:18:09,420 VPN. 1389 01:18:11,920 --> 01:18:23,080 Okay, network address translation works best with, how do we describe them, well-behaved protocols that do not embed the IP address inside the payload of the packet. 1390 01:18:23,680 --> 01:18:31,540 Because VPN, excuse me, because network address translation, your NAT box is changing your IP address as these packets go in and out of your security perimeter. 1391 01:18:31,940 --> 01:18:34,960 So a well-behaved protocol, that doesn't matter. 1392 01:18:35,040 --> 01:18:35,700 They don't care. 1393 01:18:35,700 --> 01:18:41,300 They only look in the packet itself for the IP to and from destination and rely on that. 1394 01:18:42,080 --> 01:18:45,220 VPNs are special because they've added some security issues in there. 1395 01:18:45,280 --> 01:18:51,200 They've added some security protections and that they actually embed the IP address in the payload or encrypt it and embed it. 1396 01:18:51,600 --> 01:19:03,020 And so you can get some problems because on the other end of your VPN, it sees a packet coming from one IP address and yet the inside embedded information gives a different IP address. 1397 01:19:03,180 --> 01:19:05,680 So there are still issues with VPNs and network address translation. 1398 01:19:05,700 --> 01:19:14,100 The best solution is to use an integrated firewall that has both network address translation and VPN and that issue will be resolved by itself. 1399 01:19:14,400 --> 01:19:14,580 Yes. 1400 01:19:14,860 --> 01:19:16,000 What about hardware VPN? 1401 01:19:16,640 --> 01:19:17,520 What about hardware VPN? 1402 01:19:19,100 --> 01:19:22,560 Oh, I don't have a, I'm not able to really give a recommendation one way or the other. 1403 01:19:22,620 --> 01:19:23,580 There's a lot of different solutions. 1404 01:19:24,580 --> 01:19:27,120 IPSec has emerged as the standard. 1405 01:19:27,260 --> 01:19:29,600 So if someone is using IPSec, you should be fine. 1406 01:19:30,300 --> 01:19:30,740 Yes. 1407 01:19:30,940 --> 01:19:35,300 Talk about mail servers and key servers and what that would mean. 1408 01:19:35,340 --> 01:19:35,680 Go ahead. 1409 01:19:36,280 --> 01:19:37,440 What about SQL servers? 1410 01:19:37,620 --> 01:19:38,800 Is there anything you can say about that? 1411 01:19:38,980 --> 01:19:50,040 SQL servers or people's SQL servers are behind firewalls and you're employing that even though they can give them some support and can be used to see that people's servers are a big deal. 1412 01:19:50,420 --> 01:19:52,380 Is there anything you can say about those other boxes? 1413 01:19:53,160 --> 01:20:04,780 The question is I've talked about web servers, FTP servers, mail servers as being servers that you want available to people on the outside on the Internet and that you put them in the DMZ because of it. 1414 01:20:04,780 --> 01:20:07,220 And the question is does the same thing apply to SQL servers? 1415 01:20:07,460 --> 01:20:10,760 You have SQL servers outside the firewall that need to come to you guys to report. 1416 01:20:11,060 --> 01:20:13,340 You have SQL servers outside your firewall. 1417 01:20:13,760 --> 01:20:15,620 Then you can talk to SQL servers inside the firewall. 1418 01:20:15,760 --> 01:20:19,440 Well, ask the hackers who own that SQL server to do that for you. 1419 01:20:19,760 --> 01:20:20,700 I mean, whatever. 1420 01:20:21,800 --> 01:20:25,840 They need to talk to, you have SQL servers outside the firewall that need to. 1421 01:20:25,960 --> 01:20:27,100 By a PTP IP. 1422 01:20:27,600 --> 01:20:29,340 Talk back to some. 1423 01:20:29,760 --> 01:20:30,180 . 1424 01:20:31,400 --> 01:20:31,820 . 1425 01:20:32,300 --> 01:20:32,780 . 1426 01:20:35,900 --> 01:20:38,900 I guess I don't understand the configuration. 1427 01:20:39,140 --> 01:20:40,760 Why do you have SQL servers outside the firewall? 1428 01:20:45,100 --> 01:20:45,580 . 1429 01:20:47,440 --> 01:20:47,920 . 1430 01:20:53,460 --> 01:21:01,800 Well SQL uses, you know, as you mentioned the standard port numbers where you can configure that with your firewall or with your access control list and your router to allow or not allow that. 1431 01:21:01,800 --> 01:21:03,680 those port numbers. I think you can actually change those 1432 01:21:03,680 --> 01:21:05,660 port numbers, but if you 1433 01:21:05,660 --> 01:21:07,300 want to allow someone on the internet access 1434 01:21:08,280 --> 01:21:08,980 to your 1435 01:21:09,600 --> 01:21:11,400 whatever server, put it in your DMZ 1436 01:21:11,400 --> 01:21:13,560 and put the appropriate holes in the firewall. It's no 1437 01:21:13,560 --> 01:21:15,200 different. There's no difference between 1438 01:21:15,800 --> 01:21:17,660 SQL Server or Web Server. It's a little strange 1439 01:21:17,660 --> 01:21:19,640 to make that accessible to someone in the outside 1440 01:21:19,640 --> 01:21:21,780 world. It sounds a little risky, but there shouldn't 1441 01:21:21,780 --> 01:21:22,260 be any difference. 1442 01:21:23,400 --> 01:21:23,900 Excuse me? 1443 01:21:26,480 --> 01:21:26,880 Okay. 1444 01:21:28,160 --> 01:21:28,960 Question, yes. 1445 01:21:40,660 --> 01:21:42,060 Yes. 1446 01:22:18,320 --> 01:22:20,120 Okay, the question 1447 01:22:20,120 --> 01:22:22,260 involves some complicated interactions 1448 01:22:22,260 --> 01:22:24,440 between NAT and VPN. I guess in particular 1449 01:22:24,440 --> 01:22:26,620 using a cable modem at home and trying to use 1450 01:22:26,620 --> 01:22:27,860 VPN to get back into work. 1451 01:22:28,520 --> 01:22:30,560 Those interactions are a lot more 1452 01:22:30,560 --> 01:22:31,720 I love this. 1453 01:22:32,080 --> 01:22:33,760 Are a lot more complicated than 1454 01:22:34,700 --> 01:22:36,000 well, it looks like 1455 01:22:36,000 --> 01:22:38,160 we've got an hour now, don't we? 1456 01:22:39,580 --> 01:22:40,140 Yeah. 1457 01:22:46,920 --> 01:22:48,500 Here comes safe mode, I bet. 1458 01:22:49,380 --> 01:22:50,340 It's a complicated 1459 01:22:50,340 --> 01:22:52,720 interaction between 1460 01:22:55,240 --> 01:22:56,180 I'm so embarrassed. 1461 01:22:57,540 --> 01:22:58,480 It's a complicated 1462 01:22:58,480 --> 01:23:00,440 interaction between NAT and VPN. 1463 01:23:00,780 --> 01:23:01,760 I'm not prepared to 1464 01:23:01,800 --> 01:23:02,940 get into the details on it. 1465 01:23:03,060 --> 01:23:04,860 That's a lot tougher problem to solve. 1466 01:23:05,260 --> 01:23:05,740 You can control it. 1467 01:23:05,740 --> 01:23:07,480 But I'm saying that I figured it out that 1468 01:23:07,480 --> 01:23:09,360 right now, it would be a 1469 01:23:09,360 --> 01:23:11,520 program that hi4 would allow 1470 01:23:11,520 --> 01:23:13,500 to see a VPN account 1471 01:23:13,500 --> 01:23:14,720 but it's not that easy. 1472 01:23:15,920 --> 01:23:17,280 I get to the perspective 1473 01:23:17,280 --> 01:23:18,780 that VPN 1474 01:23:18,780 --> 01:23:22,320 is going to send it out 1475 01:23:22,320 --> 01:23:23,380 and that's really 1476 01:23:23,380 --> 01:23:25,020 wild for a 19-year-old 1477 01:23:25,020 --> 01:23:26,840 that we were going to need a hi4 1478 01:23:26,840 --> 01:23:28,320 after it was changed. 1479 01:23:29,040 --> 01:23:30,580 I don't want to send that off 1480 01:23:30,580 --> 01:23:31,220 to that app. 1481 01:23:31,840 --> 01:23:35,100 What kind of box were you, what kind of NAT box were you using? 1482 01:23:36,240 --> 01:23:36,760 OpenBSD. 1483 01:23:36,760 --> 01:23:37,160 OpenBSD, okay. 1484 01:23:38,980 --> 01:23:39,500 Okay. 1485 01:23:40,780 --> 01:23:41,300 Okay. 1486 01:23:43,900 --> 01:23:44,740 Other questions? 1487 01:23:46,580 --> 01:23:47,100 Yes. 1488 01:23:48,980 --> 01:23:51,400 Do ISPs use NATing? 1489 01:24:13,720 --> 01:24:16,120 It's a public, okay, the question is, 1490 01:24:20,300 --> 01:24:25,740 the question is, you went to a Steve Gibson's website, you tested the ShieldsUp thing, 1491 01:24:26,380 --> 01:24:29,620 and it reported back that you were on a private network, congratulations, 1492 01:24:29,740 --> 01:24:31,200 and this was news to you. 1493 01:24:31,220 --> 01:24:34,360 Are you on a public IP address? 1494 01:24:34,480 --> 01:24:35,220 It looks like a regular. 1495 01:24:39,460 --> 01:24:44,520 Is it possible that your ISP is doing some firewalling for you 1496 01:24:44,520 --> 01:24:46,120 and protecting some of those port numbers? 1497 01:24:46,480 --> 01:24:46,620 Yes. 1498 01:24:46,680 --> 01:24:47,140 Okay. 1499 01:25:04,240 --> 01:25:08,320 It might be the, well, you've got a public routable IP address, 1500 01:25:08,500 --> 01:25:11,440 and I've never heard of an ISP issuing non-routables to anybody. 1501 01:25:11,960 --> 01:25:13,320 So, I don't know. 1502 01:25:14,420 --> 01:25:17,700 Oh, you've got an ISP for dial-up who gives you non-routables? 1503 01:25:19,060 --> 01:25:19,520 Really? 1504 01:25:19,980 --> 01:25:21,100 Oh, sorry to hear that. 1505 01:25:22,540 --> 01:25:23,400 Other questions? 1506 01:25:24,280 --> 01:25:24,740 Yes. 1507 01:25:25,780 --> 01:25:28,380 So, I just assumed that all companies use NAT. 1508 01:25:28,580 --> 01:25:29,940 Am I wrong with that? 1509 01:25:29,940 --> 01:25:32,120 The question is, should I assume... 1510 01:25:32,120 --> 01:25:33,940 I've always assumed... 1511 01:25:33,940 --> 01:25:35,160 This sounds like a hacker question. 1512 01:25:35,500 --> 01:25:37,840 I've always assumed that companies would use NAT. 1513 01:25:38,060 --> 01:25:39,300 I'm surprised that... 1514 01:25:39,300 --> 01:25:42,400 I'm always hearing the impression that most companies don't use NAT. 1515 01:25:42,640 --> 01:25:45,480 All right, the question is, you've always assumed most companies use NAT, 1516 01:25:45,640 --> 01:25:50,180 and now, I guess I'm talking here sort of implying that not all companies use NAT, 1517 01:25:50,240 --> 01:25:51,360 and maybe they should get with the program. 1518 01:25:51,800 --> 01:25:52,780 I don't really know. 1519 01:25:52,820 --> 01:25:54,260 I think there's a lot of companies... 1520 01:25:54,260 --> 01:25:55,960 I mean, all the companies I've worked for, 1521 01:25:56,120 --> 01:25:58,600 I mean, everybody is desperately short of time and resources. 1522 01:25:59,060 --> 01:25:59,920 And if something... 1523 01:25:59,920 --> 01:26:02,540 If a company's been around for a long time and they've got public addresses 1524 01:26:02,540 --> 01:26:06,020 and it seems to work and, you know, they haven't been hacked severely recently, 1525 01:26:06,060 --> 01:26:07,780 there's no incentive for people to change that. 1526 01:26:08,400 --> 01:26:13,080 If you, you know, if you're Eli Lilly and company and you've got a Class A 1527 01:26:13,080 --> 01:26:15,880 and you want to preserve your squatters' rights, what are you going to do? 1528 01:26:15,940 --> 01:26:18,220 You're going to make as much use of those addresses as you can, right? 1529 01:26:18,320 --> 01:26:18,680 You're going to... 1530 01:26:19,100 --> 01:26:21,700 You know, you're not going to hide behind a single Class C 1531 01:26:21,700 --> 01:26:24,500 and then sit around and wait for someone to grab that Class A out of your hands, right? 1532 01:26:24,560 --> 01:26:26,040 You're going to make as much use of that as you can. 1533 01:26:27,480 --> 01:26:29,820 The coffee pot at Eli Lilly has its own... 1534 01:26:29,820 --> 01:26:30,260 IP address. 1535 01:26:32,560 --> 01:26:34,700 So, I don't know. 1536 01:26:34,800 --> 01:26:37,900 I don't really know how to really answer that question. 1537 01:26:38,120 --> 01:26:40,680 I suspect there's an awful lot of organizations out there 1538 01:26:40,680 --> 01:26:44,400 who, many years ago, got the network working once 1539 01:26:44,400 --> 01:26:47,640 and then dropped it and went on to other emergencies and haven't been back. 1540 01:26:48,000 --> 01:26:48,820 You know, that's... 1541 01:26:48,820 --> 01:26:50,760 You know how things get typically configured, right? 1542 01:26:50,780 --> 01:26:54,540 You get it working once and then it's not your most important five-alarm fire 1543 01:26:54,540 --> 01:26:56,580 and so you don't get back to it and, well, you know, 1544 01:26:56,620 --> 01:26:59,800 everyone's getting on the Internet and no one's complaining and, you know, 1545 01:26:59,820 --> 01:27:02,460 I got to do something else. 1546 01:27:02,480 --> 01:27:02,920 I don't have time. 1547 01:27:03,040 --> 01:27:06,640 So, I suspect there's lots of companies out there who have firewalls who aren't using that 1548 01:27:06,640 --> 01:27:10,120 and, yeah, I imagine so, but I don't have data on it. 1549 01:27:10,860 --> 01:27:11,540 Yes, question? 1550 01:27:11,920 --> 01:27:13,880 I don't think things go on like that. 1551 01:27:14,020 --> 01:27:15,520 It's that, you know, when you have them, 1552 01:27:15,660 --> 01:27:19,200 you have to switch with all your printers and pods and switches 1553 01:27:19,200 --> 01:27:20,840 and everything that has a real IP. 1554 01:27:21,500 --> 01:27:23,480 You know, we're all the same, right? 1555 01:27:23,480 --> 01:27:26,000 So, you know, everything's going to be down. 1556 01:27:26,060 --> 01:27:28,660 Or, you know, some of the things won't do that. 1557 01:27:30,900 --> 01:27:35,880 This is a good observation that converting IP addresses 1558 01:27:35,880 --> 01:27:39,600 or switching IP addresses at your organization is a real pain 1559 01:27:39,600 --> 01:27:40,740 and you're exactly right. 1560 01:27:40,860 --> 01:27:43,000 You sort of have to do it in one swell foop. 1561 01:27:43,420 --> 01:27:44,700 It's a lot of work. 1562 01:27:44,780 --> 01:27:49,440 It's a long, bad weekend and there's a lot of ways to go wrong on it. 1563 01:27:49,460 --> 01:27:50,300 I'll talk about that a little bit. 1564 01:27:52,020 --> 01:27:55,700 Yeah, if you're a company who's already got a few thousand users set up 1565 01:27:55,700 --> 01:27:59,560 with public IP addresses, who wants the headache of converting them over 1566 01:27:59,560 --> 01:27:59,800 to a public IP address? 1567 01:27:59,800 --> 01:28:00,240 Or to private? 1568 01:28:00,400 --> 01:28:01,320 I completely agree. 1569 01:28:02,040 --> 01:28:02,560 Yes? 1570 01:28:02,800 --> 01:28:05,620 I actually went through that situation myself with the governor of court. 1571 01:28:06,820 --> 01:28:12,720 There's about 3,000 people in the company and we switched IPs for whatever reason. 1572 01:28:12,980 --> 01:28:19,000 And it took three days to actually do all the IP changes and all the machines, 1573 01:28:19,680 --> 01:28:20,300 printers, everything. 1574 01:28:20,660 --> 01:28:22,260 And then I'm talking about those. 1575 01:28:22,520 --> 01:28:23,860 There's a myriad of different problems. 1576 01:28:24,060 --> 01:28:24,900 So, yeah. 1577 01:28:25,160 --> 01:28:28,820 Okay, so here's a war story up here about it took three days 1578 01:28:28,820 --> 01:28:29,780 to change the IP address. 1579 01:28:29,780 --> 01:28:31,640 It took three days to change IP addresses when you changed ISPs. 1580 01:28:31,920 --> 01:28:35,760 If you were using private IP addresses and you changed ISPs, 1581 01:28:36,300 --> 01:28:38,880 you only have to reconfigure your NAT box because none 1582 01:28:38,880 --> 01:28:41,480 of your internal addresses change, just your external ones. 1583 01:28:41,640 --> 01:28:46,460 You get a new class C from Bob's ISP, you're up and running in ten minutes, right? 1584 01:28:46,560 --> 01:28:47,320 It's not that tough. 1585 01:28:47,740 --> 01:28:50,700 Another real benefit of going with NAT. 1586 01:28:50,920 --> 01:28:51,240 Yes? 1587 01:28:51,420 --> 01:28:52,520 This leads to my question. 1588 01:28:52,660 --> 01:28:59,640 If you have a home network and you have a dynamically assigned public number, 1589 01:28:59,780 --> 01:29:06,080 but a small home network, how much trouble is that to maintain that side of the network? 1590 01:29:06,120 --> 01:29:11,380 Okay, the question is, what if you have a NAT box and on the outside, 1591 01:29:11,620 --> 01:29:16,160 the public IP address side of it, you're using a DHCP address, 1592 01:29:16,320 --> 01:29:19,180 an address that's dynamically given to you by your internet service provider. 1593 01:29:19,880 --> 01:29:22,880 Traditionally, typically, my, from what I've seen in NAT boxes, 1594 01:29:22,900 --> 01:29:25,460 you have to hard code in the external IP address. 1595 01:29:25,600 --> 01:29:28,160 But this is trouble if you've got, if you're getting it dynamically. 1596 01:29:29,000 --> 01:29:29,480 This is a problem. 1597 01:29:29,480 --> 01:29:31,140 The new boxes now allow for that. 1598 01:29:31,240 --> 01:29:38,140 I think my D-Link Wi-Fi hub, it's a combination of a switch, a firewall, a NAT box, 1599 01:29:38,460 --> 01:29:42,980 and a coffee maker, I think, and it's got, I think you can do DHCP on the outside. 1600 01:29:43,160 --> 01:29:45,120 So new hardware will allow that. 1601 01:29:45,460 --> 01:29:47,940 Checkpoint firewall one, I don't think so at this point. 1602 01:29:48,040 --> 01:29:53,680 So this, you know, there's a need for that, and it's easy to code it, so expect it soon. 1603 01:29:54,400 --> 01:29:54,840 Question? 1604 01:29:56,100 --> 01:29:59,460 More of an answer to the, excuse me, 1605 01:30:02,320 --> 01:30:06,300 if your network's set up properly, or you have subnets, 1606 01:30:07,220 --> 01:30:13,400 and so you can place your NAT box strategically throughout your company 1607 01:30:13,400 --> 01:30:15,680 and update the subnet at the time, 1608 01:30:15,840 --> 01:30:18,420 and you can look at the data. 1609 01:30:18,840 --> 01:30:25,960 The suggestion is a way that you can incrementally walk your company through a major IP address change. 1610 01:30:26,400 --> 01:30:29,300 And that is, if you've broken your network up into subnets, 1611 01:30:29,460 --> 01:30:31,840 you can do them one at a time, and use NAT boxes, 1612 01:30:31,900 --> 01:30:35,000 and have the outside of the NAT box still be in the old regime, 1613 01:30:35,660 --> 01:30:39,580 while the inside, or the downside, excuse me, the inside of the NAT box with the LAN, 1614 01:30:39,720 --> 01:30:40,920 that they're all going to be on the new addresses. 1615 01:30:41,040 --> 01:30:44,700 So if you're thinking cleverly through it, and you're willing to go through some of that, yeah, 1616 01:30:44,740 --> 01:30:49,480 you can sort of walk your way through one LAN at a time, and then maybe at the end, 1617 01:30:49,540 --> 01:30:53,360 there's a bad weekend where you have to sort of yank all those out, or do something else. 1618 01:30:53,440 --> 01:30:55,440 But yeah, you can incrementally work your way through. 1619 01:30:55,540 --> 01:30:56,560 It's still a headache. 1620 01:30:56,780 --> 01:30:58,540 There's still going to be problems, and Monday morning, 1621 01:30:58,580 --> 01:30:59,440 people are still going to be working through it. 1622 01:30:59,440 --> 01:31:00,380 They're going to be calling you, and they're going to be mad. 1623 01:31:00,840 --> 01:31:02,080 Yes, in the back. 1624 01:31:18,880 --> 01:31:22,660 Okay, another tip here, DHCP is particularly helpful. 1625 01:31:22,940 --> 01:31:26,360 Those of you who haven't discovered it yet, Dynamic Host Configuration Protocol, 1626 01:31:27,050 --> 01:31:29,300 it's a great way to propagate network changes 1627 01:31:29,440 --> 01:31:31,220 through your network, and your users don't even know. 1628 01:31:31,800 --> 01:31:32,780 I need to move on. 1629 01:31:33,020 --> 01:31:38,120 We've only got about seven or eight minutes left, so I'm going to try to make some more tracks here. 1630 01:31:38,160 --> 01:31:39,800 Windows 98 seems to be... 1631 01:31:44,820 --> 01:31:46,080 I spoke too soon. 1632 01:31:51,820 --> 01:31:52,520 There we go. 1633 01:31:59,440 --> 01:32:00,960 Okay, we talked about making a plan. 1634 01:32:03,860 --> 01:32:10,160 Back to Address Resolution Protocol, if you're going to be using, on the outside of your NAT box, 1635 01:32:10,440 --> 01:32:16,420 FACO IP addresses, you know, these are virtual public IP addresses, but for example, 1636 01:32:16,540 --> 01:32:21,080 this is really an issue, say, on a checkpoint firewall, on Solaris or on Windows NT. 1637 01:32:21,360 --> 01:32:26,280 If you're going to be using external public IP addresses that aren't native to that box, 1638 01:32:26,560 --> 01:32:29,420 you have to make sure that that box will respond properly. 1639 01:32:29,420 --> 01:32:31,340 to ARP broadcasts from your router. 1640 01:32:31,420 --> 01:32:34,540 If you have a gateway router who's trying to find this virtual IP address, 1641 01:32:35,080 --> 01:32:40,400 you have to ensure that the outside of your NAT box is going to respond to the ARP broadcasts 1642 01:32:40,400 --> 01:32:44,360 and announce itself properly as being the Ethernet host for that IP address. 1643 01:32:44,900 --> 01:32:49,500 A lot more complicated details in Firewall 1, you handle it in two different ways, 1644 01:32:49,560 --> 01:32:51,840 depending if you're on Solaris or if you're on Windows NT. 1645 01:32:52,880 --> 01:32:54,860 Just keep in mind, you have to get that straight. 1646 01:32:56,980 --> 01:32:59,400 On routing, as I mentioned, a firewall is a router. 1647 01:32:59,400 --> 01:33:02,280 It's a router first, and it's a firewall second. 1648 01:33:03,060 --> 01:33:07,120 Important question, how do you route a packet whose IP destination is changing? 1649 01:33:08,040 --> 01:33:10,760 Since routing is based upon what is your IP destination? 1650 01:33:12,160 --> 01:33:17,180 So the question sort of falls down to this, which comes first, the routing or the NATing? 1651 01:33:17,620 --> 01:33:19,960 And it depends on your firewall, you have to figure this out. 1652 01:33:20,140 --> 01:33:22,520 With Checkpoint, the routing comes first. 1653 01:33:22,740 --> 01:33:26,500 And the NATing is the very last thing that happens as the packet flies out the door. 1654 01:33:26,880 --> 01:33:29,380 So you have to route to the correct NIC address. 1655 01:33:29,400 --> 01:33:31,200 So you can route first, whether it's the LAN or the DMZ, 1656 01:33:31,560 --> 01:33:36,000 and then just as it's leaving, the very last step is the destination address gets changed. 1657 01:33:36,580 --> 01:33:37,940 So it can go either way. 1658 01:33:38,000 --> 01:33:39,400 You can route first or you can NAT first. 1659 01:33:39,520 --> 01:33:42,640 You just have to find out what it is in your firewall and make sure you understand that. 1660 01:33:42,760 --> 01:33:47,220 But keep in mind, you're trying to route a packet that has a dynamically changing destination address. 1661 01:33:47,340 --> 01:33:50,500 And as you can imagine, that can get tricky if you get it wrong. 1662 01:33:52,900 --> 01:33:53,620 DNS issues. 1663 01:33:55,140 --> 01:33:55,880 Here's the problem. 1664 01:33:56,140 --> 01:33:58,640 If you have two different IP addresses for a given host, 1665 01:33:58,640 --> 01:34:00,300 one on the inside and one on the outside, 1666 01:34:00,840 --> 01:34:03,780 which IP address should be returned with the DNS query? 1667 01:34:07,080 --> 01:34:11,800 Users on the inside, they need to get DNS resolved to the inside address. 1668 01:34:12,640 --> 01:34:15,740 Users on the outside need to get DNS resolved to the outside address. 1669 01:34:16,220 --> 01:34:19,320 So the question is, which answer should DNS resolve? 1670 01:34:19,620 --> 01:34:26,120 If you've got a, in your DMZ, you have www.company.com and you're inside on the LAN, 1671 01:34:26,680 --> 01:34:28,540 and you go to, you know, you say, 1672 01:34:28,540 --> 01:34:32,920 you set your browser to www.company.com, you resolve DNS. 1673 01:34:33,220 --> 01:34:36,920 Well, which address do you want to resolve to, the outside one or the inside one? 1674 01:34:38,700 --> 01:34:39,580 Here's the answer. 1675 01:34:39,680 --> 01:34:41,760 You have to have something called split DNS. 1676 01:34:42,040 --> 01:34:45,960 You need to maintain both an inside and an outside DNS server. 1677 01:34:46,860 --> 01:34:48,480 Insiders resolve to the inside. 1678 01:34:48,780 --> 01:34:50,360 Outsiders resolve to the outside. 1679 01:34:51,060 --> 01:34:55,300 And you limit the number of entries in the outside DNS server to just the minimum required. 1680 01:34:55,560 --> 01:34:57,420 So this is an additional enhanced security. 1681 01:34:58,540 --> 01:35:02,740 outside to use NS lookup and and just run through all the tables on your DNS 1682 01:35:02,740 --> 01:35:06,420 server and figure out all your internal machines right that wouldn't be good so 1683 01:35:06,420 --> 01:35:10,460 you list the five boxes that are in your DMZ you list their public IP addresses 1684 01:35:10,460 --> 01:35:13,940 and outsiders can see that but in terms of all the inside machines you use 1685 01:35:13,940 --> 01:35:18,660 inside DNS and and so that enhances your security by keeping the again you're 1686 01:35:18,660 --> 01:35:25,840 hiding the internal structure of your network from outsiders okay a summary 1687 01:35:25,840 --> 01:35:31,580 here NAT provides security at the network architecture level that's one of 1688 01:35:31,580 --> 01:35:37,040 the reasons I think it's so good it's below and before you get issues like 1689 01:35:37,040 --> 01:35:40,860 access control lists how many people here have screwed up an ACL and 1690 01:35:40,860 --> 01:35:43,920 accidentally let something through they shouldn't or accidentally block 1691 01:35:43,920 --> 01:35:46,620 something they shouldn't have I better see every hand go up if you've ever 1692 01:35:46,620 --> 01:35:50,780 touched a router people do it all the time it's much harder to screw up NAT 1693 01:35:50,780 --> 01:35:54,300 well once you get that working the first time then it's it's harder to get 1694 01:35:54,300 --> 01:35:54,900 it wrong later 1695 01:35:55,840 --> 01:36:00,100 it provides it provides security at a structural level the nice thing is all 1696 01:36:00,100 --> 01:36:03,780 the machines in your hide mode all the machines on your land they don't even 1697 01:36:03,780 --> 01:36:07,820 have public IP addresses so the question of whether somebody from the 1698 01:36:07,820 --> 01:36:12,440 outside could to you know can connect to it is sort of moot I've talked here 1699 01:36:12,440 --> 01:36:19,040 about the many benefits of NAT sort of a warning a caveat it may require some 1700 01:36:19,040 --> 01:36:22,400 significant restructuring of your network it's some real work to do IP 1701 01:36:22,400 --> 01:36:25,520 address changes in your company but I believe the benefits are pretty 1702 01:36:25,520 --> 01:36:29,900 darn nice if you can get a chance to pull it off where to get in more 1703 01:36:29,900 --> 01:36:33,820 information there's the internet engineering task force this is my 1704 01:36:33,820 --> 01:36:38,500 company information engine this presentation is already posted on the 1705 01:36:38,500 --> 01:36:41,820 site if you go to information engine comm you see a section called def con 1706 01:36:41,820 --> 01:36:46,840 9 and you can find my powerpoint presentation here I want to do some more 1707 01:36:46,840 --> 01:36:52,740 Q&A and this is about us it's sort of a one-man corporation I'm definitely 1708 01:36:52,740 --> 01:36:55,500 looking for more interesting opportunities I've heard a lot about the 1709 01:36:55,520 --> 01:36:58,700 resume is up here you know how to get to my website talk to me if you wish and 1710 01:36:59,340 --> 01:37:03,000 in the few minutes we have left actually about two minutes more questions and 1711 01:37:03,000 --> 01:37:05,960 I'll handle more questions when we're done here until we lose the room thank 1712 01:37:05,960 --> 01:37:06,200 you