1 00:00:28,580 --> 00:00:29,980 Thank you for watching. 2 00:00:41,620 --> 00:00:43,020 Thank you. 3 00:01:18,980 --> 00:01:19,740 Okay. 4 00:01:24,180 --> 00:01:25,260 Okay, thanks. 5 00:01:26,440 --> 00:01:29,600 So first I'll briefly explain why 6 00:01:29,600 --> 00:01:29,980 why 7 00:01:30,000 --> 00:01:31,880 we need DNSSEC instead of the regular DNS 8 00:01:31,880 --> 00:01:33,940 though most of you people probably already know that. 9 00:01:34,560 --> 00:01:35,940 We'll spend some time on 10 00:01:35,940 --> 00:01:37,040 how it actually works. 11 00:01:38,320 --> 00:01:39,820 I'll explain how to use it 12 00:01:39,820 --> 00:01:40,580 with Bind. 13 00:01:42,000 --> 00:01:44,060 Then I'll show you how in the Netherlands 14 00:01:44,060 --> 00:01:45,780 there's an experiment going on on how 15 00:01:45,780 --> 00:01:47,320 to actually deploy this. 16 00:01:47,640 --> 00:01:49,680 There's a shadow system running that actually 17 00:01:50,900 --> 00:01:52,080 works fairly well 18 00:01:52,080 --> 00:01:54,020 and hopefully will be 19 00:01:54,020 --> 00:01:55,520 integrated within a year into the 20 00:01:55,520 --> 00:01:57,580 standard NL tree. 21 00:01:58,860 --> 00:01:59,740 And then I'll talk 22 00:01:59,740 --> 00:02:01,620 a little bit about the tools on how to 23 00:02:01,620 --> 00:02:03,680 manage a lot of DNSSEC 24 00:02:03,680 --> 00:02:04,320 secured zones. 25 00:02:09,420 --> 00:02:11,660 And in part two after the break 26 00:02:11,660 --> 00:02:13,180 I will talk about opportunistic encryption, 27 00:02:14,400 --> 00:02:15,800 what exactly it is, 28 00:02:15,880 --> 00:02:17,620 how you can install it, how you can 29 00:02:17,620 --> 00:02:19,460 protect yourself with it, and 30 00:02:19,460 --> 00:02:21,580 I'll talk a bit about WaveSec, which 31 00:02:21,580 --> 00:02:22,900 is our solution to 32 00:02:23,600 --> 00:02:25,360 actually encrypt all your wireless 33 00:02:25,360 --> 00:02:27,440 traffic, which we'll also be 34 00:02:27,440 --> 00:02:28,500 deploying here at 35 00:02:29,260 --> 00:02:29,900 DEF CON. 36 00:02:30,260 --> 00:02:32,500 So if you want to be secure from all the weird 37 00:02:32,500 --> 00:02:34,600 people out here, definitely listen 38 00:02:34,600 --> 00:02:36,120 to the WaveSec bit and 39 00:02:36,120 --> 00:02:37,400 secure your laptop. 40 00:02:42,360 --> 00:02:44,580 So one of the problems with DNS is that 41 00:02:44,580 --> 00:02:46,380 basically everybody is involved. 42 00:02:46,700 --> 00:02:48,440 It's not something you control yourself. You only 43 00:02:48,440 --> 00:02:50,560 control part of it, but how people get to you 44 00:02:50,560 --> 00:02:52,640 is completely in other people's hands. 45 00:02:53,860 --> 00:02:54,560 This is an 46 00:02:54,560 --> 00:02:57,480 example of www.freezone.nl. 47 00:02:58,860 --> 00:03:00,640 I've just picked the organizations 48 00:03:00,640 --> 00:03:02,340 I've found while sort of traveling the 49 00:03:02,340 --> 00:03:04,400 organizational view. And we can see that 50 00:03:04,400 --> 00:03:06,340 there's a lot of places where things can go wrong 51 00:03:06,340 --> 00:03:08,300 that are completely outside your own 52 00:03:08,300 --> 00:03:09,460 control of your own zone. 53 00:03:10,460 --> 00:03:12,420 It starts with the root registry, 54 00:03:13,160 --> 00:03:14,380 whoever it is today, 55 00:03:14,560 --> 00:03:16,220 changes every few months, 56 00:03:16,280 --> 00:03:18,460 Intonik, VeriSign, IANA, 57 00:03:18,600 --> 00:03:19,260 whoever it is. 58 00:03:20,500 --> 00:03:21,820 Then we get to the root servers. 59 00:03:23,520 --> 00:03:24,340 Many people, 60 00:03:24,560 --> 00:03:26,120 there are quite some root servers out there, 61 00:03:26,260 --> 00:03:28,220 there are more than 30 now that are using 62 00:03:28,220 --> 00:03:28,660 Anycast. 63 00:03:29,460 --> 00:03:32,280 There are a lot of things that could go wrong with the root servers 64 00:03:32,280 --> 00:03:33,940 that are generally reasonably okay. 65 00:03:34,560 --> 00:03:36,380 Then we get to the ccTLD 66 00:03:36,380 --> 00:03:37,900 servers where things can go wrong. 67 00:03:38,300 --> 00:03:39,980 In this case, for the .nl, 68 00:03:40,200 --> 00:03:41,960 we're talking about the domain 69 00:03:41,960 --> 00:03:43,580 registry in the Netherlands. 70 00:03:45,960 --> 00:03:47,440 Then we get to the bit where 71 00:03:48,120 --> 00:03:49,880 your packet will have to go through all the 72 00:03:49,880 --> 00:03:51,380 BGP routing structures, 73 00:03:52,700 --> 00:03:54,240 which unfortunately is not yet 74 00:03:54,240 --> 00:03:55,180 protected by any 75 00:03:55,780 --> 00:03:57,020 good secure mechanism. 76 00:03:58,220 --> 00:03:59,820 Packets can get lost there before they can reach 77 00:03:59,820 --> 00:04:00,680 your zone as well. 78 00:04:01,440 --> 00:04:03,560 Then we finally get to the register of 79 00:04:03,560 --> 00:04:05,720 the freeze1.nl and the reverse 80 00:04:05,720 --> 00:04:07,020 space where things can go wrong. 81 00:04:07,600 --> 00:04:09,760 Then you get to the ISP 82 00:04:09,760 --> 00:04:11,700 of freeze1.nl, which in this case 83 00:04:11,700 --> 00:04:12,800 is actually me. 84 00:04:13,740 --> 00:04:15,140 Then we get to the registrant. 85 00:04:15,680 --> 00:04:17,880 In short, I count about 23 organizations 86 00:04:17,880 --> 00:04:19,740 plus everybody who can mess up the 87 00:04:19,740 --> 00:04:21,860 BGP routing that can actually 88 00:04:22,460 --> 00:04:23,960 get to your domain 89 00:04:23,960 --> 00:04:25,800 or perhaps 90 00:04:25,800 --> 00:04:28,200 hack into things before they get to your domain. 91 00:04:28,220 --> 00:04:30,100 No matter how secure you are, 92 00:04:31,600 --> 00:04:32,620 even if your server is 93 00:04:32,620 --> 00:04:34,160 unhackable, before they get to you, 94 00:04:34,200 --> 00:04:36,280 you're depending on like 20 95 00:04:36,280 --> 00:04:36,860 organizations. 96 00:04:37,860 --> 00:04:39,680 This is a problem that needs to be fixed. 97 00:04:40,880 --> 00:04:42,720 DNSSEC is meant to fix this. 98 00:04:45,320 --> 00:04:46,480 This is a quick 99 00:04:46,480 --> 00:04:47,680 overview of a query. 100 00:04:48,260 --> 00:04:49,680 I didn't do the layout very well. I'm sorry. 101 00:04:51,160 --> 00:04:52,360 Basically, what happens when you ask 102 00:04:52,360 --> 00:04:54,260 for www.freeze1.nl, 103 00:04:55,900 --> 00:04:56,460 you'll get 104 00:04:56,460 --> 00:04:58,200 to the IP 193.1.1.1.1. 105 00:04:58,220 --> 00:04:59,260 10.1.5.7.9. 106 00:04:59,820 --> 00:05:02,180 If you look at how it actually works from the start, 107 00:05:02,300 --> 00:05:04,060 your laptop uses a file 108 00:05:04,060 --> 00:05:05,760 if it's using a caching name server, 109 00:05:06,140 --> 00:05:07,900 asks for root servers, 110 00:05:08,000 --> 00:05:09,160 which is a hard-coded list, 111 00:05:09,840 --> 00:05:11,940 gets a root server, asks for 112 00:05:11,940 --> 00:05:13,880 the name server for .nl, 113 00:05:14,580 --> 00:05:16,320 gets an IP number, perhaps some glue, 114 00:05:17,000 --> 00:05:18,080 continues, gets to the 115 00:05:18,080 --> 00:05:18,880 domain registry, 116 00:05:20,000 --> 00:05:21,860 which is in Amsterdam, gets another 117 00:05:21,860 --> 00:05:23,900 IP number and some glue, continues on, 118 00:05:24,100 --> 00:05:25,820 gets DNS record for freeze1.nl, 119 00:05:26,360 --> 00:05:28,020 gets NSX to DNS.nl, 120 00:05:28,220 --> 00:05:30,320 plus some glue, and then finally 121 00:05:30,320 --> 00:05:32,280 that name server actually has 122 00:05:32,280 --> 00:05:34,480 the answer that we want, www.freeze1.nl 123 00:05:34,480 --> 00:05:36,800 is at 193.1.1.10.1.5.7.9. 124 00:05:38,420 --> 00:05:39,940 So these are about eight questions, 125 00:05:40,140 --> 00:05:42,280 plus three if you want to verify all the glue that you get 126 00:05:42,280 --> 00:05:43,000 to four servers. 127 00:05:44,140 --> 00:05:45,480 There are a lot of things where 128 00:05:45,480 --> 00:05:46,880 this can go wrong. 129 00:05:53,700 --> 00:05:55,840 To sort of categorize the vulnerabilities 130 00:05:55,840 --> 00:05:56,700 in DNS, 131 00:05:57,520 --> 00:05:58,080 there are 132 00:05:58,220 --> 00:06:00,460 roughly two kind of vulnerabilities. 133 00:06:01,220 --> 00:06:02,960 One is the integrity of the data. 134 00:06:03,160 --> 00:06:04,480 That has somebody actually, 135 00:06:04,660 --> 00:06:08,300 is somebody messing it up while it's in transit? 136 00:06:08,420 --> 00:06:10,680 Is somebody doing a spoofing, 137 00:06:10,700 --> 00:06:13,920 fake packets, filtering out, sending other things? 138 00:06:15,140 --> 00:06:16,660 That's one part you need to protect. 139 00:06:16,820 --> 00:06:17,460 The other part is, 140 00:06:17,460 --> 00:06:20,860 is the guy who's answering to my query 141 00:06:20,860 --> 00:06:23,240 actually the guy that's responsible for it? 142 00:06:23,280 --> 00:06:25,300 And is he the guy that's supposed to answer the query? 143 00:06:25,440 --> 00:06:28,120 Or is it just some weird guy 144 00:06:30,780 --> 00:06:31,700 on the block? 145 00:06:33,360 --> 00:06:36,480 So these are some of the things that you need to secure 146 00:06:37,140 --> 00:06:40,200 that are somewhat addressed by DNSSEC, 147 00:06:40,260 --> 00:06:40,820 not all of them. 148 00:06:41,680 --> 00:06:43,880 First you have to DHCP server in your network. 149 00:06:44,520 --> 00:06:45,460 Once you get your IP, 150 00:06:45,580 --> 00:06:46,500 you have to know that you're actually talking 151 00:06:46,500 --> 00:06:47,220 to the right guy. 152 00:06:47,660 --> 00:06:49,800 You'll find out here that that's often not the case. 153 00:06:50,360 --> 00:06:51,880 You have to trust your re-solver, 154 00:06:52,840 --> 00:06:54,080 which might be difficult as well 155 00:06:54,080 --> 00:06:55,580 if your re-solver is half a planet away. 156 00:06:56,980 --> 00:06:58,080 You have to trust the communication 157 00:06:58,080 --> 00:06:59,220 to the re-solver. 158 00:06:59,220 --> 00:07:00,260 The re-solver has to be secure. 159 00:07:00,840 --> 00:07:03,200 And also the name server to name server communication 160 00:07:03,760 --> 00:07:07,480 actually has to be secure so that if changes are made, 161 00:07:07,600 --> 00:07:09,840 that it propagates properly and is protected. 162 00:07:28,300 --> 00:07:32,120 The DNS proofing can actually happen from the internal side, 163 00:07:32,280 --> 00:07:34,640 but also if the server on the other end of the planet is hacked, 164 00:07:34,720 --> 00:07:36,260 it can just give you other answers. 165 00:07:36,380 --> 00:07:40,240 If the name server is hacked off whatever ICANN.org, 166 00:07:40,440 --> 00:07:43,140 then it will just give you valid answers. 167 00:07:43,520 --> 00:07:46,360 But it might not be the people you would expect the answer from, 168 00:07:46,420 --> 00:07:48,400 since they're hackers instead of the real people. 169 00:07:51,960 --> 00:07:52,420 Okay. 170 00:07:53,520 --> 00:07:54,620 To the sound technician, 171 00:07:54,880 --> 00:07:56,080 apparently on my right, 172 00:07:56,100 --> 00:07:58,060 people have difficulty hearing me. 173 00:08:00,620 --> 00:08:00,980 Okay. 174 00:08:01,260 --> 00:08:04,600 So, if they can do anything about it, thanks. 175 00:08:05,320 --> 00:08:06,720 I don't think there's much I can do here. 176 00:08:09,660 --> 00:08:11,200 So are there any more questions that I missed? 177 00:08:11,900 --> 00:08:13,700 Okay, I'll go on. 178 00:08:15,960 --> 00:08:16,320 Sorry? 179 00:08:18,320 --> 00:08:19,960 Yeah, yeah, yeah, go and ask questions. 180 00:08:20,100 --> 00:08:21,080 But if I miss it... 181 00:08:22,680 --> 00:08:23,400 Okay, just... 182 00:08:23,400 --> 00:08:24,040 Okay. 183 00:08:24,460 --> 00:08:24,820 Okay. 184 00:08:24,960 --> 00:08:27,720 So, we have to secure the client, re-solver communication. 185 00:08:27,840 --> 00:08:28,040 Okay. 186 00:08:28,840 --> 00:08:30,200 So, if there's a... 187 00:08:30,960 --> 00:08:33,260 I'm sure nobody's here using any re-solver 188 00:08:33,260 --> 00:08:34,380 that's not on their own laptop. 189 00:08:34,480 --> 00:08:36,940 If they are, they're really going to be in deep shit. 190 00:08:37,560 --> 00:08:40,700 You can just not trust any re-solver out there. 191 00:08:41,620 --> 00:08:44,440 The best thing to do is to just run your re-solver, 192 00:08:44,460 --> 00:08:46,980 preferably DNSSEC-aware re-solver, on your own machine. 193 00:08:47,720 --> 00:08:49,160 That verifies all the queries, 194 00:08:49,240 --> 00:08:50,720 because you absolutely have no clue 195 00:08:50,720 --> 00:08:53,820 what's being rewritten during the time on the network. 196 00:08:55,260 --> 00:08:57,760 To secure the communications between two name servers, 197 00:08:57,760 --> 00:08:59,940 it depends on what you want to do. 198 00:09:00,020 --> 00:09:02,880 If the zone itself has been secured with DNSSEC, 199 00:09:03,400 --> 00:09:06,860 then you don't care too much that things go over the wire, 200 00:09:06,880 --> 00:09:09,000 plain text, because they have signatures attached to it, 201 00:09:09,080 --> 00:09:11,240 and you don't really need to further secure it. 202 00:09:11,280 --> 00:09:12,700 If somebody would tamper with it, 203 00:09:12,800 --> 00:09:14,300 then the signatures are wrong, 204 00:09:14,480 --> 00:09:16,820 and you can actually detect it and not serve the data, 205 00:09:16,880 --> 00:09:18,960 or the client will detect it and not believe the query. 206 00:09:19,480 --> 00:09:21,220 So, even though it's strictly not necessary 207 00:09:21,220 --> 00:09:22,720 once your zones are secure, 208 00:09:23,180 --> 00:09:25,240 you can, of course, still secure it somewhat. 209 00:09:27,760 --> 00:09:29,060 But there are other ways to do that as well. 210 00:09:29,860 --> 00:09:32,380 And, of course, you have to be sure 211 00:09:32,380 --> 00:09:34,220 that your server is very secure as well, 212 00:09:34,360 --> 00:09:35,600 that it's not hacked into. 213 00:09:37,140 --> 00:09:38,900 There are basically two ways 214 00:09:38,900 --> 00:09:41,640 in which you can secure the name server communication, 215 00:09:42,900 --> 00:09:44,300 which is also used, actually, 216 00:09:44,320 --> 00:09:45,560 for client name server communication. 217 00:09:46,140 --> 00:09:47,840 One is T-SIG, the other is SIG0. 218 00:09:48,340 --> 00:09:50,100 T-SIG works with pre-shared key, 219 00:09:50,340 --> 00:09:53,300 and was like a sort of mini DNSSEC 220 00:09:53,300 --> 00:09:55,320 when people started out writing this stuff 221 00:09:55,700 --> 00:09:57,620 to secure the name server to name server communication, 222 00:09:57,760 --> 00:09:59,240 it wasn't very popular. 223 00:09:59,420 --> 00:10:01,060 Most people just secured the IP layer, 224 00:10:01,180 --> 00:10:02,220 set up an IPsec tunnel, 225 00:10:02,400 --> 00:10:03,840 or actually didn't worry about it, 226 00:10:05,820 --> 00:10:08,860 or used SCP to propagate those own changes. 227 00:10:09,900 --> 00:10:11,980 So, T-SIG's not very much in use. 228 00:10:12,920 --> 00:10:14,120 Probably it's not very useful, 229 00:10:14,240 --> 00:10:16,060 especially since it's using pre-shared secrets. 230 00:10:16,200 --> 00:10:18,460 You definitely cannot use it for clients 231 00:10:18,460 --> 00:10:19,620 to name server communication. 232 00:10:20,360 --> 00:10:23,200 The other one, SIG0, is based on public key cryptography. 233 00:10:23,440 --> 00:10:27,480 You can actually use that to secure some things much better. 234 00:10:29,560 --> 00:10:31,660 That's especially useful for dynamic updates 235 00:10:31,660 --> 00:10:34,380 from your laptop to update reverse tree. 236 00:10:35,640 --> 00:10:39,140 So, DNSSEC basically comes with four new record types. 237 00:10:39,460 --> 00:10:41,900 The key record, which is the key used to sign everything. 238 00:10:42,320 --> 00:10:44,780 The SIG record, which actually contains the signature. 239 00:10:45,280 --> 00:10:47,500 The next record, which I'll come back to later, 240 00:10:47,620 --> 00:10:51,560 but it's used to securely say that something does not exist. 241 00:10:52,460 --> 00:10:54,700 And the DS record, which is meant to, 242 00:10:54,720 --> 00:10:57,200 which is used to build a chain of trust between 243 00:10:57,200 --> 00:10:58,340 parent and child. 244 00:10:59,480 --> 00:11:01,680 And there's a new flag in the query answer, 245 00:11:01,900 --> 00:11:03,300 that's the authenticated data flag, 246 00:11:03,580 --> 00:11:05,280 which actually tells you whether or not 247 00:11:05,280 --> 00:11:07,520 the query was resolved securely. 248 00:11:09,160 --> 00:11:11,240 Though, mind you, do not use it to, 249 00:11:11,360 --> 00:11:13,620 do not put any trust in it because it's just a bit 250 00:11:13,620 --> 00:11:15,180 and it's not protected by any signature. 251 00:11:15,600 --> 00:11:16,920 So, anybody can set it. 252 00:11:17,080 --> 00:11:19,420 So, just see it as a debug flag only. 253 00:11:22,320 --> 00:11:25,020 So, this is the standard syntax of the key record. 254 00:11:25,680 --> 00:11:26,780 It's the label first. 255 00:11:26,780 --> 00:11:31,180 The TTL, IN, key, then we get the flags, 256 00:11:31,560 --> 00:11:33,400 the protocol, the algorithm, the key material. 257 00:11:33,680 --> 00:11:35,920 You can see here, this is the key record for freeze1nl. 258 00:11:36,940 --> 00:11:39,760 You can see it's, it protocols DNSSEC. 259 00:11:42,380 --> 00:11:44,540 You can see the key material in there, the algorithm. 260 00:11:45,220 --> 00:11:46,620 It's fairly straight onward. 261 00:11:46,780 --> 00:11:48,520 Be aware that you can have multiple keys, 262 00:11:48,800 --> 00:11:49,960 which I'll come back to as well. 263 00:11:50,900 --> 00:11:54,260 The only thing to note now is that 264 00:11:56,980 --> 00:11:59,040 they've restricted the use of the key record. 265 00:11:59,240 --> 00:12:03,120 So, any protocols, you're supposed to only use the DNSSEC 266 00:12:03,120 --> 00:12:04,580 and not any other value. 267 00:12:04,760 --> 00:12:06,080 So, it's only type three is allowed. 268 00:12:07,460 --> 00:12:08,960 This is the signature record. 269 00:12:11,420 --> 00:12:14,660 The type's covered, algorithm, number of labels, 270 00:12:14,740 --> 00:12:17,760 original TTL, expiration and inception of the signature. 271 00:12:18,300 --> 00:12:20,840 It's very important that there's actually dates 272 00:12:20,840 --> 00:12:22,600 in the signed signature. 273 00:12:23,560 --> 00:12:26,680 Sorry, in the signature because otherwise people could do 274 00:12:26,780 --> 00:12:27,260 replay attacks. 275 00:12:27,460 --> 00:12:30,120 If you sign something and someone stores that record 276 00:12:30,120 --> 00:12:32,280 and uses it a year later, it would be valid 277 00:12:32,880 --> 00:12:35,080 because you've signed it if you're still using the same key. 278 00:12:35,320 --> 00:12:36,600 So, to prevent replay attacks, 279 00:12:37,240 --> 00:12:39,740 it's not enough to just have a TTL and expire it. 280 00:12:39,820 --> 00:12:40,860 You actually have to say, 281 00:12:40,960 --> 00:12:44,080 this signature's only valid between this period of time. 282 00:12:45,740 --> 00:12:49,720 Again, you see here there's a signature over the two NS records. 283 00:12:51,040 --> 00:12:53,400 Also, signatures are also based on the type. 284 00:12:53,520 --> 00:12:54,880 So, if there are two NS records, 285 00:12:54,880 --> 00:12:57,680 you'll have one signature over all the NS records. 286 00:12:58,200 --> 00:12:59,620 If you have five MX records, 287 00:12:59,740 --> 00:13:02,120 you'll have one signature over the five MX records. 288 00:13:06,960 --> 00:13:08,320 Then we've got the next record. 289 00:13:08,560 --> 00:13:11,300 The next record is basically a pointer to the next 290 00:13:11,300 --> 00:13:13,620 alphabetically sorted record in the zone. 291 00:13:14,360 --> 00:13:15,460 Why do we need to do this? 292 00:13:16,320 --> 00:13:18,860 The problem is if somebody is querying for a record 293 00:13:18,860 --> 00:13:20,640 that doesn't exist, how do we tell it, like, 294 00:13:20,660 --> 00:13:22,960 this record doesn't exist with a signature? 295 00:13:23,220 --> 00:13:24,740 We basically need to sign our answer. 296 00:13:24,880 --> 00:13:25,480 It's not enough to say, 297 00:13:25,540 --> 00:13:26,760 well, the record doesn't exist, go away. 298 00:13:26,980 --> 00:13:28,100 We need to actually say, 299 00:13:28,260 --> 00:13:30,840 here's a signed piece of data that says 300 00:13:30,840 --> 00:13:32,940 that the data you asked for is not here. 301 00:13:33,900 --> 00:13:35,860 So, the way people came up with it 302 00:13:35,860 --> 00:13:39,380 is to actually point to the next valid record in the zone. 303 00:13:40,020 --> 00:13:42,220 So, if you look in the example, 304 00:13:42,300 --> 00:13:44,140 you see alpha.freeze1.nl 305 00:13:44,880 --> 00:13:47,860 is the next record that comes after that. 306 00:13:47,900 --> 00:13:49,480 It's gamma.freeze1.nl. 307 00:13:49,780 --> 00:13:54,800 And the records that are actually in existence for alpha, 308 00:13:54,880 --> 00:13:58,780 are ns, soa, mh, sig, key, and next, 309 00:13:59,420 --> 00:14:01,860 which I guess the ns record I should have left out 310 00:14:01,860 --> 00:14:05,020 because alpha's probably not the name server for freeze1.nl. 311 00:14:06,340 --> 00:14:10,100 So, now, if somebody's asking for beta.freeze1.nl, 312 00:14:10,640 --> 00:14:12,480 they'll actually get this next record back, 313 00:14:12,740 --> 00:14:14,260 which, of course, has a signature. 314 00:14:15,100 --> 00:14:16,820 So, this signed record then says, 315 00:14:17,000 --> 00:14:18,580 you've asked for something, 316 00:14:18,740 --> 00:14:21,260 and it fell somewhere in between alpha and gamma, 317 00:14:21,380 --> 00:14:22,840 but we don't have it, it doesn't exist. 318 00:14:23,440 --> 00:14:24,240 So, now they know, 319 00:14:24,240 --> 00:14:28,020 securely, that beta.freeze1.nl does not exist. 320 00:14:31,280 --> 00:14:33,260 Update from December is that 321 00:14:33,260 --> 00:14:35,880 the key record was limited to only use 322 00:14:37,080 --> 00:14:39,100 the key record for DNSSEC. 323 00:14:39,160 --> 00:14:40,840 They decided to split up the key records 324 00:14:41,700 --> 00:14:44,440 because they were afraid that there were too many application keys 325 00:14:44,440 --> 00:14:46,340 going to end up in the apex of a zone. 326 00:14:46,500 --> 00:14:51,020 So, they decided to use a different key type for all the applications. 327 00:14:52,580 --> 00:14:54,220 Not everybody was too happy with that, 328 00:14:54,240 --> 00:14:58,100 I don't think it's really necessary 329 00:14:58,100 --> 00:15:01,440 because there won't be that many keys in the apex of a zone. 330 00:15:01,660 --> 00:15:04,780 Maybe an SSH key, an IPSEC key, and a DNSSEC, 331 00:15:04,860 --> 00:15:06,460 two DNSSEC keys, but that's about it. 332 00:15:08,980 --> 00:15:12,380 So, yeah, well, the ITF decided on this by consensus, 333 00:15:13,120 --> 00:15:14,020 so we're stuck with it. 334 00:15:14,680 --> 00:15:17,620 So, basically, the key records are only usable for DNSSEC. 335 00:15:17,700 --> 00:15:19,140 If you want to do something else, 336 00:15:19,180 --> 00:15:20,840 you'd have to make your own application key, 337 00:15:20,940 --> 00:15:23,920 which many name server software versions will not support yet. 338 00:15:23,920 --> 00:15:26,420 Or you have to stuff everything in a TXT record 339 00:15:26,920 --> 00:15:30,200 and use your own format within the text entry, 340 00:15:30,900 --> 00:15:32,780 which is actually what we've done for FreeSwan. 341 00:15:35,200 --> 00:15:36,480 So, this is an example zone. 342 00:15:36,640 --> 00:15:38,740 I'm not sure if people can read it all the way in the back. 343 00:15:38,920 --> 00:15:41,060 This is a stripped-down version of FreeSwan.nl. 344 00:15:41,160 --> 00:15:43,240 You see a SOA record, two name server records, 345 00:15:43,400 --> 00:15:46,200 an A record for the website, and one MX record. 346 00:15:47,400 --> 00:15:48,740 So, this is the unsigned zone. 347 00:15:51,280 --> 00:15:53,440 This is what it looks like when the zone has been signed. 348 00:15:53,440 --> 00:15:55,980 First of all, you see that the entire thing had to be sorted. 349 00:15:56,960 --> 00:15:59,260 This is, of course, because the next record has to point 350 00:15:59,260 --> 00:16:01,340 to the next alphabetical record. 351 00:16:01,520 --> 00:16:03,840 So, first thing you do when you're signing a zone 352 00:16:03,840 --> 00:16:07,200 is actually sort it before signing all the entries. 353 00:16:08,140 --> 00:16:09,520 So, you'll see there's a SOA record, 354 00:16:09,800 --> 00:16:11,220 there's a signature over the SOA record, 355 00:16:11,460 --> 00:16:13,740 there are two NS records with a signature over the NS record. 356 00:16:14,060 --> 00:16:16,220 There's only one MX record and the signature. 357 00:16:17,320 --> 00:16:19,460 You'll see two key records, not one, 358 00:16:20,020 --> 00:16:23,020 with a signature and actually both of those keys 359 00:16:23,440 --> 00:16:25,040 have been used to sign the key record. 360 00:16:25,200 --> 00:16:26,180 So, you'll see another signature. 361 00:16:26,440 --> 00:16:28,200 I'll come back to that in the next slide. 362 00:16:30,360 --> 00:16:33,980 And you'll see the next record pointing to www.freeSwan.nl 363 00:16:33,980 --> 00:16:36,260 and the signature, and then you'll see the entry 364 00:16:36,260 --> 00:16:38,340 for www.freeSwan.nl. 365 00:16:39,240 --> 00:16:41,880 And one thing to note is that the next record 366 00:16:41,880 --> 00:16:44,380 for the last entry actually points to the first entry. 367 00:16:44,520 --> 00:16:46,780 So, you see that the next record for www 368 00:16:46,780 --> 00:16:50,400 is actually freeSwan.nl, the Apex again. 369 00:16:53,440 --> 00:16:55,140 So, now we have a secure zone. 370 00:16:55,800 --> 00:16:59,420 So, now even though your zone is secure, 371 00:16:59,580 --> 00:17:01,320 now you actually have to make sure that people 372 00:17:01,320 --> 00:17:02,880 delegate to you properly. 373 00:17:03,780 --> 00:17:05,020 And that has some problems. 374 00:17:06,260 --> 00:17:10,880 The parent should securely delegate you to the child zone. 375 00:17:11,020 --> 00:17:13,780 However, the parent does not have a key to sign anything. 376 00:17:14,040 --> 00:17:17,620 And in fact, the parent shouldn't sign anything anyway 377 00:17:17,620 --> 00:17:20,420 for the child because it's the child's responsibility. 378 00:17:21,200 --> 00:17:23,060 Where in the regular DNS, you would get 379 00:17:23,440 --> 00:17:25,720 a non-authoritative answer saying basically, 380 00:17:25,820 --> 00:17:30,620 well, go try here and don't hold me responsible for it. 381 00:17:31,280 --> 00:17:34,620 For DNSSEC, you have to be slightly more secure. 382 00:17:34,960 --> 00:17:36,860 So, you have to basically say, go there, 383 00:17:37,060 --> 00:17:39,240 and then somehow we will give you a pointer 384 00:17:39,240 --> 00:17:40,740 to check whether you're actually there. 385 00:17:41,300 --> 00:17:45,020 And that's where the DS record comes in. 386 00:17:47,140 --> 00:17:50,520 What you see here are all the entries for freeSwan.nl 387 00:17:50,520 --> 00:17:53,420 at the top level NL level. 388 00:17:54,560 --> 00:18:00,120 You'll see two NS records and you'll see a DS record 389 00:18:00,840 --> 00:18:03,040 and you'll see that the DS record is signed. 390 00:18:03,340 --> 00:18:04,580 So, what is a DS record? 391 00:18:04,960 --> 00:18:08,940 The DS record is actually a hash of the key of the child zone 392 00:18:09,940 --> 00:18:11,500 put into the parent zone. 393 00:18:12,700 --> 00:18:15,940 The hash is signed saying that the parent believes 394 00:18:15,940 --> 00:18:19,280 that that's truly the key of the child zone. 395 00:18:19,880 --> 00:18:22,760 And you'll see that it did not sign the NS records 396 00:18:22,760 --> 00:18:23,400 for the name server. 397 00:18:23,420 --> 00:18:25,480 Because there's absolutely no clue about that. 398 00:18:25,780 --> 00:18:28,860 The only thing it knows is that wherever you end up with, 399 00:18:28,980 --> 00:18:32,320 if the hash of that key is the thing that's in my DS record, 400 00:18:32,540 --> 00:18:33,480 then you're at the right spot. 401 00:18:37,040 --> 00:18:37,460 Sorry? 402 00:18:51,180 --> 00:18:52,020 I'm sorry. 403 00:18:52,020 --> 00:18:54,360 I can't really hear the question very well. 404 00:18:59,100 --> 00:19:02,500 But this is part of the NL zone file, 405 00:19:02,640 --> 00:19:03,540 what you're seeing now. 406 00:19:04,160 --> 00:19:06,560 So, these are the only pointers to freeSwan 407 00:19:06,560 --> 00:19:07,960 in the NL zone file. 408 00:19:08,420 --> 00:19:10,940 Actually, there's one record missing, 409 00:19:11,080 --> 00:19:12,000 which is the next record, 410 00:19:12,660 --> 00:19:15,440 which points to the next entry, whatever, G something. 411 00:19:16,280 --> 00:19:17,500 This is what's in the parent. 412 00:19:17,760 --> 00:19:20,700 I did not discuss yet how the parent actually knows 413 00:19:20,700 --> 00:19:22,300 what to sign for the DS key. 414 00:19:23,020 --> 00:19:25,580 That's something that has to happen either out of bound 415 00:19:25,580 --> 00:19:26,320 or in bound. 416 00:19:26,560 --> 00:19:28,160 There are some protocols for that, 417 00:19:28,240 --> 00:19:30,020 but I'll get to that a little bit later. 418 00:19:35,020 --> 00:19:37,780 So, once we have this delegation in place, 419 00:19:38,300 --> 00:19:40,560 we can just chain everything together. 420 00:19:40,820 --> 00:19:46,160 So, the NL key in use is actually also signed 421 00:19:47,040 --> 00:19:49,820 and used by the top level, by the root server, 422 00:19:49,820 --> 00:19:52,260 which has a DS record over the NL key, 423 00:19:52,760 --> 00:19:55,200 if everybody would be using DNSSEC, 424 00:19:56,680 --> 00:19:58,060 which, unfortunately, they're not yet. 425 00:19:58,640 --> 00:20:01,140 So, we have to come up with a way how to deploy this partially 426 00:20:01,140 --> 00:20:03,060 when half of the world is secure 427 00:20:03,060 --> 00:20:04,340 and the other half is not secure. 428 00:20:05,460 --> 00:20:07,460 So, the way to do this is to basically say, 429 00:20:07,540 --> 00:20:10,460 this is a key, this is the entry point for that key, 430 00:20:12,660 --> 00:20:14,260 and we trust it from here. 431 00:20:14,880 --> 00:20:17,620 I see that the key record in the below 432 00:20:17,620 --> 00:20:18,700 is actually not very visible. 433 00:20:21,000 --> 00:20:23,280 But basically, you have a trusted key statement, 434 00:20:23,420 --> 00:20:25,760 which you'll probably see in the next slide as well. 435 00:20:26,980 --> 00:20:28,720 Basically, configuring your name server to say, 436 00:20:28,800 --> 00:20:30,020 this is the key for .NL, 437 00:20:30,160 --> 00:20:31,820 and we trust everything from it below. 438 00:20:31,960 --> 00:20:33,900 So, everything should be signed using this 439 00:20:33,900 --> 00:20:35,780 as the start of the chain of trust. 440 00:20:40,580 --> 00:20:43,320 So, one of the problems we then have is, 441 00:20:43,380 --> 00:20:45,780 okay, so we have a key and we secure everything 442 00:20:45,780 --> 00:20:46,940 and everybody trusts our key, 443 00:20:47,100 --> 00:20:48,380 but what if something goes wrong? 444 00:20:50,260 --> 00:20:52,600 The keys have to be recycled at some point. 445 00:20:52,680 --> 00:20:54,540 People can just start some super cluster 446 00:20:54,540 --> 00:20:56,060 on trying to brute force your key. 447 00:20:57,100 --> 00:20:58,480 We don't want to use too large keys 448 00:20:58,480 --> 00:21:00,340 because, you know, we're going to have to do 449 00:21:00,340 --> 00:21:02,080 lots of CPU and extensive operations. 450 00:21:02,680 --> 00:21:04,940 Keys can be stolen from the machine. 451 00:21:05,340 --> 00:21:06,280 Lots of things can happen. 452 00:21:06,560 --> 00:21:08,740 So, at some point, no matter we like it or not, 453 00:21:08,840 --> 00:21:10,080 we'll have to replace the keys. 454 00:21:10,540 --> 00:21:11,560 So, how do we do this? 455 00:21:12,380 --> 00:21:14,360 The parent needs to be securely informed. 456 00:21:15,140 --> 00:21:17,220 So, we can't really automate this and say, 457 00:21:17,220 --> 00:21:18,140 hey, this is our new key. 458 00:21:18,140 --> 00:21:18,940 Go ahead, use it. 459 00:21:21,620 --> 00:21:23,860 And then, there's also problems with the key records. 460 00:21:23,960 --> 00:21:25,280 Of course, cache them out there. 461 00:21:25,440 --> 00:21:27,140 So, at some point, we need to make sure that 462 00:21:28,500 --> 00:21:29,660 if we change the key, 463 00:21:30,560 --> 00:21:32,220 that people do not have the old key 464 00:21:32,220 --> 00:21:33,020 while they have the new key 465 00:21:33,020 --> 00:21:34,460 and they can't verify the signatures anymore. 466 00:21:37,280 --> 00:21:38,920 And one big problem there, as well, 467 00:21:38,980 --> 00:21:41,100 is that you want to make sure that 468 00:21:41,100 --> 00:21:43,040 there's the least amount of interaction 469 00:21:43,040 --> 00:21:44,660 between the parent and the child, 470 00:21:46,700 --> 00:21:47,920 especially if it's out of bound. 471 00:21:48,140 --> 00:21:49,140 You don't want every month 472 00:21:49,140 --> 00:21:50,880 to call up your domain registry and say, 473 00:21:50,960 --> 00:21:51,780 hey, I've got a new key. 474 00:21:51,980 --> 00:21:53,900 Can you just verify it over the phone with me? 475 00:21:54,580 --> 00:21:55,780 So, they came up with the concept 476 00:21:55,780 --> 00:21:59,040 of separating the tasks of the delegation. 477 00:22:00,500 --> 00:22:02,460 So, to fix the DS record, 478 00:22:02,720 --> 00:22:04,040 to change the DS record, 479 00:22:04,120 --> 00:22:05,800 use one really big key that's secure 480 00:22:05,800 --> 00:22:07,900 and you don't need to communicate this often to your parent 481 00:22:08,440 --> 00:22:10,880 and one zone signing key for your own zone, 482 00:22:10,940 --> 00:22:12,660 which you can just recycle whenever you want 483 00:22:12,660 --> 00:22:13,940 without informing your parent. 484 00:22:14,500 --> 00:22:16,220 So, basically, there are two keys. 485 00:22:16,280 --> 00:22:17,140 The zone signing key, 486 00:22:17,140 --> 00:22:18,400 which is fairly small, 487 00:22:18,580 --> 00:22:19,620 and a key signing key, 488 00:22:19,720 --> 00:22:20,680 which is a little bit bigger. 489 00:22:22,120 --> 00:22:23,620 These bit values are, 490 00:22:23,720 --> 00:22:25,840 it's what's currently used in the experiment. 491 00:22:26,420 --> 00:22:27,960 Time will have to tell whether or not 492 00:22:28,440 --> 00:22:29,560 it's a good practice. 493 00:22:33,040 --> 00:22:34,940 So, when we have these two keys, 494 00:22:35,140 --> 00:22:36,160 how does it work? 495 00:22:36,440 --> 00:22:37,660 First, we're seeing a normal situation. 496 00:22:37,880 --> 00:22:39,500 I've tried to abbreviate it here a bit. 497 00:22:40,460 --> 00:22:42,620 The parent has a DS record 498 00:22:42,620 --> 00:22:44,320 over the key signing key 499 00:22:45,680 --> 00:22:48,040 and the child has the key signing key, 500 00:22:48,200 --> 00:22:49,120 the zone signing key, 501 00:22:49,280 --> 00:22:52,300 and then the key signing key actually signs 502 00:22:52,300 --> 00:22:54,140 the key signing key record, 503 00:22:54,280 --> 00:22:56,100 the key signing key and the zone signing key, 504 00:22:56,260 --> 00:22:58,220 and then the zone signing key actually signs 505 00:22:58,220 --> 00:22:59,360 all the data in the zone. 506 00:23:00,340 --> 00:23:03,520 So, now, if somebody does a query, 507 00:23:03,760 --> 00:23:05,900 it will first find these keys. 508 00:23:06,120 --> 00:23:09,040 It will find the DS hash at the parent, 509 00:23:09,760 --> 00:23:10,920 come to the child, 510 00:23:11,160 --> 00:23:12,520 check the key signing key, 511 00:23:12,620 --> 00:23:13,700 find the matching hash, 512 00:23:13,700 --> 00:23:15,260 trust the key signing key, 513 00:23:16,040 --> 00:23:17,540 then it sees that the key signing key 514 00:23:17,540 --> 00:23:19,440 has actually signed the zone signing key, 515 00:23:19,960 --> 00:23:21,820 then it trusts the zone signing key, 516 00:23:21,960 --> 00:23:23,420 and once it trusts the zone signing key, 517 00:23:23,520 --> 00:23:25,400 it can trust everything signed with it in the zone. 518 00:23:26,360 --> 00:23:27,860 So, now when you want to do a rollover, 519 00:23:27,860 --> 00:23:29,140 you want to change the zone signing key, 520 00:23:29,280 --> 00:23:31,240 first thing you do is you have to add 521 00:23:31,240 --> 00:23:32,400 the second key signing key. 522 00:23:32,940 --> 00:23:34,580 No, sorry, the second zone signing key. 523 00:23:35,220 --> 00:23:37,080 Then you sign it with the old key, 524 00:23:37,780 --> 00:23:39,380 and you leave it in the zone for a while 525 00:23:39,380 --> 00:23:40,200 for things to propagate. 526 00:23:40,560 --> 00:23:42,080 And then when things have propagated, 527 00:23:42,080 --> 00:23:46,800 you just remove the old key 528 00:23:46,800 --> 00:23:48,580 and you make sure that you sign it with the new key, 529 00:23:48,720 --> 00:23:49,800 and you're all set to go. 530 00:23:53,640 --> 00:23:55,900 The key signing key rollover is a bit trickier 531 00:23:55,900 --> 00:23:57,760 because now we have to talk to our parent 532 00:23:57,760 --> 00:24:00,000 and say you have to change the DS on our key. 533 00:24:01,260 --> 00:24:02,500 You can have a look at it. 534 00:24:03,220 --> 00:24:04,700 It's fairly complex, 535 00:24:05,080 --> 00:24:06,940 but there are tools out there already 536 00:24:06,940 --> 00:24:09,560 that actually more or less automate this for you. 537 00:24:09,660 --> 00:24:11,020 Some Perl scripts actually do this. 538 00:24:12,080 --> 00:24:12,760 It's a two-step rollover. 539 00:24:12,900 --> 00:24:14,540 First, you add the keys. 540 00:24:15,740 --> 00:24:17,940 Then you sign it with both keys. 541 00:24:18,380 --> 00:24:20,760 Then you make sure that you update the DS. 542 00:24:20,920 --> 00:24:22,560 Then you wait a while and remove the old key. 543 00:24:25,320 --> 00:24:27,680 So, when there's an unscheduled key rollover, 544 00:24:27,960 --> 00:24:31,640 you basically, once your private key is stolen, 545 00:24:31,740 --> 00:24:32,320 you have a problem. 546 00:24:34,660 --> 00:24:36,520 There are quite some operational issues 547 00:24:36,520 --> 00:24:37,100 you have to address. 548 00:24:37,240 --> 00:24:39,160 Make sure that you're ready 549 00:24:39,160 --> 00:24:40,380 if something like this happens. 550 00:24:41,460 --> 00:24:43,260 So, have an emergency procedure ready. 551 00:24:44,460 --> 00:24:46,580 One trick that has come up 552 00:24:46,580 --> 00:24:48,160 is actually put a spare key, 553 00:24:48,280 --> 00:24:49,640 key signing key, in your zone, 554 00:24:49,720 --> 00:24:52,300 which is just a signed piece of data, 555 00:24:52,720 --> 00:24:54,540 and actually put the private key in a vault, 556 00:24:54,680 --> 00:24:56,320 and as soon as whatever your server, 557 00:24:56,400 --> 00:24:56,960 your name server, 558 00:24:57,140 --> 00:24:58,660 your actual signing machine is compromised, 559 00:24:59,280 --> 00:25:00,620 just delete the whole machine, 560 00:25:00,760 --> 00:25:01,440 grab a new machine, 561 00:25:01,580 --> 00:25:02,880 grab the fresh key and use that, 562 00:25:03,020 --> 00:25:05,320 and just talk to your parent 563 00:25:05,320 --> 00:25:06,720 about a quick DS change, 564 00:25:07,020 --> 00:25:08,300 and then you're all set to go 565 00:25:08,300 --> 00:25:10,000 because the key's already trusted out there. 566 00:25:11,740 --> 00:25:14,140 Also, since we're using the trusted key statement 567 00:25:14,140 --> 00:25:15,800 in the name server, 568 00:25:16,420 --> 00:25:18,880 everybody who uses you as a secure entry point 569 00:25:18,880 --> 00:25:19,800 should need to be notified 570 00:25:19,800 --> 00:25:21,380 that your key's been stolen 571 00:25:21,380 --> 00:25:22,480 and they need to remove that 572 00:25:22,480 --> 00:25:23,960 because otherwise they keep trusting the key. 573 00:25:28,080 --> 00:25:29,660 Now, how do you actually deploy, 574 00:25:30,260 --> 00:25:32,860 how do you actually run and secure your own zone? 575 00:25:33,480 --> 00:25:35,880 Sadly, the bind development has gone rather slow, 576 00:25:36,640 --> 00:25:40,360 so you still need actually to lay the snapshot file 577 00:25:40,380 --> 00:25:43,480 from December configured with SSL support. 578 00:25:45,480 --> 00:25:46,820 If you're using Linux, 579 00:25:46,980 --> 00:25:48,800 you'll unfortunately have to disable thread support 580 00:25:48,800 --> 00:25:49,960 because it's completely broken. 581 00:25:50,940 --> 00:25:52,160 Compile and install it, 582 00:25:52,220 --> 00:25:54,060 make sure you're uninstalled, 583 00:25:54,060 --> 00:25:55,540 the creepy stuff, 584 00:25:55,700 --> 00:25:57,220 or installed properly over it. 585 00:25:58,600 --> 00:26:00,840 If you want the tools to test things, 586 00:26:01,020 --> 00:26:02,880 do not use the host command 587 00:26:02,880 --> 00:26:03,900 or the NSLOOKUP command. 588 00:26:05,260 --> 00:26:06,300 They're really old. 589 00:26:06,760 --> 00:26:08,640 If you really like the host output, 590 00:26:08,640 --> 00:26:10,280 like actually I do, 591 00:26:10,340 --> 00:26:11,960 that's why I still sometimes use host command, 592 00:26:12,560 --> 00:26:14,480 you can use DIGG plus multiline 593 00:26:14,480 --> 00:26:16,040 and then you'll get a more or less 594 00:26:16,660 --> 00:26:18,060 similar looking output. 595 00:26:18,360 --> 00:26:18,980 And you can actually, 596 00:26:19,500 --> 00:26:20,140 in the snapshot, 597 00:26:20,300 --> 00:26:22,320 there's also support for DIGG RC file. 598 00:26:22,460 --> 00:26:23,800 You can put this in your DIGG RC file 599 00:26:23,800 --> 00:26:26,220 and just start using DIGG instead. 600 00:26:27,040 --> 00:26:28,440 If you want to check DNSSEC, 601 00:26:28,560 --> 00:26:30,120 use the plus DNSSEC parameter 602 00:26:30,880 --> 00:26:32,360 to do secure resolving. 603 00:26:33,880 --> 00:26:36,120 If you just want the data without the checks, 604 00:26:36,200 --> 00:26:37,640 just to verify that the data's in there, 605 00:26:38,640 --> 00:26:39,500 you can use the plus CD flags in your query 606 00:26:39,500 --> 00:26:42,060 and you'll just get the data without the checks. 607 00:26:42,960 --> 00:26:44,340 Like if you don't use that flag 608 00:26:44,340 --> 00:26:45,020 and something's wrong, 609 00:26:45,100 --> 00:26:46,160 you'll just get surf failing. 610 00:26:46,260 --> 00:26:47,260 You have no clue what's going on. 611 00:26:47,360 --> 00:26:48,440 If you use plus CD flag, 612 00:26:48,600 --> 00:26:49,420 you don't get surf fail, 613 00:26:49,440 --> 00:26:50,280 you just get the data back. 614 00:26:52,120 --> 00:26:54,760 And there's one big issue we ran into as well 615 00:26:54,760 --> 00:26:55,960 at some point, 616 00:26:56,060 --> 00:26:58,340 but bind aid actually is too clever. 617 00:26:58,580 --> 00:26:59,440 What it does is 618 00:26:59,440 --> 00:27:01,180 if it sees that the signature expired 619 00:27:01,180 --> 00:27:03,480 or the inception date is wrong 620 00:27:03,480 --> 00:27:04,920 or your time on your server is wrong, 621 00:27:05,740 --> 00:27:08,460 it will just remove that data from the zone file. 622 00:27:09,120 --> 00:27:10,960 So if you start experimenting now, 623 00:27:11,020 --> 00:27:12,680 sign your zone for 30 days, 624 00:27:13,500 --> 00:27:15,100 then forget about your experiment, 625 00:27:15,260 --> 00:27:16,840 then in 30 days from now, 626 00:27:16,860 --> 00:27:17,700 if you're running bind 8, 627 00:27:17,880 --> 00:27:18,880 your zone will be empty 628 00:27:18,880 --> 00:27:20,260 and people will have problems. 629 00:27:20,840 --> 00:27:22,120 So either use bind 9 630 00:27:22,120 --> 00:27:23,680 or make sure that your signatures don't expire. 631 00:27:28,900 --> 00:27:29,360 No. 632 00:27:35,200 --> 00:27:36,500 As far as I know, 633 00:27:36,660 --> 00:27:38,520 the only software I currently support 634 00:27:38,640 --> 00:27:40,500 supporting all the DNSSEC and the DS records, 635 00:27:40,640 --> 00:27:41,800 only bind snapshot. 636 00:27:42,260 --> 00:27:44,040 If there's any other software out there, 637 00:27:44,100 --> 00:27:44,740 please let me know 638 00:27:44,740 --> 00:27:45,960 and I'll test it immediately. 639 00:27:46,800 --> 00:27:47,740 But so far, 640 00:27:47,740 --> 00:27:48,680 as far as I know, 641 00:27:48,740 --> 00:27:50,660 bind is the only software out there. 642 00:27:53,060 --> 00:27:53,460 Yes? 643 00:28:02,900 --> 00:28:04,080 So your question is about 644 00:28:04,080 --> 00:28:05,920 how to handle caching of keys? 645 00:28:14,760 --> 00:28:15,260 All right. 646 00:28:15,300 --> 00:28:16,100 The question is, 647 00:28:16,140 --> 00:28:17,060 if data is cached, 648 00:28:17,200 --> 00:28:18,320 what do you do when the key is stolen? 649 00:28:18,440 --> 00:28:18,600 Well, 650 00:28:20,020 --> 00:28:20,800 first of all, 651 00:28:21,540 --> 00:28:22,460 apart from the cache, 652 00:28:22,540 --> 00:28:23,720 there's also the signature lifetime. 653 00:28:23,960 --> 00:28:25,780 So if you keep your signature lifetime low, 654 00:28:25,940 --> 00:28:26,880 like say one day, 655 00:28:27,100 --> 00:28:28,000 then it doesn't matter 656 00:28:28,000 --> 00:28:29,000 how long it stays in the cache. 657 00:28:29,280 --> 00:28:29,940 After a day, 658 00:28:29,980 --> 00:28:30,420 it will be invalid. 659 00:28:31,940 --> 00:28:33,000 If you actually use 660 00:28:33,000 --> 00:28:34,320 a long signature time, 661 00:28:35,000 --> 00:28:36,360 then you'll run into the problem 662 00:28:36,360 --> 00:28:36,540 that, 663 00:28:36,580 --> 00:28:36,780 yeah, 664 00:28:36,820 --> 00:28:38,620 if all the cached data is out there, 665 00:28:38,620 --> 00:28:40,240 then you might have a problem 666 00:28:41,100 --> 00:28:43,540 only if the path of trust 667 00:28:43,540 --> 00:28:44,420 is not broken before. 668 00:28:44,720 --> 00:28:46,500 Like even if that's cached, 669 00:28:46,680 --> 00:28:48,620 if they do a proper check 670 00:28:49,140 --> 00:28:50,460 on the entire chain of trust 671 00:28:50,460 --> 00:28:52,200 and you've changed your key 672 00:28:52,200 --> 00:28:54,420 and the parent has changed the DS key 673 00:28:54,420 --> 00:28:56,820 and they actually ask for that data, 674 00:28:57,000 --> 00:28:58,340 then they already know 675 00:28:58,340 --> 00:28:59,800 that there's some other data there. 676 00:28:59,900 --> 00:29:00,760 So automatically, 677 00:29:00,960 --> 00:29:02,200 that what's in your cache is invalid. 678 00:29:07,580 --> 00:29:08,100 Okay. 679 00:29:10,680 --> 00:29:12,460 So the actual commands 680 00:29:12,460 --> 00:29:14,960 to secure your zone file. 681 00:29:16,200 --> 00:29:17,320 DNSSEC KEY GEN 682 00:29:17,320 --> 00:29:18,240 and then the parameters 683 00:29:18,240 --> 00:29:19,380 for algorithm, 684 00:29:19,620 --> 00:29:20,380 bit size, 685 00:29:20,880 --> 00:29:21,560 zone name. 686 00:29:23,240 --> 00:29:24,620 You'll get some output back 687 00:29:24,620 --> 00:29:26,500 telling you what key number, 688 00:29:26,760 --> 00:29:27,800 what key ID is there. 689 00:29:31,000 --> 00:29:32,940 The first command is for, 690 00:29:33,140 --> 00:29:35,280 the DNSSEC KEY GEN command 691 00:29:35,280 --> 00:29:36,460 doesn't really know the concept 692 00:29:36,460 --> 00:29:37,380 of key signing key 693 00:29:37,380 --> 00:29:38,360 and zone signing key. 694 00:29:38,620 --> 00:29:41,020 So you don't see any difference here 695 00:29:41,020 --> 00:29:42,340 in the generation of keys. 696 00:29:42,620 --> 00:29:45,520 You just see that we used 2048 bits 697 00:29:45,520 --> 00:29:46,620 for the key signing key 698 00:29:46,620 --> 00:29:49,260 and 768 for the zone signing key. 699 00:29:49,740 --> 00:29:51,420 And you'll end up with two files, 700 00:29:51,680 --> 00:29:53,520 the .key and the .private file. 701 00:29:54,640 --> 00:29:55,940 Obviously the .private file 702 00:29:55,940 --> 00:29:56,800 should be very secure 703 00:29:56,800 --> 00:29:57,620 on your own machine 704 00:29:57,620 --> 00:29:59,000 and the .key file is actually something 705 00:29:59,000 --> 00:29:59,980 you put in your zone. 706 00:30:00,060 --> 00:30:01,460 So you could cap the key file 707 00:30:01,460 --> 00:30:02,200 into your zone, 708 00:30:02,700 --> 00:30:04,000 increase the serial number 709 00:30:04,000 --> 00:30:05,360 and then actually use 710 00:30:05,360 --> 00:30:06,800 the DNSSEC SIGN ZONE command 711 00:30:06,800 --> 00:30:07,640 to sign the key 712 00:30:07,640 --> 00:30:09,380 as illustrated there. 713 00:30:10,600 --> 00:30:14,280 You'll get a .signed zone file 714 00:30:14,280 --> 00:30:16,460 which you then update, 715 00:30:16,780 --> 00:30:18,940 upload to your master name server 716 00:30:20,120 --> 00:30:22,140 and then change the load command 717 00:30:22,140 --> 00:30:24,340 to actually load the .signed zone file 718 00:30:24,340 --> 00:30:26,020 and you're running. 719 00:30:26,360 --> 00:30:27,540 And you can test it with 720 00:30:27,540 --> 00:30:30,480 multi-line DNSSEC command. 721 00:30:33,140 --> 00:30:35,120 So in the Netherlands 722 00:30:35,120 --> 00:30:36,780 this has already been deployed 723 00:30:37,280 --> 00:30:38,380 in a shadow system 724 00:30:38,380 --> 00:30:39,540 by the domain registry. 725 00:30:40,220 --> 00:30:43,560 You can go to secrec.nl.netlabs.nl 726 00:30:45,660 --> 00:30:47,060 and this is an example 727 00:30:47,060 --> 00:30:48,300 of how you actually talk 728 00:30:48,300 --> 00:30:50,780 and create the DS record 729 00:30:51,660 --> 00:30:52,480 at the parent. 730 00:30:52,760 --> 00:30:54,040 You basically set up your zone 731 00:30:54,040 --> 00:30:54,980 just like we did before. 732 00:30:55,120 --> 00:30:56,400 You publish it on your name server. 733 00:30:56,460 --> 00:30:57,880 You wait until things have propagated. 734 00:30:58,240 --> 00:30:59,560 Then you go to this website 735 00:30:59,560 --> 00:31:00,500 and you say, 736 00:31:00,540 --> 00:31:02,040 I want to secure freeswan.nl. 737 00:31:02,760 --> 00:31:03,660 What it will do is 738 00:31:03,660 --> 00:31:05,080 it will do a query for the key record 739 00:31:05,080 --> 00:31:06,960 and you can decide 740 00:31:06,960 --> 00:31:07,780 which of the key record 741 00:31:07,780 --> 00:31:09,540 is the one that needs the DS. 742 00:31:09,680 --> 00:31:10,940 So which is the key signing key. 743 00:31:11,160 --> 00:31:12,180 You select it. 744 00:31:12,220 --> 00:31:12,740 You hit submit. 745 00:31:13,120 --> 00:31:14,200 Some email is sent 746 00:31:14,200 --> 00:31:15,860 to the proper contacts 747 00:31:15,860 --> 00:31:17,580 that pulls from the RUIS database. 748 00:31:20,220 --> 00:31:22,640 And actually it creates the DS record 749 00:31:22,640 --> 00:31:23,560 and the next day 750 00:31:24,160 --> 00:31:25,240 your zone is secured. 751 00:31:27,600 --> 00:31:28,720 Obviously for the people 752 00:31:28,720 --> 00:31:29,660 who've paid attention 753 00:31:29,660 --> 00:31:30,980 they've now seen a big problem. 754 00:31:31,140 --> 00:31:33,440 But I don't see any hands raised yet. 755 00:31:35,080 --> 00:31:35,700 Okay. 756 00:31:35,800 --> 00:31:37,100 This first query 757 00:31:37,100 --> 00:31:37,980 that's being done 758 00:31:37,980 --> 00:31:40,160 by the registration system 759 00:31:40,160 --> 00:31:42,020 can of course be spoofed. 760 00:31:42,560 --> 00:31:46,240 So they need to work on preventing this. 761 00:31:46,340 --> 00:31:48,260 But that's also why 762 00:31:48,260 --> 00:31:49,680 there's the extra mail step there 763 00:31:49,680 --> 00:31:50,560 to secure it. 764 00:31:51,520 --> 00:31:53,360 This is just an example implementation. 765 00:31:54,360 --> 00:31:56,140 They need to address things like 766 00:31:56,140 --> 00:31:58,640 PGP secure the updates for this. 767 00:32:00,360 --> 00:32:02,100 They've also written an application 768 00:32:02,100 --> 00:32:03,700 to actually do a key rollover 769 00:32:03,700 --> 00:32:04,860 at the parent. 770 00:32:05,080 --> 00:32:06,280 Basically what happens 771 00:32:06,280 --> 00:32:07,520 is you go to this web interface. 772 00:32:09,460 --> 00:32:11,100 You tell them I want to rollover 773 00:32:11,100 --> 00:32:13,260 freeze one and out key signing key. 774 00:32:13,760 --> 00:32:15,120 They give you a random record. 775 00:32:15,320 --> 00:32:17,360 You sign it with a little Perl script tool. 776 00:32:18,620 --> 00:32:20,240 You put it in the box. 777 00:32:20,500 --> 00:32:21,160 You upload it. 778 00:32:21,340 --> 00:32:22,360 They check the signature. 779 00:32:22,640 --> 00:32:23,920 Then you know that you've got the old key 780 00:32:23,920 --> 00:32:25,120 and then they'll replace it 781 00:32:25,120 --> 00:32:25,920 for your new key. 782 00:32:28,840 --> 00:32:33,800 This is how a resolve query looks in answer. 783 00:32:34,340 --> 00:32:35,060 You can use this 784 00:32:35,080 --> 00:32:37,220 to do the two machines listed there 785 00:32:37,220 --> 00:32:39,660 to do your own testing on secure resolving. 786 00:32:40,320 --> 00:32:42,260 This machine is set up to accept 787 00:32:42,260 --> 00:32:44,100 queries from everywhere in the world. 788 00:32:45,140 --> 00:32:47,660 So you'll see here a query for 789 00:32:49,480 --> 00:32:51,720 actually an old example fnl.nl. 790 00:32:53,620 --> 00:32:54,940 One thing to note is that 791 00:32:54,940 --> 00:32:56,460 you'll see the AD bit being set. 792 00:32:56,680 --> 00:32:59,420 So this was actually authenticated data. 793 00:33:03,420 --> 00:33:05,520 So this is all fine for one zone. 794 00:33:05,620 --> 00:33:07,140 Now how do I handle a lot of zones? 795 00:33:08,180 --> 00:33:10,580 Well, there are some standard Perl tools written, 796 00:33:10,780 --> 00:33:11,920 the net DNS stuff. 797 00:33:12,300 --> 00:33:14,100 And there's some new things written, 798 00:33:14,280 --> 00:33:15,860 the net DNS sec, 799 00:33:16,000 --> 00:33:18,840 which probably the DNS sec main tools 800 00:33:18,840 --> 00:33:20,020 have been slightly renamed 801 00:33:20,020 --> 00:33:21,000 in a different hierarchy. 802 00:33:23,460 --> 00:33:25,380 Some of these are pre-released 803 00:33:25,380 --> 00:33:27,300 by Olaf Goldman of RIPE. 804 00:33:28,060 --> 00:33:29,580 Not all of it is public, 805 00:33:29,700 --> 00:33:31,720 but just talk to me 806 00:33:31,720 --> 00:33:32,840 and I'll give you a copy 807 00:33:32,840 --> 00:33:33,960 and you can test it if you want. 808 00:33:36,320 --> 00:33:36,940 These tools, 809 00:33:37,400 --> 00:33:38,880 these Perl tools actually support 810 00:33:38,880 --> 00:33:40,920 all the things I've talked about so far. 811 00:33:41,320 --> 00:33:42,460 Some commands you can use, 812 00:33:42,660 --> 00:33:45,560 main key DB is actually a shell. 813 00:33:45,820 --> 00:33:47,100 You can just type in everything 814 00:33:47,100 --> 00:33:49,220 with command line completion and everything. 815 00:33:49,460 --> 00:33:50,920 Or you can just type it all in one line, 816 00:33:50,920 --> 00:33:51,960 which I did here as an example. 817 00:33:52,660 --> 00:33:53,740 So to create a key, 818 00:33:53,760 --> 00:33:54,380 you just type that 819 00:33:54,380 --> 00:33:56,480 and it just keeps the key separate 820 00:33:56,480 --> 00:33:57,280 in a separate box. 821 00:33:57,300 --> 00:33:58,520 So you can create a file structure 822 00:33:59,280 --> 00:34:00,680 apart from your zone file, 823 00:34:02,080 --> 00:34:03,760 which means that you can easily 824 00:34:04,060 --> 00:34:04,920 roll over stuff 825 00:34:04,920 --> 00:34:06,200 and change your keys 826 00:34:06,200 --> 00:34:07,520 without actually having to manually 827 00:34:07,520 --> 00:34:08,340 edit your zone file. 828 00:34:08,560 --> 00:34:09,700 So it keeps your zone 829 00:34:09,700 --> 00:34:10,880 and your key separate. 830 00:34:11,080 --> 00:34:12,120 And once you sign, 831 00:34:12,340 --> 00:34:14,020 it actually adds the two bits together 832 00:34:14,020 --> 00:34:16,080 and creates a secure zone for you. 833 00:34:17,060 --> 00:34:18,920 Then you run the DNS signer 834 00:34:19,620 --> 00:34:20,660 and then you do, 835 00:34:20,780 --> 00:34:22,900 you can also do the key rollovers. 836 00:34:27,840 --> 00:34:29,820 So there are some changes in the organization 837 00:34:29,820 --> 00:34:31,820 that you'll need to be aware of. 838 00:34:32,560 --> 00:34:33,300 Of course, 839 00:34:33,360 --> 00:34:34,980 you do not want your signing machine 840 00:34:34,980 --> 00:34:35,900 to be in your name server. 841 00:34:36,400 --> 00:34:38,520 If you keep all of these secure, 842 00:34:38,680 --> 00:34:40,380 all of the private keys on your name server, 843 00:34:40,540 --> 00:34:42,460 the next root exploit for bind 844 00:34:42,460 --> 00:34:45,280 will still kill all of your extra security. 845 00:34:46,020 --> 00:34:47,560 So it's very important 846 00:34:47,560 --> 00:34:49,300 to have a separate signing machine, 847 00:34:49,540 --> 00:34:51,080 sign the data elsewhere, 848 00:34:51,240 --> 00:34:53,020 and then upload it to your name server. 849 00:34:53,220 --> 00:34:54,440 And make sure that your name server 850 00:34:54,440 --> 00:34:55,520 has absolutely no rights 851 00:34:55,820 --> 00:34:56,720 to your signing machine. 852 00:34:57,300 --> 00:34:58,900 It should just be one-way communication, 853 00:34:59,180 --> 00:35:00,220 which means that 854 00:35:00,220 --> 00:35:01,620 even if your name server 855 00:35:01,620 --> 00:35:02,860 is completely hacked to pieces, 856 00:35:03,260 --> 00:35:05,540 they can only use regular DNS, 857 00:35:05,640 --> 00:35:06,840 but they could never use 858 00:35:06,840 --> 00:35:09,740 another DNS signed zone data 859 00:35:10,240 --> 00:35:12,120 to hijack your zone. 860 00:35:12,780 --> 00:35:14,580 But it's actually a really cool feature. 861 00:35:14,780 --> 00:35:16,840 Your name server can be completely hacked, 862 00:35:16,920 --> 00:35:18,920 yet still they cannot send you anywhere else. 863 00:35:20,320 --> 00:35:21,800 Don't let the SIG records expire. 864 00:35:24,060 --> 00:35:26,120 If you're using complex systems 865 00:35:26,120 --> 00:35:27,080 like MySQL database 866 00:35:27,300 --> 00:35:30,300 to have customers edit their own zone, 867 00:35:30,500 --> 00:35:33,260 you'll have to write your own glue 868 00:35:33,260 --> 00:35:35,260 where it's actually fitted in. 869 00:35:37,460 --> 00:35:39,280 So now we've secured the DNS. 870 00:35:39,400 --> 00:35:40,740 Apart from having a secure DNS, 871 00:35:41,040 --> 00:35:43,960 what other applications are out there? 872 00:35:44,140 --> 00:35:45,060 After the break, 873 00:35:45,160 --> 00:35:47,500 I will talk about what we believe 874 00:35:47,500 --> 00:35:50,340 is the real first application 875 00:35:50,340 --> 00:35:51,480 using DNSSEC, 876 00:35:51,520 --> 00:35:52,300 which is FreeSWAN. 877 00:35:54,720 --> 00:35:56,300 Basically, it can do opportunities 878 00:35:56,300 --> 00:35:58,220 encryption, meaning that 879 00:35:58,220 --> 00:36:00,160 it can set up IPsec tunnels 880 00:36:00,160 --> 00:36:02,520 based on keys that are in the DNS zone. 881 00:36:02,820 --> 00:36:03,780 And then, of course, 882 00:36:03,820 --> 00:36:05,380 if the DNS zone is secure, 883 00:36:06,120 --> 00:36:08,020 then you can just spontaneously 884 00:36:08,020 --> 00:36:09,500 set up IPsec tunnels 885 00:36:09,500 --> 00:36:11,260 to anyone who supports us in the world 886 00:36:11,260 --> 00:36:13,040 without having had prior contact whatsoever. 887 00:36:13,880 --> 00:36:15,420 For anybody who's maintaining 888 00:36:15,420 --> 00:36:17,280 more than a few static IPsec tunnels, 889 00:36:17,460 --> 00:36:19,060 this is really something you want to use 890 00:36:19,060 --> 00:36:20,840 because it ensures you 891 00:36:20,840 --> 00:36:22,760 massive deployment of IPsec tunnels 892 00:36:22,760 --> 00:36:23,940 without having to configure 893 00:36:23,940 --> 00:36:24,880 every single tunnel. 894 00:36:24,880 --> 00:36:26,500 If you're interested in this, 895 00:36:27,380 --> 00:36:28,680 come back after the break. 896 00:36:29,320 --> 00:36:31,020 Another application people wrote 897 00:36:31,020 --> 00:36:32,100 a while ago to test 898 00:36:32,100 --> 00:36:33,860 was the OpenSSH support. 899 00:36:34,500 --> 00:36:36,720 Basically, put the SSH key 900 00:36:36,720 --> 00:36:39,780 in the DNS zone and support it. 901 00:36:40,640 --> 00:36:42,440 Unfortunately, nobody's maintaining it. 902 00:36:42,580 --> 00:36:45,840 It was written for OpenSSH 2, I think. 903 00:36:47,700 --> 00:36:50,100 So maybe someone can convince 904 00:36:50,100 --> 00:36:52,800 the BSD people to update this. 905 00:36:54,280 --> 00:36:54,860 This is the first time 906 00:36:54,880 --> 00:36:54,900 we've done this. 907 00:36:54,900 --> 00:36:58,280 The DHCP software actually has 908 00:36:58,280 --> 00:37:03,640 some support to send keys over DHCP, 909 00:37:03,760 --> 00:37:04,500 which we'll be using 910 00:37:04,500 --> 00:37:05,980 for the WaveStack stuff 911 00:37:07,100 --> 00:37:08,540 here at the conference as well. 912 00:37:09,660 --> 00:37:11,340 If you want to secure your wireless, 913 00:37:11,580 --> 00:37:12,940 come talk to us 914 00:37:12,940 --> 00:37:13,740 and we'll show you 915 00:37:13,740 --> 00:37:15,420 how to use the DHCP software 916 00:37:15,420 --> 00:37:18,340 to secure your last mile here. 917 00:37:19,260 --> 00:37:21,920 And there's some next walking software written. 918 00:37:22,080 --> 00:37:23,680 If you remember the next record, 919 00:37:23,680 --> 00:37:26,160 it points to the next piece of data in the zone. 920 00:37:26,560 --> 00:37:28,280 So basically, you can sequentially query 921 00:37:28,280 --> 00:37:30,080 a whole zone and get the entire zone data. 922 00:37:30,340 --> 00:37:31,860 Some people are worried about that, 923 00:37:32,760 --> 00:37:34,280 especially the domain registries 924 00:37:34,280 --> 00:37:35,320 who basically do not publish 925 00:37:35,320 --> 00:37:36,480 lists of the entire domain. 926 00:37:37,520 --> 00:37:39,180 If you would run this on .com, 927 00:37:39,260 --> 00:37:41,080 you would just get the entire .com zone file, 928 00:37:41,100 --> 00:37:41,820 you know, all the domains. 929 00:37:43,020 --> 00:37:44,080 People don't like that. 930 00:37:44,980 --> 00:37:46,720 There's still no browser plug-ins, 931 00:37:46,760 --> 00:37:49,850 no mail clients that actively support DNSSEC. 932 00:37:50,360 --> 00:37:52,760 There's no POSIX support written or defined. 933 00:37:54,080 --> 00:37:56,320 That's something that needs to happen now, 934 00:37:56,500 --> 00:37:57,420 but that's not going to happen 935 00:37:57,420 --> 00:37:59,200 before people start deploying this 936 00:37:59,200 --> 00:37:59,800 on their name servers. 937 00:38:04,380 --> 00:38:05,660 There's some references here 938 00:38:05,660 --> 00:38:07,260 for people who want to look up. 939 00:38:08,860 --> 00:38:10,700 The write reference is actually 940 00:38:10,700 --> 00:38:11,820 a really good manual 941 00:38:11,820 --> 00:38:13,980 if you want to experiment with it yourself. 942 00:38:15,320 --> 00:38:17,240 These are all on the slides. 943 00:38:17,600 --> 00:38:19,460 You can find it later on. 944 00:38:21,820 --> 00:38:22,740 So I'm more or less done 945 00:38:22,760 --> 00:38:24,180 when everyone is ready for the break. 946 00:38:24,340 --> 00:38:26,320 How much time do we have left? 947 00:38:26,980 --> 00:38:28,100 Ten minutes, okay. 948 00:38:28,640 --> 00:38:30,340 So are there any questions at this point? 949 00:38:33,980 --> 00:38:34,420 None. 950 00:38:34,520 --> 00:38:36,480 Okay, well, I'll show you my little script 951 00:38:36,480 --> 00:38:38,800 that I wrote then to secure. 952 00:38:39,680 --> 00:38:41,160 I'm basically running a copy 953 00:38:41,160 --> 00:38:42,880 of our signing machine on my laptop, 954 00:38:43,100 --> 00:38:47,680 so if everybody wants all the keys of us, 955 00:38:47,860 --> 00:38:49,760 then they should really try and hack into my laptop. 956 00:38:54,020 --> 00:38:56,340 Of course, it's not connected to the net right now. 957 00:38:56,460 --> 00:38:56,760 Sorry. 958 00:39:01,100 --> 00:39:02,480 So if you see here, 959 00:39:02,580 --> 00:39:04,460 these are a bunch of our customers, 960 00:39:04,640 --> 00:39:07,420 and they have domains in separate things. 961 00:39:08,060 --> 00:39:11,920 What I did was I wrote just a little shell script. 962 00:39:12,180 --> 00:39:13,060 I don't like Perl. 963 00:39:13,980 --> 00:39:15,880 Basically increase all the serial numbers 964 00:39:15,880 --> 00:39:17,480 to the current date and hour, 965 00:39:17,640 --> 00:39:20,600 and then you'll see that I've run 966 00:39:20,600 --> 00:39:22,760 the sign command. 967 00:39:25,920 --> 00:39:26,780 There's a little bug. 968 00:39:27,060 --> 00:39:28,140 I have to do one manually 969 00:39:28,140 --> 00:39:29,360 because it's a really big record, 970 00:39:29,460 --> 00:39:31,080 and apparently there's somewhere in the Perl tool 971 00:39:31,080 --> 00:39:32,640 there's a bug in it. 972 00:39:33,480 --> 00:39:35,520 Basically to give you an idea of how fast, 973 00:39:35,680 --> 00:39:37,440 actually how slow all of this is, 974 00:39:38,620 --> 00:39:41,380 these are about 150 domains that's now running. 975 00:39:41,640 --> 00:39:44,180 My laptop is about a Pentium 3 500. 976 00:39:46,380 --> 00:39:48,660 One thing I found out that I had actually, 977 00:39:48,660 --> 00:39:51,820 like my battery life is really, really crappy, 978 00:39:52,060 --> 00:39:54,660 but when I was in a train running this for the first time, 979 00:39:54,720 --> 00:39:55,960 I actually found out that there's something 980 00:39:55,960 --> 00:39:58,040 that you run out of even before battery power, 981 00:39:58,260 --> 00:39:59,200 which is random. 982 00:40:00,080 --> 00:40:01,240 When you're on a laptop, 983 00:40:01,420 --> 00:40:02,840 you really have that random. 984 00:40:03,420 --> 00:40:06,440 So there you see the error for the XADN at the null zone. 985 00:40:07,960 --> 00:40:08,720 That's the only, 986 00:40:09,240 --> 00:40:11,280 that's a really big TXT record we use 987 00:40:11,280 --> 00:40:12,220 for the opposition encryption, 988 00:40:12,460 --> 00:40:14,260 and it can't really sign it. 989 00:40:14,780 --> 00:40:18,220 Now you see it's starting to sign all the zones. 990 00:40:20,540 --> 00:40:23,600 It's actually much slower than it normally is. 991 00:40:26,660 --> 00:40:27,700 Oh, there we go. 992 00:40:31,160 --> 00:40:32,460 So no questions. 993 00:40:33,420 --> 00:40:35,920 Then we're going to have a slightly larger break. 994 00:40:36,460 --> 00:40:39,940 So if people are interested in setting up 995 00:40:39,940 --> 00:40:42,600 DNSSEC and IPSEC tunnels to secure the wireless, 996 00:40:43,580 --> 00:40:46,600 I'll talk to you about the opportunistic encryption bit 997 00:40:46,600 --> 00:40:48,200 after the break. 998 00:40:49,160 --> 00:40:49,680 Thanks. 999 00:40:50,920 --> 00:40:52,960 Apparently there are now more microphones, 1000 00:40:53,120 --> 00:40:56,040 and you should be able to hear me a little bit better. 1001 00:40:56,200 --> 00:40:57,540 If not, just let me know. 1002 00:40:58,240 --> 00:41:00,600 Okay, so now part two, opportunistic encryption. 1003 00:41:01,680 --> 00:41:04,420 The reason I personally got interested in DNSSEC 1004 00:41:04,740 --> 00:41:08,760 is that I really want host-to-host and encryption. 1005 00:41:10,780 --> 00:41:15,640 I basically want IP to basically standardize to IPSEC. 1006 00:41:15,720 --> 00:41:17,980 I want everybody to talk IPSEC. 1007 00:41:17,980 --> 00:41:20,720 And no way we're going to do this with manual configuration, 1008 00:41:20,980 --> 00:41:23,260 so we have to have something that just works automatically. 1009 00:41:24,980 --> 00:41:27,860 Basically what we're going to do is we're going to put keys into DNS 1010 00:41:27,860 --> 00:41:29,380 and use that to talk securely. 1011 00:41:29,580 --> 00:41:32,440 And, of course, we can trust the DNS because we just secured it. 1012 00:41:34,280 --> 00:41:38,000 And we will deploy this here during the conference 1013 00:41:39,300 --> 00:41:40,960 in the WaveSec way as well. 1014 00:41:41,080 --> 00:41:44,580 If you have any questions on how to use this, do come to me. 1015 00:41:44,620 --> 00:41:47,500 We really need to deploy this as soon as we can. 1016 00:41:49,040 --> 00:41:51,780 Okay, so I'll quickly talk about the basics, 1017 00:41:52,340 --> 00:41:53,560 what's opportunistic encryption, 1018 00:41:53,760 --> 00:41:56,060 how you can protect your network with it or your servers, 1019 00:41:56,780 --> 00:41:58,620 how to install and configure it. 1020 00:41:58,920 --> 00:42:00,860 The configuring part should be really easy. 1021 00:42:01,120 --> 00:42:02,340 We've done our best for that. 1022 00:42:02,520 --> 00:42:04,380 And then we use an example implementation 1023 00:42:04,380 --> 00:42:08,300 on how to use opportunistic encryption to protect your wireless. 1024 00:42:12,800 --> 00:42:17,400 So IPSEC in a nutshell is basically, it consists of two parts. 1025 00:42:17,980 --> 00:42:20,560 First, we're going to get a private channel 1026 00:42:20,560 --> 00:42:23,440 that we're sure that we're only talking to one guy 1027 00:42:23,440 --> 00:42:26,080 and not three guys in the middle. 1028 00:42:26,680 --> 00:42:28,460 And once we know that we're talking to one guy 1029 00:42:28,460 --> 00:42:29,880 using the Diffie-Hellman key exchange, 1030 00:42:30,340 --> 00:42:32,440 we're going to actually ask who this guy is 1031 00:42:32,440 --> 00:42:35,020 and if he can prove that he really is who he claims to be. 1032 00:42:35,260 --> 00:42:36,660 And that's the part two thing. 1033 00:42:38,180 --> 00:42:40,260 Of course, as you might guess, 1034 00:42:40,300 --> 00:42:42,080 we're going to use DNSSEC for that part. 1035 00:42:47,980 --> 00:42:48,600 So to quote myself, 1036 00:42:49,000 --> 00:42:51,080 the goal of opportunistic encryption is 1037 00:42:51,080 --> 00:42:53,360 to have IPSEC connections without prior arrangement 1038 00:42:53,360 --> 00:42:55,780 to exchange information with parties you've never known before, 1039 00:42:55,960 --> 00:42:57,920 allowing mass deployment of computers on the Internet 1040 00:42:57,920 --> 00:42:59,500 to talk securely and privately. 1041 00:43:00,420 --> 00:43:03,240 This will mean that anybody who is going to eavesdrop 1042 00:43:03,240 --> 00:43:04,800 will have to do an active attack on you 1043 00:43:04,800 --> 00:43:06,360 instead of a passive listening attack, 1044 00:43:07,000 --> 00:43:09,980 which is much easier to actually find out. 1045 00:43:13,260 --> 00:43:15,020 Also, we'll end up with servers 1046 00:43:15,020 --> 00:43:17,860 who do not know how to do opportunistic encryption. 1047 00:43:17,980 --> 00:43:20,960 So there's also a way how we can just add a server 1048 00:43:20,960 --> 00:43:24,600 that will do it for the other people that don't know it. 1049 00:43:24,720 --> 00:43:26,880 You can actually use an OE security gateway 1050 00:43:26,880 --> 00:43:29,220 to protect, for instance, your Windows server farm. 1051 00:43:34,060 --> 00:43:41,960 So one of the things to prevent a middle-and-middle attack 1052 00:43:41,960 --> 00:43:44,260 is to actually have a third party you can trust 1053 00:43:44,260 --> 00:43:45,740 to get the information from. 1054 00:43:46,200 --> 00:43:47,560 We'll use DNSSEC. 1055 00:43:49,660 --> 00:43:50,820 So how does this work? 1056 00:43:50,960 --> 00:43:55,200 First, we're going to put a special record 1057 00:43:55,200 --> 00:43:58,140 in the reverse tree, in the DNS tree, 1058 00:43:58,220 --> 00:43:59,440 for our IP number. 1059 00:43:59,700 --> 00:44:01,660 The example that you see here 1060 00:44:01,660 --> 00:44:04,760 is the key from my desktop at home. 1061 00:44:04,940 --> 00:44:08,120 It has 193.1.1.10.1.5.7.17. 1062 00:44:09,040 --> 00:44:11,700 And it's a TXT record that says, 1063 00:44:11,880 --> 00:44:14,600 I can do IPSEC, opportunistic encryption. 1064 00:44:15,720 --> 00:44:17,960 My gateway is this IP number. 1065 00:44:17,980 --> 00:44:20,160 Which is the machine itself. 1066 00:44:20,860 --> 00:44:22,600 And then the key follows. 1067 00:44:23,680 --> 00:44:28,320 And, of course, this is signed by a signature record. 1068 00:44:30,460 --> 00:44:32,820 The DHCP server on client... 1069 00:44:34,080 --> 00:44:37,720 The ISC server actually supports some of this stuff, 1070 00:44:37,920 --> 00:44:40,380 sending it back and forth to actually establish this. 1071 00:44:40,460 --> 00:44:43,720 Even when I'm turning on my laptop in this network here, 1072 00:44:45,480 --> 00:44:47,120 I will get some random IP, 1073 00:44:47,120 --> 00:44:48,740 and I can actually update my reverse. 1074 00:44:49,560 --> 00:44:51,880 It doesn't partially work here because we're in NATED, 1075 00:44:51,900 --> 00:44:53,940 but we've worked around this by tunneling our own 1076 00:44:53,940 --> 00:44:54,960 slash 24 in here. 1077 00:44:55,440 --> 00:44:58,060 So people actually get WaveSec up and running later on 1078 00:44:58,060 --> 00:44:59,200 and actually have a real IP. 1079 00:45:03,960 --> 00:45:06,640 So if both parties have the key in the DNS, 1080 00:45:06,880 --> 00:45:08,900 they can query it and set up a tunnel. 1081 00:45:15,160 --> 00:45:18,320 So you don't always control your reverse. 1082 00:45:18,820 --> 00:45:20,900 Actually, most of us do not control our reverse 1083 00:45:20,900 --> 00:45:21,880 unless we have servers. 1084 00:45:23,020 --> 00:45:25,900 So we had to figure out a way how to do this 1085 00:45:25,900 --> 00:45:27,920 when you have no control of it. 1086 00:45:28,560 --> 00:45:31,960 So we can't work around it. 1087 00:45:32,000 --> 00:45:33,820 There has to be one guy in the connection 1088 00:45:33,820 --> 00:45:35,140 that actually controls his reverse 1089 00:45:35,140 --> 00:45:36,220 and have something in there. 1090 00:45:36,340 --> 00:45:37,300 Once you have that, 1091 00:45:37,300 --> 00:45:40,040 the other guy can just have something in the forward. 1092 00:45:42,280 --> 00:45:44,100 I guess I'll go wait for the plane. 1093 00:45:52,540 --> 00:45:56,660 So what we can do is we can put our key in the forward. 1094 00:45:56,900 --> 00:45:59,480 This example here shows my laptop, 1095 00:45:59,680 --> 00:46:00,820 VIO XT.NET NL, 1096 00:46:00,980 --> 00:46:02,940 which has a key in the forward. 1097 00:46:04,140 --> 00:46:06,740 In this case, we don't point to a security gateway 1098 00:46:06,740 --> 00:46:08,620 because we don't know which IP we are. 1099 00:46:08,880 --> 00:46:11,420 So the entry right now is 127.0.0.1, 1100 00:46:11,580 --> 00:46:13,020 which basically means ignore me. 1101 00:46:14,260 --> 00:46:16,660 And again, I put my key in the DNS. 1102 00:46:17,240 --> 00:46:19,540 XT.NET NL is signed, so it's pretty secure. 1103 00:46:22,160 --> 00:46:27,240 So now if my laptop puts in a random network, 1104 00:46:27,320 --> 00:46:29,980 gets an IP, and I go talk to my servers at home, 1105 00:46:30,200 --> 00:46:32,720 which have all the support for what we needed, 1106 00:46:32,840 --> 00:46:35,600 I just tell them, hey, I'm VIO XT.NET NL. 1107 00:46:35,660 --> 00:46:36,680 Grab the key from the DNS. 1108 00:46:36,680 --> 00:46:38,600 And then we can talk securely. 1109 00:46:42,140 --> 00:46:46,660 One thing to note is that actually if I turn on my laptop here 1110 00:46:46,660 --> 00:46:49,620 and my server for some reason decides to talk to me first, 1111 00:46:49,840 --> 00:46:52,980 my server does not know that I can do opportunistic encryption 1112 00:46:53,680 --> 00:46:55,840 because my IP does not advertise that. 1113 00:46:55,960 --> 00:46:57,260 So it will send a packet in the clear. 1114 00:46:58,640 --> 00:47:02,400 Once I get it and I send an answering packet, 1115 00:47:02,520 --> 00:47:04,780 then of course I will notice that the remote server 1116 00:47:04,780 --> 00:47:06,500 can actually do OE and set up OE. 1117 00:47:06,680 --> 00:47:08,820 But it's a really odd situation where one packet 1118 00:47:08,820 --> 00:47:09,820 actually flows in the clear. 1119 00:47:14,360 --> 00:47:16,860 So one problem of opportunistic encryption, of course, 1120 00:47:16,900 --> 00:47:18,160 it takes some DNS lookups. 1121 00:47:18,340 --> 00:47:20,820 And for some servers, that's really too much of a load, 1122 00:47:20,980 --> 00:47:22,460 especially busy web servers. 1123 00:47:23,320 --> 00:47:27,000 So there's a way to actually do only passive OE, 1124 00:47:27,180 --> 00:47:30,040 which means that do not try to initiate OE 1125 00:47:30,040 --> 00:47:31,340 to everybody who connects to you. 1126 00:47:31,540 --> 00:47:33,940 But if somebody connects to you using OE, 1127 00:47:34,060 --> 00:47:35,360 then sure, let's go ahead. 1128 00:47:36,840 --> 00:47:40,100 And this is actually what we use on, for instance, 1129 00:47:40,220 --> 00:47:41,480 the freezron.org website. 1130 00:47:42,080 --> 00:47:44,040 If you go there, if you don't have OE, 1131 00:47:44,220 --> 00:47:45,100 you will just get the server. 1132 00:47:45,200 --> 00:47:48,280 If you do have OE, you'll get a nicely encrypted secure channel. 1133 00:47:57,080 --> 00:48:00,660 So we're going to use a form of OE to protect the wireless. 1134 00:48:00,700 --> 00:48:02,980 This is a diagram of basically what we're setting up here 1135 00:48:02,980 --> 00:48:03,520 at the conference. 1136 00:48:04,280 --> 00:48:05,840 We've got the internet. 1137 00:48:06,480 --> 00:48:08,500 We've got our local network. 1138 00:48:09,300 --> 00:48:10,380 We've got our laptops. 1139 00:48:12,460 --> 00:48:18,220 We send a DHCP request that actually contains our key 1140 00:48:18,220 --> 00:48:19,060 in the request. 1141 00:48:20,440 --> 00:48:23,320 The server, our own DHCP server, 1142 00:48:23,360 --> 00:48:24,600 which we added to this network, 1143 00:48:25,180 --> 00:48:27,200 sees that somebody's asking for OE, 1144 00:48:27,380 --> 00:48:30,140 and it will, next to the regular DHCP server, 1145 00:48:30,240 --> 00:48:31,560 also send an answer, say, 1146 00:48:31,640 --> 00:48:33,180 sure, you can use this IP number. 1147 00:48:33,320 --> 00:48:33,500 Okay. 1148 00:48:33,520 --> 00:48:34,760 And actually, 1149 00:48:34,860 --> 00:48:36,580 you can use this WaveStack server 1150 00:48:36,580 --> 00:48:37,500 to do operative encryption. 1151 00:48:39,400 --> 00:48:41,540 And my client, my laptop, 1152 00:48:41,580 --> 00:48:43,620 will receive both of these DHCP answers. 1153 00:48:43,900 --> 00:48:46,280 I will prefer the operative encryption one. 1154 00:48:48,260 --> 00:48:50,760 It will get the key from the DHCP server 1155 00:48:50,760 --> 00:48:51,940 from the answer as well 1156 00:48:52,380 --> 00:48:54,900 and has both keys to start initiate a connection 1157 00:48:54,900 --> 00:48:56,840 to the WaveStack server. 1158 00:48:57,100 --> 00:48:58,660 Once it initiates the connection, 1159 00:48:58,840 --> 00:49:00,800 the WaveStack server, which, 1160 00:49:01,400 --> 00:49:03,100 when it gave the IP number 1161 00:49:03,100 --> 00:49:03,780 to the laptop, 1162 00:49:03,920 --> 00:49:06,440 actually also put the key it got into the reverse. 1163 00:49:07,020 --> 00:49:09,060 So it actually knows the key as well. 1164 00:49:09,520 --> 00:49:12,160 So it knows its own key and the laptop's key. 1165 00:49:12,480 --> 00:49:15,040 So both parties know both keys, 1166 00:49:15,080 --> 00:49:16,220 and they set up an IPsec tunnel, 1167 00:49:16,420 --> 00:49:18,560 and my laptop will tunnel the default route 1168 00:49:18,560 --> 00:49:19,400 through the tunnel, 1169 00:49:20,040 --> 00:49:22,280 which means that even if I'm talking from my laptop 1170 00:49:22,280 --> 00:49:24,500 to another laptop within the same wireless network, 1171 00:49:25,040 --> 00:49:26,820 I'm actually talking through tunnels. 1172 00:49:29,520 --> 00:49:32,080 There were some people who did a man-in-the-middle attack 1173 00:49:32,080 --> 00:49:33,540 on the DHCP part. 1174 00:49:33,980 --> 00:49:35,360 If they're somewhere here, 1175 00:49:35,500 --> 00:49:36,760 I would definitely like to talk to them. 1176 00:49:39,540 --> 00:49:41,460 Because I just heard about this, 1177 00:49:41,460 --> 00:49:42,520 like, a couple of months ago, 1178 00:49:42,620 --> 00:49:43,800 about the utility AirCheck, 1179 00:49:43,900 --> 00:49:45,640 which actually plays, I think, 1180 00:49:45,640 --> 00:49:47,000 a man-in-the-middle DHCP server. 1181 00:49:47,640 --> 00:49:48,800 So it's really interesting 1182 00:49:48,800 --> 00:49:50,500 to have those people talk to me. 1183 00:49:51,880 --> 00:49:54,320 And to answer those people's problems with it, 1184 00:49:54,420 --> 00:49:56,600 how do we defend against this? 1185 00:49:57,020 --> 00:49:58,260 Well, the good news is that 1186 00:49:58,260 --> 00:50:01,040 the DHC working group at the IETF 1187 00:50:01,040 --> 00:50:04,060 decided to use DNSSEC to secure the DHCP. 1188 00:50:04,700 --> 00:50:08,300 So once those standards start getting used, 1189 00:50:08,560 --> 00:50:11,260 we actually have a sort of trusted way to do DHCP, 1190 00:50:11,560 --> 00:50:13,300 and this man-in-the-middle attack is no longer possible. 1191 00:50:14,120 --> 00:50:15,160 For now, it is. 1192 00:50:15,300 --> 00:50:17,120 So if these people are here, 1193 00:50:17,180 --> 00:50:19,220 I would really like to see my laptop 1194 00:50:19,220 --> 00:50:20,180 being a victim of this. 1195 00:50:24,060 --> 00:50:28,520 So most people at home have, like, one IP number, 1196 00:50:29,220 --> 00:50:31,020 and they often ask, 1197 00:50:31,040 --> 00:50:32,640 like, can we use opportunistic encryption? 1198 00:50:32,780 --> 00:50:33,380 It doesn't work. 1199 00:50:34,540 --> 00:50:35,820 Actually, it does work, 1200 00:50:35,840 --> 00:50:37,160 but you have to be very careful 1201 00:50:37,160 --> 00:50:37,980 in how you set it up. 1202 00:50:38,180 --> 00:50:41,140 Most people do NATing on the external interface 1203 00:50:41,140 --> 00:50:42,300 because it's easier to configure 1204 00:50:42,300 --> 00:50:43,560 just anything that goes external 1205 00:50:43,560 --> 00:50:44,700 NATed to this IP number. 1206 00:50:45,240 --> 00:50:46,800 However, if you're doing IPSec, 1207 00:50:46,880 --> 00:50:48,660 IPSec is meant to protect packets 1208 00:50:48,660 --> 00:50:49,600 from being rewritten. 1209 00:50:50,140 --> 00:50:52,380 So actually, you cannot rewrite those packets. 1210 00:50:52,740 --> 00:50:53,860 So you have to be sure 1211 00:50:53,860 --> 00:50:55,480 that you're using NAT 1212 00:50:55,480 --> 00:50:57,260 on the internal interface at home 1213 00:50:57,260 --> 00:50:59,380 so that you first rewrite your packets 1214 00:50:59,380 --> 00:51:00,820 to your external IP number, 1215 00:51:01,040 --> 00:51:04,160 then use IPSec to continue to talk to the world. 1216 00:51:04,820 --> 00:51:07,520 And probably you won't control your reverse 1217 00:51:07,520 --> 00:51:09,920 of your ADSL or cable modem provider either, 1218 00:51:10,100 --> 00:51:12,780 so you have to use the initiate-only version 1219 00:51:12,780 --> 00:51:14,040 of opportunistic encryption. 1220 00:51:18,400 --> 00:51:20,000 The IPSec world, 1221 00:51:20,080 --> 00:51:21,380 at least in the Linux world, 1222 00:51:21,480 --> 00:51:22,940 IPSec has been rather... 1223 00:51:22,940 --> 00:51:25,460 We've had a rather interesting two months. 1224 00:51:29,200 --> 00:51:31,000 To make the political issue 1225 00:51:31,040 --> 00:51:31,860 really short, 1226 00:51:31,980 --> 00:51:33,260 the people who wrote FreezeHunt 1227 00:51:33,600 --> 00:51:35,040 believed that a decrease 1228 00:51:35,880 --> 00:51:37,100 from their government 1229 00:51:37,100 --> 00:51:38,480 that do not go through 1230 00:51:38,480 --> 00:51:39,240 the parliamentary process 1231 00:51:39,720 --> 00:51:41,060 was a problem. 1232 00:51:41,640 --> 00:51:42,760 Basically, US government 1233 00:51:42,760 --> 00:51:45,280 can kill export of crypto at any time. 1234 00:51:45,440 --> 00:51:46,740 Therefore, they did not want 1235 00:51:46,740 --> 00:51:48,200 US citizens to write the code 1236 00:51:48,200 --> 00:51:49,240 so that the US government 1237 00:51:49,620 --> 00:51:50,400 could never claim 1238 00:51:50,400 --> 00:51:52,560 any full control over it. 1239 00:51:53,120 --> 00:51:54,300 They read that people, 1240 00:51:54,420 --> 00:51:55,800 being mostly US citizens, 1241 00:51:55,960 --> 00:51:56,660 didn't like that. 1242 00:51:56,740 --> 00:51:58,580 They wanted to fix bugs if they could, 1243 00:51:58,680 --> 00:52:00,000 so they didn't include FreezeHunt. 1244 00:52:00,000 --> 00:52:01,840 So there was this stalemate 1245 00:52:01,840 --> 00:52:03,060 that happened for a couple of years, 1246 00:52:03,220 --> 00:52:05,060 which is now basically being broken 1247 00:52:05,060 --> 00:52:07,040 by the Red Hat kernel people 1248 00:52:07,040 --> 00:52:10,660 by basically making their own IPSec stack. 1249 00:52:13,180 --> 00:52:14,600 We're talking to them. 1250 00:52:14,680 --> 00:52:16,820 We're hoping that we can keep everything working. 1251 00:52:17,140 --> 00:52:18,420 There are patches out there 1252 00:52:18,420 --> 00:52:20,800 which should integrate really quickly 1253 00:52:20,800 --> 00:52:21,860 in the next couple of weeks 1254 00:52:21,860 --> 00:52:25,080 that makes all the extra opportunistic encryption hooks 1255 00:52:25,080 --> 00:52:27,180 that FreezeHunt put in the standard IPSec 1256 00:52:27,180 --> 00:52:29,980 to also be part of the new Linux kernel. 1257 00:52:30,000 --> 00:52:31,120 IPsec stack. 1258 00:52:31,420 --> 00:52:32,980 So everything I'm saying here 1259 00:52:32,980 --> 00:52:35,060 should work for either stack, 1260 00:52:35,300 --> 00:52:36,180 whether you use FreezeHunt 1261 00:52:36,180 --> 00:52:39,380 or whether you use the new kernel stuff. 1262 00:52:39,480 --> 00:52:40,240 It should just work. 1263 00:52:40,680 --> 00:52:42,200 And hopefully it also makes 1264 00:52:42,200 --> 00:52:43,900 porting it to BSD a lot easier. 1265 00:52:46,980 --> 00:52:49,000 So what do you need to support 1266 00:52:49,000 --> 00:52:52,340 the extra opportunistic encryption extensions? 1267 00:52:52,900 --> 00:52:54,540 First of all, the kernel part, 1268 00:52:54,760 --> 00:52:55,740 which I just talked about. 1269 00:52:55,980 --> 00:52:57,880 Second, you also need to have some support 1270 00:52:57,880 --> 00:52:59,040 to do the DNS lookups 1271 00:52:59,040 --> 00:53:00,080 once you get packets 1272 00:53:00,080 --> 00:53:02,040 to see if you can actually get the keys from DNS 1273 00:53:02,040 --> 00:53:03,820 and start things from there. 1274 00:53:04,140 --> 00:53:07,020 So far, the only iDemon that's supported 1275 00:53:07,020 --> 00:53:08,260 is the FreezeHunt Pluto. 1276 00:53:10,460 --> 00:53:12,480 Hopefully this will also soon change 1277 00:53:12,480 --> 00:53:15,620 and then some support for Raccoon will be added. 1278 00:53:17,820 --> 00:53:21,260 You need to have at least access to one forward zone 1279 00:53:21,260 --> 00:53:22,220 to put in your keys 1280 00:53:22,220 --> 00:53:24,800 so that you can do initiate-only opportunistic encryption. 1281 00:53:25,440 --> 00:53:28,680 Preferably not some dynamic DNS thing, 1282 00:53:28,740 --> 00:53:29,020 but... 1283 00:53:29,040 --> 00:53:30,280 like your real own zone, 1284 00:53:30,480 --> 00:53:32,040 which would be a lot better to use. 1285 00:53:32,300 --> 00:53:34,440 Most people who want to experiment with this 1286 00:53:34,440 --> 00:53:36,020 actually have one zone, 1287 00:53:36,140 --> 00:53:37,100 so that should be fine. 1288 00:53:39,540 --> 00:53:42,740 And if your ISP is going to filter out a lot of stuff, 1289 00:53:42,800 --> 00:53:44,240 then you're in trouble. 1290 00:53:45,200 --> 00:53:47,360 You should have iC ports open, 1291 00:53:47,580 --> 00:53:50,080 UDP 500 mostly, and ESP. 1292 00:53:54,620 --> 00:53:57,200 So how does the opportunistic encryption work 1293 00:53:57,200 --> 00:53:58,240 technically on Linux? 1294 00:54:00,660 --> 00:54:03,940 Basically, all of this predates netfilter 1295 00:54:03,940 --> 00:54:04,920 and the two four kernels. 1296 00:54:04,980 --> 00:54:07,260 This was written for the two zero kernels, 1297 00:54:07,340 --> 00:54:10,280 so there's no nice netfilter hook-in. 1298 00:54:11,520 --> 00:54:12,980 Basically, what happens is 1299 00:54:12,980 --> 00:54:15,880 we wanted to catch all the packets before they go out 1300 00:54:15,880 --> 00:54:17,360 so that we can do crypto on them 1301 00:54:17,360 --> 00:54:18,920 and see if we can actually set up a tunnel 1302 00:54:18,920 --> 00:54:19,780 to the remote end. 1303 00:54:20,240 --> 00:54:21,580 So we need to catch all packets. 1304 00:54:21,780 --> 00:54:22,840 If we can't get a tunnel, 1305 00:54:23,000 --> 00:54:24,040 we just pass them through. 1306 00:54:24,220 --> 00:54:26,120 And if we do get a tunnel, 1307 00:54:26,240 --> 00:54:27,260 we just first set up the tunnel 1308 00:54:27,260 --> 00:54:28,420 and then fling them through the tunnel. 1309 00:54:29,560 --> 00:54:30,920 So how do you catch all packets? 1310 00:54:32,400 --> 00:54:33,600 Well, the first one, 1311 00:54:33,660 --> 00:54:35,020 people came up with a really clever idea. 1312 00:54:35,080 --> 00:54:36,440 Just grab the default route, 1313 00:54:36,580 --> 00:54:37,940 cut it into smaller parts 1314 00:54:37,940 --> 00:54:39,940 so that their preference is higher, 1315 00:54:40,780 --> 00:54:42,200 and grab all the packets. 1316 00:54:42,460 --> 00:54:44,220 It's the two green lines you can see 1317 00:54:44,220 --> 00:54:46,640 in the route command that says, 1318 00:54:46,840 --> 00:54:49,200 you know, the first half of the entire ISP space, 1319 00:54:49,820 --> 00:54:51,180 fling it into the IP sacrifice, 1320 00:54:51,480 --> 00:54:53,300 and the second half of the entire IP space, 1321 00:54:53,400 --> 00:54:54,480 fling it into the IP sacrifice. 1322 00:54:54,900 --> 00:54:56,340 So basically, you've replaced 1323 00:54:56,340 --> 00:54:57,260 your default route 1324 00:54:57,260 --> 00:54:59,460 with a more specific default route. 1325 00:55:01,680 --> 00:55:03,340 For people who don't use the IP command, 1326 00:55:03,480 --> 00:55:04,820 this is the old route syntax. 1327 00:55:09,040 --> 00:55:11,280 So then, of course, we need to sort of know 1328 00:55:11,280 --> 00:55:12,580 what's encrypted, what's not, 1329 00:55:12,620 --> 00:55:13,300 what's the problem. 1330 00:55:13,940 --> 00:55:15,580 Do we have a tunnel to the other end? 1331 00:55:17,080 --> 00:55:18,680 I've tried to put all the states 1332 00:55:18,680 --> 00:55:20,020 in one picture here. 1333 00:55:21,220 --> 00:55:24,040 First, you'll see that my desktop 1334 00:55:24,040 --> 00:55:26,320 is running OE on the first line, 1335 00:55:26,340 --> 00:55:28,780 it says trap all packets going from this IP number 1336 00:55:28,780 --> 00:55:31,320 to anywhere, which means trap the packets, 1337 00:55:31,400 --> 00:55:32,280 see what we can do with it. 1338 00:55:33,340 --> 00:55:36,560 The second line, you see a pass e-route. 1339 00:55:36,700 --> 00:55:38,260 This is what we call an e-route, 1340 00:55:38,340 --> 00:55:39,200 an encryption route. 1341 00:55:39,480 --> 00:55:42,140 So a pass here, a trap means do something with it. 1342 00:55:42,260 --> 00:55:45,020 A pass means we cannot do crypto with it, 1343 00:55:45,040 --> 00:55:45,900 just let the packet flow. 1344 00:55:47,400 --> 00:55:49,460 The tunnel actually means we've set up a tunnel, 1345 00:55:49,900 --> 00:55:51,840 and the IP listed on the right side 1346 00:55:51,840 --> 00:55:52,620 is actually the gateway. 1347 00:55:53,360 --> 00:55:55,800 Remember, if you do OE, you can also do OE 1348 00:55:55,800 --> 00:55:58,400 to another server, so if you want to protect 1349 00:55:58,400 --> 00:56:01,420 like a Windows farm with a Linux box, 1350 00:56:01,580 --> 00:56:04,480 then basically my laptop would set up an OE connection 1351 00:56:04,480 --> 00:56:07,740 to the OE gateway, to the Linux machine there, 1352 00:56:07,840 --> 00:56:09,680 and then it would decrypt and be sent 1353 00:56:09,680 --> 00:56:10,520 to the Windows farm. 1354 00:56:11,800 --> 00:56:14,620 So on the third line, you can actually see 1355 00:56:14,620 --> 00:56:18,920 that .77 is the security gateway for .10, 1356 00:56:19,600 --> 00:56:22,180 and my laptop has a connection to it. 1357 00:56:22,260 --> 00:56:25,320 So packets from .17 to .77 are encrypted, 1358 00:56:25,880 --> 00:56:28,700 they're decrypted by .77 and sent to .10. 1359 00:56:30,500 --> 00:56:31,840 We see another pass route, 1360 00:56:32,000 --> 00:56:34,180 which is to my name server, .2, 1361 00:56:36,180 --> 00:56:38,700 and we see the next one is a hold route. 1362 00:56:38,880 --> 00:56:39,880 This is an interesting one. 1363 00:56:40,160 --> 00:56:43,140 Hold basically means we determined we can do crypto. 1364 00:56:43,180 --> 00:56:44,960 We should have an IPsec tunnel up, 1365 00:56:44,980 --> 00:56:46,340 but for some reason it's not working. 1366 00:56:46,780 --> 00:56:49,120 So we don't want to fall back into the clear, 1367 00:56:49,200 --> 00:56:50,620 because this guy obviously advertised 1368 00:56:50,620 --> 00:56:51,620 that he can do crypto. 1369 00:56:52,640 --> 00:56:53,920 So something's really wrong, 1370 00:56:54,080 --> 00:56:55,420 and we just don't want to send packets. 1371 00:56:55,800 --> 00:56:56,800 So hold the packet, 1372 00:56:56,960 --> 00:56:58,620 and until the situation gets fixed, 1373 00:56:58,740 --> 00:57:00,520 do not send anything in the clear to this guy. 1374 00:57:02,220 --> 00:57:04,140 And the other two are just more examples 1375 00:57:04,140 --> 00:57:05,560 of established tunnels. 1376 00:57:10,560 --> 00:57:13,440 So to refine this a little bit better, 1377 00:57:13,760 --> 00:57:15,580 Fritz von, starting from version 2, 1378 00:57:15,720 --> 00:57:17,720 supports something called the policy groups. 1379 00:57:18,020 --> 00:57:20,060 It makes things a little bit easier to say, 1380 00:57:20,140 --> 00:57:22,220 you know, okay, this guy's been misconfigured 1381 00:57:22,220 --> 00:57:22,840 for so long. 1382 00:57:22,980 --> 00:57:24,620 I know he advertises he can do crypto, 1383 00:57:24,700 --> 00:57:25,460 but he really doesn't. 1384 00:57:25,800 --> 00:57:26,480 So you can just send it in the clear, 1385 00:57:26,640 --> 00:57:28,740 and you can just put him in the clear file, 1386 00:57:29,500 --> 00:57:31,680 and it will just always work, 1387 00:57:31,840 --> 00:57:32,600 always send it clear. 1388 00:57:32,700 --> 00:57:33,740 Or you can do it the other way around, 1389 00:57:33,760 --> 00:57:35,780 to say, no matter what's being advertised, 1390 00:57:36,160 --> 00:57:37,700 you know, my own super secure network 1391 00:57:37,700 --> 00:57:38,920 should always be encrypted, 1392 00:57:39,060 --> 00:57:41,340 and if not, just completely block it. 1393 00:57:42,760 --> 00:57:44,760 Or, which should be your default, 1394 00:57:44,880 --> 00:57:46,340 is try to be private, 1395 00:57:46,600 --> 00:57:48,640 but if it fails, it's okay to do it in the clear. 1396 00:57:52,900 --> 00:57:55,360 So how to install Fritz von? 1397 00:57:57,520 --> 00:58:00,660 Most distributions actually already have Fritz von support. 1398 00:58:00,920 --> 00:58:02,960 Debian, SUSE, Mandrake, Connectiva, 1399 00:58:03,120 --> 00:58:05,920 they all have binary RPMs you can just install. 1400 00:58:06,880 --> 00:58:08,380 Because of the political issues, 1401 00:58:08,580 --> 00:58:11,140 Red Hat doesn't have binaries yet. 1402 00:58:11,740 --> 00:58:15,540 We just make binaries for all the RPMs 1403 00:58:15,540 --> 00:58:16,120 that Red Hat ships, 1404 00:58:16,180 --> 00:58:18,520 so if you want to just install binaries, 1405 00:58:18,520 --> 00:58:20,200 you can just go to the URL mentioned there 1406 00:58:20,200 --> 00:58:21,940 and install it on your Red Hat machine. 1407 00:58:23,500 --> 00:58:25,000 Every time Red Hat comes up 1408 00:58:25,000 --> 00:58:25,600 with a new kernel, 1409 00:58:25,680 --> 00:58:27,340 we make matching modules for this. 1410 00:58:27,780 --> 00:58:29,620 Or you can install it yourself from source. 1411 00:58:35,520 --> 00:58:37,920 So if you really want to install it from source, 1412 00:58:38,380 --> 00:58:39,640 just grab the software, 1413 00:58:40,000 --> 00:58:43,160 make sure you have the Gnu mathematician library, 1414 00:58:43,300 --> 00:58:44,280 install GMP Devil, 1415 00:58:44,520 --> 00:58:45,240 you need the header files. 1416 00:58:47,900 --> 00:58:49,540 Make sure that you build the kernel. 1417 00:58:49,760 --> 00:58:52,080 Most people come to us when they can't build it 1418 00:58:52,080 --> 00:58:52,980 and they have other problems, 1419 00:58:53,080 --> 00:58:54,940 because they're using a Red Hat kernel 1420 00:58:55,000 --> 00:58:55,880 or they're using another kernel, 1421 00:58:55,980 --> 00:58:56,860 something doesn't work, 1422 00:58:56,940 --> 00:58:59,060 or actually the kernel just doesn't build itself. 1423 00:58:59,920 --> 00:59:01,500 First build a standard kernel, 1424 00:59:01,740 --> 00:59:03,440 then apply the freeze-form patches. 1425 00:59:04,660 --> 00:59:06,160 There are various ways of doing it. 1426 00:59:06,200 --> 00:59:06,980 If you just want modules, 1427 00:59:07,020 --> 00:59:08,180 you can do make-old-go, 1428 00:59:08,920 --> 00:59:11,340 which will just use the same defaults 1429 00:59:11,340 --> 00:59:13,360 you just used on your previous build on a kernel, 1430 00:59:13,460 --> 00:59:14,920 just add the IPsec stuff with modules. 1431 00:59:17,000 --> 00:59:18,960 For some people who run in next to OE, 1432 00:59:19,080 --> 00:59:20,860 do other things like net traversal, 1433 00:59:20,920 --> 00:59:23,500 even though net traversal with OE doesn't work yet. 1434 00:59:23,500 --> 00:59:26,640 If you need net T support, 1435 00:59:26,820 --> 00:59:27,520 net traversal support, 1436 00:59:27,880 --> 00:59:29,260 you also have to, 1437 00:59:30,040 --> 00:59:30,780 there's a patch, 1438 00:59:30,960 --> 00:59:32,420 the ESPN UDP patch, 1439 00:59:32,520 --> 00:59:34,420 which actually patches the kernel itself, 1440 00:59:34,640 --> 00:59:35,420 not any modules. 1441 00:59:35,740 --> 00:59:37,820 So you actually have to build the entire kernel, 1442 00:59:37,940 --> 00:59:38,760 not just the modules. 1443 00:59:39,300 --> 00:59:40,940 But for just OE, 1444 00:59:41,060 --> 00:59:41,820 this is not necessary. 1445 00:59:45,980 --> 00:59:47,440 So for 2.5, 1446 00:59:47,740 --> 00:59:49,900 the last few weeks we've been playing with it, 1447 00:59:51,160 --> 00:59:52,800 there are definitely a lot of bugs 1448 00:59:52,800 --> 00:59:53,480 that need to be fixed. 1449 00:59:53,500 --> 00:59:56,000 But for the alternative IPsec stack, 1450 00:59:56,160 --> 00:59:57,640 it sort of works. 1451 00:59:59,340 --> 00:59:59,860 Basically, 1452 01:00:00,040 --> 01:00:01,500 make sure you get the latest patches 1453 01:00:01,500 --> 01:00:04,420 and just build the user language make programs 1454 01:00:04,420 --> 01:00:05,740 and don't build any kernel stuff. 1455 01:00:09,380 --> 01:00:11,400 So once you've installed it, 1456 01:00:11,980 --> 01:00:13,960 if you haven't installed it by RPM, 1457 01:00:14,160 --> 01:00:16,220 which will do most of these things for you, 1458 01:00:16,340 --> 01:00:19,000 you will need to create the DNS records needed 1459 01:00:19,000 --> 01:00:20,500 for the opertance encryption. 1460 01:00:22,060 --> 01:00:24,080 First you generate your secret 1461 01:00:24,080 --> 01:00:26,220 and your host key 1462 01:00:26,700 --> 01:00:28,160 with the command listed there. 1463 01:00:28,820 --> 01:00:30,020 Then to make it easy, 1464 01:00:30,140 --> 01:00:33,580 if you just use the IPsec show host key 1465 01:00:33,580 --> 01:00:35,760 minus minus txt and then the IP number, 1466 01:00:35,840 --> 01:00:36,800 that's your security gateway, 1467 01:00:37,600 --> 01:00:40,980 you get the entire DNS record 1468 01:00:40,980 --> 01:00:41,900 that you need to give 1469 01:00:41,900 --> 01:00:43,780 to whoever's maintainer of the key 1470 01:00:43,780 --> 01:00:45,860 or the reverse or the forward zone. 1471 01:00:46,420 --> 01:00:47,700 So we make it really easy 1472 01:00:47,700 --> 01:00:48,960 to just cut and paste your key. 1473 01:00:49,120 --> 01:00:50,420 Do cut and paste it, 1474 01:00:50,420 --> 01:00:51,140 but do not edit it, 1475 01:00:51,160 --> 01:00:53,380 because many people make mistakes when editing it. 1476 01:00:54,200 --> 01:00:56,760 There's some issues with spaces and bind 1477 01:00:56,760 --> 01:00:57,660 that are really annoying. 1478 01:00:59,780 --> 01:01:02,440 For people who directly want to pass through the ISP, 1479 01:01:02,520 --> 01:01:04,260 you can use the IPsec mail key command. 1480 01:01:04,360 --> 01:01:06,280 You can just directly send it to your ISP 1481 01:01:06,280 --> 01:01:07,260 and say, give me this record. 1482 01:01:12,080 --> 01:01:13,940 Though for Freesound 2, 1483 01:01:14,000 --> 01:01:15,700 we've made it even easier to use OE. 1484 01:01:15,820 --> 01:01:17,720 Freesound 1.9 is what's shipped 1485 01:01:17,720 --> 01:01:18,980 on most of the distributions. 1486 01:01:18,980 --> 01:01:20,580 So I just put this in here. 1487 01:01:20,960 --> 01:01:23,040 This is the only configuration you need 1488 01:01:23,040 --> 01:01:25,720 to actually get an opportunistic encryption tunnel 1489 01:01:25,720 --> 01:01:28,560 set up once you've installed the binaries. 1490 01:01:28,920 --> 01:01:31,000 You make a connection called me to anyone. 1491 01:01:31,780 --> 01:01:32,860 You basically say, 1492 01:01:33,540 --> 01:01:34,820 my outside world, 1493 01:01:35,160 --> 01:01:37,440 you use the interface of my outside world 1494 01:01:37,440 --> 01:01:38,920 as the interface to do crypto on 1495 01:01:38,920 --> 01:01:40,160 with the left as default route. 1496 01:01:40,720 --> 01:01:41,880 For the right, we say, 1497 01:01:41,980 --> 01:01:42,880 do opportunistic encryption. 1498 01:01:44,120 --> 01:01:46,600 Do authentication by RSA SIG 1499 01:01:46,600 --> 01:01:48,960 and just start this crypto. 1500 01:01:50,700 --> 01:01:53,620 This will use the OE based on the IP number, 1501 01:01:53,720 --> 01:01:54,740 so on the data in your reverse, 1502 01:01:54,860 --> 01:01:56,500 so that if the other side queries 1503 01:01:56,500 --> 01:01:58,240 the text record for your reverse, 1504 01:01:58,280 --> 01:01:58,740 it will work. 1505 01:01:59,140 --> 01:02:00,900 If you're doing the initiate only one 1506 01:02:00,900 --> 01:02:02,660 where you actually have your key in a forward, 1507 01:02:02,740 --> 01:02:03,320 not the reverse, 1508 01:02:03,640 --> 01:02:05,800 you need to specify the left ID. 1509 01:02:06,720 --> 01:02:08,660 And then you need to specify to add 1510 01:02:08,660 --> 01:02:10,400 and then fully qualify domain name 1511 01:02:10,400 --> 01:02:11,720 where the record can be found. 1512 01:02:13,880 --> 01:02:16,580 The left ID then gets used in the IEC negotiation. 1513 01:02:19,320 --> 01:02:20,300 For freeze run two, 1514 01:02:20,480 --> 01:02:22,540 we basically configured everything for you. 1515 01:02:22,980 --> 01:02:23,640 It's basically, 1516 01:02:23,780 --> 01:02:25,860 we just try every few seconds 1517 01:02:25,860 --> 01:02:28,820 to see if there's the proper DNS records for us to use. 1518 01:02:29,120 --> 01:02:29,880 And if it is, 1519 01:02:29,900 --> 01:02:31,720 we just use it and we just try to do OE. 1520 01:02:33,280 --> 01:02:35,280 So the only thing you basically need to do is install it. 1521 01:02:36,320 --> 01:02:40,180 Nail the key to whoever can put it in the DNS zone file. 1522 01:02:40,660 --> 01:02:41,440 And that's it. 1523 01:02:41,500 --> 01:02:42,200 You're all set to go. 1524 01:02:42,300 --> 01:02:43,080 There's nothing you need to do. 1525 01:02:43,580 --> 01:02:45,160 If for some reason you want to disable it, 1526 01:02:45,280 --> 01:02:47,260 you can do auto as ignore to 1527 01:02:47,260 --> 01:02:49,580 to stop that connection. 1528 01:02:52,180 --> 01:02:54,020 If you use the initiate only version, 1529 01:02:54,280 --> 01:02:56,640 unfortunately you need to redefine the connection yourself 1530 01:02:56,640 --> 01:02:58,320 and add the left ID bit again. 1531 01:03:02,320 --> 01:03:03,320 So now to the, 1532 01:03:03,400 --> 01:03:04,540 what I think interesting bit, 1533 01:03:04,800 --> 01:03:05,620 the WaveSec. 1534 01:03:05,820 --> 01:03:06,660 Now if you want to deploy, 1535 01:03:06,800 --> 01:03:07,880 if you want to use WaveSec here 1536 01:03:07,880 --> 01:03:09,000 and encrypt your local traffic, 1537 01:03:09,140 --> 01:03:09,960 what do you need to do? 1538 01:03:11,580 --> 01:03:15,380 First, you need to get a patched version of the DHCP. 1539 01:03:15,580 --> 01:03:15,940 Unfortunately, 1540 01:03:16,080 --> 01:03:16,920 the IEC, 1541 01:03:17,260 --> 01:03:18,360 the DHCP developer, 1542 01:03:18,600 --> 01:03:18,800 Ted, 1543 01:03:19,020 --> 01:03:20,080 has been very busy 1544 01:03:20,080 --> 01:03:21,500 and is not really maintaining it. 1545 01:03:21,600 --> 01:03:24,160 He has these two patches from us waiting for half a year 1546 01:03:24,160 --> 01:03:25,020 and he still has to apply them. 1547 01:03:25,520 --> 01:03:26,340 Grab the patch, 1548 01:03:26,380 --> 01:03:30,200 recompile your DHCP server and client. 1549 01:03:32,240 --> 01:03:34,240 Add the configuration listed below, 1550 01:03:34,400 --> 01:03:34,900 which is just, 1551 01:03:34,960 --> 01:03:37,200 it's a file you can download from the, 1552 01:03:37,200 --> 01:03:39,260 from the WaveSec org site. 1553 01:03:39,660 --> 01:03:41,100 So don't worry about it. 1554 01:03:43,360 --> 01:03:45,040 You need to set up a DNS 1555 01:03:45,040 --> 01:03:46,260 so that the DHCP server 1556 01:03:46,260 --> 01:03:47,060 actually has permission 1557 01:03:47,260 --> 01:03:48,880 to change the DNS records 1558 01:03:48,880 --> 01:03:49,740 for the reverse 1559 01:03:49,740 --> 01:03:51,080 so that when it gets a key, 1560 01:03:51,180 --> 01:03:52,620 it also puts it in the reverse tree. 1561 01:03:54,000 --> 01:03:55,060 You need to know somewhat 1562 01:03:55,060 --> 01:03:57,160 how dynamic DNS updates works. 1563 01:03:57,920 --> 01:03:59,320 Check the URLs below 1564 01:03:59,320 --> 01:04:01,440 or grab an example configuration, 1565 01:04:01,560 --> 01:04:01,940 again, 1566 01:04:02,000 --> 01:04:02,980 from the WaveSec site. 1567 01:04:08,700 --> 01:04:09,760 Since you, 1568 01:04:09,840 --> 01:04:12,340 the WaveSec servers actually need to decrypt 1569 01:04:12,340 --> 01:04:13,560 on multiple interfaces, 1570 01:04:13,900 --> 01:04:15,800 you specify the interfaces. 1571 01:04:15,800 --> 01:04:18,180 So instead of using the percentage default route, 1572 01:04:18,240 --> 01:04:20,920 you specify whatever interfaces they're in use. 1573 01:04:23,940 --> 01:04:24,420 Unfortunately, 1574 01:04:24,540 --> 01:04:26,980 we still need to define every single connection 1575 01:04:26,980 --> 01:04:28,540 for on the WaveSec server, 1576 01:04:29,060 --> 01:04:31,200 which means that we have to pre-define 1577 01:04:31,200 --> 01:04:32,240 everybody you can connect. 1578 01:04:32,360 --> 01:04:33,680 So for a slash 24, 1579 01:04:34,180 --> 01:04:38,000 you actually have to make 250 connection definitions. 1580 01:04:39,140 --> 01:04:41,040 We're working on making this a nicer, 1581 01:04:41,220 --> 01:04:42,700 doing it in a nicer way. 1582 01:04:46,380 --> 01:04:48,700 One problem you have is jump-starting. 1583 01:04:48,720 --> 01:04:50,100 How can you do DNSSEC, 1584 01:04:50,260 --> 01:04:51,740 or how can you do lookup keys 1585 01:04:53,540 --> 01:04:55,380 when you don't have a tunnel yet, 1586 01:04:55,560 --> 01:04:57,560 or when you're negotiating the tunnel? 1587 01:04:58,000 --> 01:04:59,940 So the easiest way we've found 1588 01:04:59,940 --> 01:05:02,360 is to just let port 53, 1589 01:05:02,580 --> 01:05:03,040 the DNS, 1590 01:05:03,260 --> 01:05:04,480 and the ICMP, 1591 01:05:05,460 --> 01:05:07,300 and the Ike negotiation packages 1592 01:05:07,300 --> 01:05:09,560 flow through outside of the WaveSec tunnel. 1593 01:05:10,380 --> 01:05:12,720 These are the IP tables 1594 01:05:12,720 --> 01:05:13,860 that will actually do that. 1595 01:05:16,400 --> 01:05:16,840 Otherwise, 1596 01:05:16,940 --> 01:05:19,180 your connection attempt will be stuck 1597 01:05:19,180 --> 01:05:20,440 in another connection attempt, 1598 01:05:20,620 --> 01:05:21,880 and you won't get through. 1599 01:05:23,400 --> 01:05:25,180 So for freeze-run as a client 1600 01:05:25,180 --> 01:05:26,300 for the WaveSec machine, 1601 01:05:27,240 --> 01:05:29,820 you also have to get a patched version of DHCP. 1602 01:05:29,880 --> 01:05:31,300 If you're running Red Hat, 1603 01:05:31,340 --> 01:05:33,480 make sure to delete the older client, 1604 01:05:34,460 --> 01:05:35,760 the DHCP CD, 1605 01:05:36,020 --> 01:05:37,100 so that it's not in their way. 1606 01:05:37,240 --> 01:05:39,360 Be careful that the lease files will start differently, 1607 01:05:39,500 --> 01:05:41,240 so make sure you delete all the lease files. 1608 01:05:42,380 --> 01:05:43,880 For older versions of Red Hat, 1609 01:05:43,920 --> 01:05:45,320 you need a patch to the if-up script. 1610 01:05:45,480 --> 01:05:45,780 If not, 1611 01:05:45,800 --> 01:05:47,940 Red Hat 9 and some of the 1612 01:05:47,940 --> 01:05:50,800 before 9 actually support DHClient, 1613 01:05:50,900 --> 01:05:51,980 but just don't install it. 1614 01:05:52,100 --> 01:05:53,400 So once you've installed it, 1615 01:05:53,520 --> 01:05:55,920 you can just use the standard scripts. 1616 01:05:57,760 --> 01:06:00,020 And we need to configure the DHClient 1617 01:06:00,020 --> 01:06:01,600 to actually do all this OE stuff. 1618 01:06:01,740 --> 01:06:03,020 So once you insert your card, 1619 01:06:03,180 --> 01:06:04,320 DHClient gets started, 1620 01:06:04,360 --> 01:06:06,440 and it actually starts to set up 1621 01:06:06,440 --> 01:06:07,120 the WaveSec connection. 1622 01:06:07,560 --> 01:06:10,440 We do that by using a DHClient.com file. 1623 01:06:10,940 --> 01:06:13,080 Some of the stuff is generated for you automatically. 1624 01:06:13,160 --> 01:06:14,300 Just use the command 1625 01:06:14,300 --> 01:06:17,200 IPsecsherholski--dhclient 1626 01:06:17,200 --> 01:06:19,180 and put it into your dhclient.com file. 1627 01:06:23,820 --> 01:06:26,720 Stuff should also work for FreeBSD and Kame, 1628 01:06:26,880 --> 01:06:29,760 though it needs a lot of manual configuration still. 1629 01:06:30,080 --> 01:06:31,620 If people want to try it, 1630 01:06:31,700 --> 01:06:34,440 come talk to us for the specific details. 1631 01:06:39,380 --> 01:06:41,640 Also, of course, Microsoft Windows 1632 01:06:41,640 --> 01:06:42,740 would be really nice 1633 01:06:42,740 --> 01:06:44,420 to support as well, 1634 01:06:44,580 --> 01:06:47,340 except that they cannot grab the keys 1635 01:06:47,340 --> 01:06:48,880 from the DNS and then use that. 1636 01:06:50,080 --> 01:06:52,320 So we have to figure out something else. 1637 01:06:52,380 --> 01:06:53,580 We're thinking of doing something here 1638 01:06:53,580 --> 01:06:55,320 with X.509 certificates 1639 01:06:56,240 --> 01:06:58,420 and the X.509 patch to freeze one. 1640 01:06:59,940 --> 01:07:01,480 If we find out something, 1641 01:07:01,660 --> 01:07:03,840 then we'll put it up on the WaveSec box. 1642 01:07:04,420 --> 01:07:06,240 Again, talk to us if you want to 1643 01:07:06,740 --> 01:07:08,080 experiment with Windows. 1644 01:07:10,120 --> 01:07:11,960 We think we should have something running 1645 01:07:11,960 --> 01:07:12,760 in the next few days, 1646 01:07:12,980 --> 01:07:14,040 but we don't know for sure. 1647 01:07:16,560 --> 01:07:18,380 So how do you test your OE setup? 1648 01:07:18,580 --> 01:07:20,160 Because one of the important things, 1649 01:07:20,260 --> 01:07:21,200 if it doesn't work, 1650 01:07:21,240 --> 01:07:22,080 if you set it up wrong, 1651 01:07:22,260 --> 01:07:24,040 you will just have no connections to the world. 1652 01:07:24,400 --> 01:07:26,700 So there are many common mistakes people make. 1653 01:07:27,580 --> 01:07:29,340 We try to catch them in the command 1654 01:07:29,340 --> 01:07:30,100 IPsec verify, 1655 01:07:30,340 --> 01:07:32,760 which verifies your setup. 1656 01:07:33,760 --> 01:07:35,300 This is an example where you see 1657 01:07:35,300 --> 01:07:36,940 that the key has not been put into DNS. 1658 01:07:38,780 --> 01:07:40,480 We check for some common mistakes, 1659 01:07:40,480 --> 01:07:44,120 like is IP forwarding enabled 1660 01:07:44,120 --> 01:07:45,300 if you have two interfaces? 1661 01:07:45,780 --> 01:07:47,060 If you're using NAT 1662 01:07:47,060 --> 01:07:48,360 or masquerading on the machine, 1663 01:07:49,020 --> 01:07:51,440 are we sure that we're not destroying 1664 01:07:51,440 --> 01:07:52,400 the IPsec packets? 1665 01:07:54,400 --> 01:07:56,300 It's generally a good test run 1666 01:07:56,300 --> 01:07:57,080 to see if it works. 1667 01:08:00,280 --> 01:08:02,040 Another way of testing OE 1668 01:08:02,040 --> 01:08:03,960 is actually go connect to the machines 1669 01:08:03,960 --> 01:08:04,800 that support OE 1670 01:08:04,800 --> 01:08:05,900 and see what they tell you. 1671 01:08:07,320 --> 01:08:08,980 There's one machine currently 1672 01:08:08,980 --> 01:08:10,460 which is called Untouchable 1673 01:08:10,480 --> 01:08:14,200 that actually has all the DNSSEC support as well. 1674 01:08:14,600 --> 01:08:16,420 So in the example that I show here, 1675 01:08:16,880 --> 01:08:18,420 I have connected, 1676 01:08:18,640 --> 01:08:20,180 I've pinged the machine, 1677 01:08:20,820 --> 01:08:23,080 and then I tell NAT to the go for port, 1678 01:08:23,200 --> 01:08:24,940 and the go for port just gives me all the output. 1679 01:08:25,460 --> 01:08:28,580 And you can see that I actually had, 1680 01:08:28,700 --> 01:08:29,380 when I did this, 1681 01:08:29,380 --> 01:08:33,100 I had the IP number 192.139.4.6.3.8, 1682 01:08:33,140 --> 01:08:35,460 and it was actually in a properly signed, 1683 01:08:35,560 --> 01:08:37,760 DNSSEC signed zone file. 1684 01:08:38,100 --> 01:08:40,260 And so that machine knows 1685 01:08:40,480 --> 01:08:42,180 that my RSA identity 1686 01:08:42,680 --> 01:08:44,380 that was put in the key in DNS 1687 01:08:44,380 --> 01:08:46,120 actually came from a secure DNS. 1688 01:08:48,160 --> 01:08:50,500 If you just browse through Untouchable XML, 1689 01:08:50,740 --> 01:08:53,080 it actually tells you whether you came in through OE, 1690 01:08:53,320 --> 01:08:54,980 whether you're coming in plain text, 1691 01:08:55,140 --> 01:08:58,140 or whether you're coming in using OE plus DNSSEC. 1692 01:09:00,660 --> 01:09:04,120 Some other test sites that should support OE, 1693 01:09:05,620 --> 01:09:07,840 more and more sites are using it, 1694 01:09:07,900 --> 01:09:08,060 so, 1695 01:09:08,060 --> 01:09:11,500 this list will become longer. 1696 01:09:13,620 --> 01:09:16,820 So there's still some problems 1697 01:09:16,820 --> 01:09:19,320 that people run into when they use OE. 1698 01:09:19,620 --> 01:09:23,380 The first problem is that once you start OE, 1699 01:09:24,060 --> 01:09:25,320 and you want to set up a tunnel, 1700 01:09:25,720 --> 01:09:27,520 you need to do a DNS request. 1701 01:09:27,840 --> 01:09:30,460 Usually that DNS request starts the initiation 1702 01:09:30,460 --> 01:09:31,760 of yet another tunnel. 1703 01:09:32,780 --> 01:09:34,980 So for a few seconds, 1704 01:09:35,080 --> 01:09:37,820 while you're not able to actually go 1705 01:09:38,060 --> 01:09:38,920 to your DNS servers, 1706 01:09:39,760 --> 01:09:40,980 everything will fail, 1707 01:09:41,160 --> 01:09:44,440 and you need to wait for that failure to be complete, 1708 01:09:44,580 --> 01:09:47,000 and once there are pass routes to your name servers, 1709 01:09:47,280 --> 01:09:49,320 then suddenly all the other connections 1710 01:09:49,320 --> 01:09:50,400 can actually be set up, 1711 01:09:50,420 --> 01:09:51,780 because then you get DNS answers. 1712 01:09:53,620 --> 01:09:55,860 So once you start pinging, 1713 01:09:56,020 --> 01:09:57,920 don't worry when it just doesn't work immediately, 1714 01:09:58,180 --> 01:09:59,280 just check your log files 1715 01:09:59,280 --> 01:10:02,140 and see if it works after a few seconds. 1716 01:10:04,880 --> 01:10:07,660 Freeze Run still has some problems integrating properly 1717 01:10:08,060 --> 01:10:09,760 with the scripts from various distributions 1718 01:10:09,760 --> 01:10:12,340 when a card, a laptop PCMCA card, 1719 01:10:12,400 --> 01:10:13,400 is inserted and removed. 1720 01:10:14,220 --> 01:10:17,120 We're working on getting that better supported. 1721 01:10:19,720 --> 01:10:21,380 People also often make mistakes 1722 01:10:21,380 --> 01:10:23,060 in getting the keys into DNS. 1723 01:10:23,220 --> 01:10:23,740 Like I said, 1724 01:10:23,960 --> 01:10:27,720 there are some spaces in the text records 1725 01:10:27,720 --> 01:10:29,900 that work around a few bugs 1726 01:10:29,900 --> 01:10:31,260 in older versions of bind, 1727 01:10:32,440 --> 01:10:35,320 but people tend to either not grab them 1728 01:10:35,320 --> 01:10:36,280 or leave them out, 1729 01:10:36,360 --> 01:10:37,680 or misspace them. 1730 01:10:38,680 --> 01:10:40,960 So be careful when you're cut and paste. 1731 01:10:42,180 --> 01:10:43,920 Another annoying bug is that 1732 01:10:44,660 --> 01:10:46,200 apparently there's some issue. 1733 01:10:46,320 --> 01:10:48,520 If DHClient is run from the command line, 1734 01:10:48,600 --> 01:10:49,220 everything works, 1735 01:10:49,420 --> 01:10:52,520 but if it comes from a kernel-generated event, 1736 01:10:53,600 --> 01:10:55,180 like the hot-plug stuff 1737 01:10:55,180 --> 01:10:56,540 when you insert your card, 1738 01:10:57,620 --> 01:10:58,780 on some machines, 1739 01:10:59,000 --> 01:10:59,760 for instance my laptop, 1740 01:10:59,960 --> 01:11:01,960 we're getting errors on P-open and P-close, 1741 01:11:02,000 --> 01:11:04,000 which we haven't found a reason for. 1742 01:11:06,440 --> 01:11:08,040 And due to the update, 1743 01:11:08,060 --> 01:11:10,240 on the IETF use of the key record, 1744 01:11:10,480 --> 01:11:11,940 we had to change some things, 1745 01:11:12,620 --> 01:11:14,120 since we're officially not allowed 1746 01:11:14,120 --> 01:11:15,660 to use the key record for IPsec anymore. 1747 01:11:16,640 --> 01:11:19,380 So that change went into freeze on 201, 1748 01:11:20,220 --> 01:11:23,920 which means that 200 cannot talk to 201 servers. 1749 01:11:24,260 --> 01:11:26,620 So if you're running older servers in the OE, 1750 01:11:26,760 --> 01:11:28,500 make sure you at least use 201, 1751 01:11:29,120 --> 01:11:30,980 which knows how to talk to older machines. 1752 01:11:34,040 --> 01:11:35,860 And problems we've also seen 1753 01:11:35,860 --> 01:11:38,040 is people who have just too many tunnels 1754 01:11:38,060 --> 01:11:39,340 inside each other, 1755 01:11:39,500 --> 01:11:41,640 and then you get either fragmentation 1756 01:11:41,640 --> 01:11:42,740 or MTU problems. 1757 01:11:43,400 --> 01:11:44,780 If you run into that, 1758 01:11:44,920 --> 01:11:46,820 and it especially happens when you have 1759 01:11:47,600 --> 01:11:50,360 PPP over Ethernet or ADSL tunnels 1760 01:11:50,360 --> 01:11:51,340 or PPP stuff, 1761 01:11:51,620 --> 01:11:53,640 usually when your provider does really yucky things, 1762 01:11:54,900 --> 01:11:56,660 make the packets a little bit smaller, 1763 01:11:56,780 --> 01:11:57,920 usually problems go away. 1764 01:12:01,820 --> 01:12:04,120 We really do our best to generate 1765 01:12:04,120 --> 01:12:06,060 a log message that actually makes sense 1766 01:12:06,060 --> 01:12:07,920 for every single event that happens, 1767 01:12:08,060 --> 01:12:10,640 so the log files are really to the point 1768 01:12:10,640 --> 01:12:11,720 when you point out an error. 1769 01:12:12,040 --> 01:12:13,780 So really try to check 1770 01:12:13,780 --> 01:12:15,080 your log messages. 1771 01:12:16,640 --> 01:12:18,320 It's really in there what's wrong. 1772 01:12:19,200 --> 01:12:20,680 Run the IPsec verify command 1773 01:12:20,680 --> 01:12:21,340 I showed before. 1774 01:12:23,260 --> 01:12:24,640 Disable all the firewall rules 1775 01:12:24,640 --> 01:12:25,760 to make sure that your firewall 1776 01:12:25,760 --> 01:12:26,840 is not blocking packets. 1777 01:12:29,000 --> 01:12:30,800 And if that really doesn't help, 1778 01:12:30,880 --> 01:12:32,240 you can use IPing 1779 01:12:32,240 --> 01:12:34,340 to see if your ISP filters 1780 01:12:35,180 --> 01:12:36,100 QDP 500 1781 01:12:36,100 --> 01:12:37,960 to prevent you from running IPsec. 1782 01:12:38,060 --> 01:12:39,800 Make sure to stop freeze run 1783 01:12:39,800 --> 01:12:40,400 when you do that, 1784 01:12:40,500 --> 01:12:41,800 because otherwise freeze run 1785 01:12:41,800 --> 01:12:43,160 will grab the port. 1786 01:12:44,620 --> 01:12:47,260 And if all of that doesn't give you 1787 01:12:47,260 --> 01:12:47,900 the right answer, 1788 01:12:48,440 --> 01:12:49,560 there's one thing you can do, 1789 01:12:49,600 --> 01:12:50,320 which is run the command 1790 01:12:50,320 --> 01:12:51,480 IPsec barf, 1791 01:12:51,580 --> 01:12:54,740 which will basically put all the state 1792 01:12:54,740 --> 01:12:56,800 of your IPsec subsystem 1793 01:12:56,800 --> 01:12:58,560 except for your private keys 1794 01:13:00,180 --> 01:13:01,420 on your screen. 1795 01:13:01,640 --> 01:13:03,140 And if you just put that on a website 1796 01:13:03,140 --> 01:13:04,560 and ask people on a mailing list 1797 01:13:08,060 --> 01:13:09,560 and they can probably see 1798 01:13:09,560 --> 01:13:10,280 what the problem is. 1799 01:13:11,160 --> 01:13:13,040 One very important thing to do, 1800 01:13:13,100 --> 01:13:14,280 people see the clips debug 1801 01:13:14,280 --> 01:13:15,700 and the plural debug variables 1802 01:13:15,700 --> 01:13:16,780 and enable that, 1803 01:13:17,620 --> 01:13:19,160 then those people are posting 1804 01:13:19,160 --> 01:13:21,780 10 to 15 or 20 megabyte files 1805 01:13:21,780 --> 01:13:22,980 with debug information 1806 01:13:22,980 --> 01:13:25,280 that the people helping you 1807 01:13:25,280 --> 01:13:26,140 on the ISP channel 1808 01:13:26,140 --> 01:13:27,200 really do not want to read. 1809 01:13:27,680 --> 01:13:29,960 The debug functions are only for developers, 1810 01:13:30,240 --> 01:13:32,840 so please do not use them. 1811 01:13:32,960 --> 01:13:34,780 It's not going to give you more information 1812 01:13:38,440 --> 01:13:40,180 So if you want to try out 1813 01:13:40,180 --> 01:13:40,720 operative encryption, 1814 01:13:41,060 --> 01:13:42,700 if you want to try out the WaveSec, 1815 01:13:42,900 --> 01:13:45,540 grab either me or Ken Bentoft 1816 01:13:45,540 --> 01:13:46,240 here in the front. 1817 01:13:48,060 --> 01:13:49,700 We'll be gladly helping you 1818 01:13:49,700 --> 01:13:52,040 set up your IPsec tunnels 1819 01:13:52,040 --> 01:13:53,540 and secure you from all the evil 1820 01:13:53,540 --> 01:13:54,600 hackers here at the conference. 1821 01:13:55,920 --> 01:13:58,900 So I hope people will see 1822 01:13:58,900 --> 01:14:00,900 the value of end-to-end host encryption 1823 01:14:00,900 --> 01:14:02,600 and see that operative encryption 1824 01:14:02,600 --> 01:14:04,640 can really reduce the administration task 1825 01:14:04,640 --> 01:14:06,620 of setting up a massive amount of tunnels, 1826 01:14:08,060 --> 01:14:08,860 either inside your organization 1827 01:14:08,860 --> 01:14:12,040 or just out to the world 1828 01:14:12,040 --> 01:14:12,660 and to the internet. 1829 01:14:15,060 --> 01:14:16,640 We hope that BSD 1830 01:14:16,640 --> 01:14:18,540 will soon support this as well. 1831 01:14:18,700 --> 01:14:19,660 We're talking to some people 1832 01:14:19,660 --> 01:14:22,880 and so let's hope that 1833 01:14:22,880 --> 01:14:24,320 basically in the near future 1834 01:14:24,320 --> 01:14:25,540 everybody is talking encrypted 1835 01:14:25,540 --> 01:14:27,240 and we're all safe from evil hackers 1836 01:14:27,880 --> 01:14:29,140 or evil governments. 1837 01:14:29,640 --> 01:14:31,240 So are there any questions? 1838 01:14:35,860 --> 01:14:37,700 Then I guess I end early. 1839 01:14:38,060 --> 01:14:38,840 Okay, thank you very much.