Slashdot Mirror


Opportunistic Encryption of IP traffic: FreeS/WAN 2.0

Russ Nelson writes "Since 1996, John Gilmore has dreamed of an Internet where all traffic between cooperating sites is encrypted. He has supported the FreeS/WAN project which uses IPSEC to encrypt IP traffic on an opportunistic encrypting basis. The team has released Linux FreeS/WAN 2.00, their first release optimized for Opportunistic Encryption (OE). After installation, ZERO host configuration is required for OE! A Linux box running 2.00 will encrypt all IP packets to other OE capable boxes whenever possible, provided you publish a key and IPsec gateway information in DNS." Nice.

153 comments

  1. Weakest link by gsliepen · · Score: 5, Interesting

    A chain is as strong as its weakest link.
    This applies to cryptography as well.
    In the Oppertunistic Encryption scenario, DNS is probably the weakest link. Spoof KEY records and you can launch a man-in-the-middle attack.

    1. Re:Weakest link by Great_Jehovah · · Score: 5, Insightful

      True. But no one is claiming that OE is something you should depend on. It's main purpose is to make the job of snoops with no resources a lot harder.

      The real weakness in this scheme is that very few admins will go to the trouble of registering keys with DNS due to laziness or lack of perceived value.

    2. Re:Weakest link by product+byproduct · · Score: 1

      We need DNS^2: Database Never Spoofed DNS.

    3. Re:Weakest link by Klaruz · · Score: 2, Insightful

      Very few ISPs even let a user control their dns. So it's useless to 90%+ of the broadband users out there.

      Note: I haven't read the article yet, but I'm pretty sure they're talking about reverse dns. I don't see any other way to do it off the top of my head.

    4. Re:Weakest link by Klaruz · · Score: 4, Informative
      Determine the best form of opportunism your system can support.

      * For full opportunism, you'll need a static IP and and either control over your reverse DNS or an ISP that can add the required TXT + KEY Records for you.
      * If you have a dynamic IP, and/or write access to forward DNS only, you can do initiate-only opportunism
      * To protect traffic bound for real IPs behind your gateway, use this form of full opportunism.


      So you'd only be able to use initiate-only opportunism. Oh well, still sucks.

    5. Re:Weakest link by gadwale · · Score: 5, Insightful


      What you have pointed out is true. However, it does not sound like OE is ever meant to protect against main in the middle attacks. By its very definition, it simply encrypts traffic whenever possible. This has two good outcomes:

      1. More encrypted traffic in general, so when you begin encrypting your traffic it does not look suspicious to anybody who is monitoring traffic

      2. Opportunistic sniffers will not be able to read the stream of data since it is automatically encrypted without your having to configure anything

      OE is not a replacement for a VPN, nor is it meant to ensure the identity of the parties involved. If you really wanted to be sure, you would find some other medium to exchange keys initially or ensure that keys you received are signed by a CA or another verifying authority. That way, even if a third party does intercept your data, the data cannot be decrypted without the corresponding private key since you are using the authentic public key and not a spoof.

      Of course, the CA or signing third party may be compromised. In that case, there are only two solutions:
      1. Use telepathic brainwaves
      2. Use carrier pigeons, because nobody will be expecting them

      Adi Gadwale.

    6. Re:Weakest link by Anonymous Coward · · Score: 0

      Of course, the CA or signing third party may be compromised. In that case, there are only two solutions:
      1. Use telepathic brainwaves

      And when you are thinking about the porn site you just visited, you'd really better encrypt those brainwaves.

    7. Re:Weakest link by velkro · · Score: 5, Informative

      Yes, DNS is currently the weakest link.

      DNSSec will fix most of this, however that requires all of the TLD and gTLD's support it. Currently, only .nl will sign records all the way to the root zone. We need more TLD/gTLD buy-in for DNSSec to become commonplace.

      --
      ken@freeswan.ca

    8. Re:Weakest link by gadwale · · Score: 2, Funny

      D U H!

      Now they will be expecting carrier pigeons!

      Adi Gadwale.

    9. Re:Weakest link by Anonymous Coward · · Score: 0

      Carrier pigeons are security through obscurity.

    10. Re:Weakest link by Zog · · Score: 1
      < 2. Use carrier pigeons, because nobody will be expecting them


      Yeah, it's not like there's an RFC for that or anything.


      Wouldn't know majesty if it hit him in the face...

    11. Re:Weakest link by kousik · · Score: 3, Informative
      > In the Oppertunistic Encryption scenario, DNS is probably the weakest link.

      Yes. I wrote the same functionality for my employer. There are several ways to safeguard you.

      The biggest problem is not the key distribution, but if you are using pre-shared keys, then by spoofing DNS and redirecting the IKE messages to an evil host, a dictionary attack on your pre-shared keys may be launched. See a detailed analysis on the attack, and it is feasible when you can redirect traffic (IKE exchange messages) towards you by poisoning the DNS.

      If you are using RSA-SIG or RSA-ENCR, ask for certificate, and validate that their ID, their corresponding certificate field, and your idea of their ID match. That'll eliminate almost all the attacks.

      Not all. Just poisoning the DNS reply one can DoS you, he may not have any way to establish IKE with you, and get your sensitive traffic sent to him.

      Best is to have an ACL, which will authenticate phase 1 SA only if the peer's certificate contains some specific values in their CN/DN and other relevant fields.

      -K-

    12. Re:Weakest link by timeOday · · Score: 1

      I would think that "Opportunistic Encryption" is an appropriate defence against "Opportunistic Sniffing" - people who are monitoring anybody and everybody just for the heck of it. Predator comes to mind. It wouldn't be easy to man-in-the-middle that much traffic all at once, especially without being very noticeable.

    13. Re:Weakest link by The+Herbaliser · · Score: 1

      More realistically, although this is somewhat overkill, you could use quantum cryptography for 100% security.

    14. Re:Weakest link by Anonymous Coward · · Score: 0

      DNSSec requires a central signing authority. Personally, I see this as a major drawback as it creates a single point of failure. It is also possible to implement secure DNS without a central signing authority. So, why are people pushing this still(it was proposed like 10 years ago)?

    15. Re:Weakest link by Anonymous Coward · · Score: 0

      Everything you wrote is so beside the point of opportunistic encryption that it's hard to believe your comment got modded up as "informative".

    16. Re:Weakest link by rjch · · Score: 1
      Of course, the CA or signing third party may be compromised. In that case, there are only two solutions: 1. Use telepathic brainwaves 2. Use carrier pigeons, because nobody will be expecting them
      Since you've now blown carrier pidgeons as as method for exchanging keys, perhaps you should use the Spanish Inquisition.

      Nobody expects the Spanish Inquisition! Our chief weapon is surprise...surprise and fear...fear and surprise.... Our two weapons are fear and surprise...and ruthless efficiency.
    17. Re:Weakest link by Vengeful+weenie · · Score: 1
      I seems to me that while encryption is useful, it is the authentication of the remote machine that would be the greatest benefit, which is the problem w/ not having the DNS loop closed.

      I would assume that most data theft tens to happen on the machine, not across the network. So that would fall under system security.

      The next largest problem is spoofing attacks, w/ the problem of sniffing last.

      I do agree that since most of the protocols don't handle security in a very sophsticated way, that this will help strengthen overall security (telnet, pop, imap, you name it.) But since the application can't be sure that the encryption is in place, you would need to rely on an application level security scheme to be sure it's secure.

  2. slow by Anonymous Coward · · Score: 0, Offtopic

    I've heard these systems are notoriously slow to encrypt the data depending on what is being encrypted. Is this true?

    PS. Where'd the icons for the front page stories go?

    1. Re:slow by Anonymous Coward · · Score: 0

      I'd be willing to bet that icons were removed to save bandwith, but thats just a hunch.

    2. Re:slow by Anonymous Coward · · Score: 0

      lame..and sorta stupid considering they show up on the thread view, should be reversed as it makes skimming the front page faster/easier

  3. Someones not going to like this by glesga_kiss · · Score: 5, Insightful
    If this becomes popular, I can see the intelligence agencies having a fit. They might lose one of their best information feeds; the internet.

    If this sort of technology were to be rolled into the main distributions as well as Microsoft/Apple packages, the internet would then have a decent level of privacy.

    1. Re:Someones not going to like this by Anonymous Coward · · Score: 0

      Heh, I misread your last word as "piracy", then thought "doesn't it already?"..

    2. Re:Someones not going to like this by Anonymous Coward · · Score: 0

      Actually I know redhat plans on offering IPsec sometime in the future so does anyone know if this is what they will be using.

  4. Wireless applications? by i.r.id10t · · Score: 4, Interesting

    I was wondering... would this have application for wireless, either between a workgroup bridge (like the Ciso one) or a single pci/pcmcia card and an AP or mesh of APs? Seems like it could be better than WEP, especially if it was just as easy to implement on a small scale non-DNS based solution (hosts file, ssid, hard coded ip range, etc.)

    --
    Don't blame me, I voted for Kodos
    1. Re:Wireless applications? by kmcmartin · · Score: 5, Informative

      This is a very useful application of IPsec. The wavesec project is an example of using IPsec to secure the link between a client and the wireless access point.

      This was in-practice last year at OLS where the FreeS/WAN folks set up a wavesec encrypted link, while the folks that were not using wavesec had their traffic snooped and displayed on a monitor.

      The problem with using IPsec as a replacement for WEP, however, is that IPsec is higher up on the OSI layer diagram, so more information is left unencrypted than when using WEP (yes, I'm aware that WEP is weak and in this case, won't make a difference, I'm just illustrating a point.)

    2. Re:Wireless applications? by glesga_kiss · · Score: 1
      Yes, because WEP can be used to limit access to your network full stop (putting weaknesses aside). With IPsec, you need to firewall the wireness network and treat it as untrusted, because anyone can get on to it.

      Can IPsec be used with a secure key system, where clients must have a particular key file to get a secure tunnel? If you set IPsec as a requirement (and throw away all other traffic), then you could do something very similar to WEP, but at a IP level. Sure, untrusted clients will be able to associate, but they can't do anything, except perhaps flood the bandwidth with DOS garbage.

    3. Re:Wireless applications? by velkro · · Score: 2, Interesting
      Yup, it was demo'd last year at OLS, and it should be at OLS 2003 as well. (It was my laptop running driftnet showing all the wide open traffic at OLS 2002 - I plan to do the same again this year)


      --
      ken@freeswan.ca

    4. Re:Wireless applications? by salimma · · Score: 1
      The problem with using IPsec as a replacement for WEP, however, is that IPsec is higher up on the OSI layer diagram, so more information is left unencrypted than when using WEP (yes, I'm aware that WEP is weak and in this case, won't make a difference, I'm just illustrating a point.)


      Correct me if I'm wrong, but does it mean that since wavesec/IPsec uses public-key cryptography, each client cannot snoop on each other's traffic (different session keys, and different client public keys), while using WEP each client possessing the WEP password could still snoop on each other?

      Thanks,
      --
      Michel
      Fedora Project Contribut
    5. Re:Wireless applications? by kmcmartin · · Score: 1

      Correct, IPsec can also use a PSK (pre-shared key) so could also be vunerable to that kind of peer snooping. However, RSA is the "recommended" method of operation.

    6. Re:Wireless applications? by kmcmartin · · Score: 1

      The Linux Netfilter packet filter has support to filter non-AH or non-ESP packets however you'd like them to be treated. With FreeS/WAN, you can make certain IPs behind your DHCP server available for tunneling, and discard anything else, or anyone without a proper RSA key.

      You can patch FreeS/WAN to use x509 certificates if you wish.

    7. Re:Wireless applications? by salimma · · Score: 1
      However, RSA is the "recommended" method of operation


      Ah, I remember when PGPi moved to ElGamal thanks to the RSA patent. GnuPG still uses ElGamal as well, I think.

      Presumably IPsec started development after the RSA patent elapsed.

      --
      Michel
      Fedora Project Contribut
  5. Pretty cool idea by VCAGuy · · Score: 5, Interesting

    I think this idea of a "meta-SSL" is a really good one--not only can we encrypt the data stream, but also the headers. Of course, we'd still need to deal with session keys and the problem of "known response" attacks, but assuming we can fix that, this looks really promising.

    (And of course, it would be best if we could implment this on the hardware of the routers themselves, rather than rely on the OS...*cough* M$ *cough*).

    --
    Q: "Why do sound techs say 'check 1, 2'?"
    A: "Cause if they could count any higher they'd be lighting techs."
    1. Re:Pretty cool idea by Anonymous Coward · · Score: 1, Insightful
      Implementing it only on the hardware of the routers doesn't eliminate the Man in the middle attack though, it just decreases the amount of points at which you can jump in the middle at.

      Sure, if you're 15 hops away from someone and every router between you and the other persons upstream router uses OE, then you've decreased it from 14 possible infilitration points to only 2, but it doesn't eliminate it completely.

      Unless you got everyone to use these routers at home, or added it to cable/dsl modems/etc, you're still not that safe (and even then, not 100%).

  6. not really by SHEENmaster · · Score: 2, Insightful

    this uses public-key encryption, which may be an "easy" algorithm but is certainly not secure because given enough clock cycles, the public key can be used to derive the private key. I suspect the NSA has enough computing power to start packet sniffing a particular target within hours if not minutes of this going up.

    --
    You can't judge a book by the way it wears its hair.
    1. Re:not really by Troed · · Score: 1, Troll
      Don't reply to threads when you haven't got a clue on the subject.


      NSA most certainly not has processing power to even begin "sniffing" data encrypted with a knwon good 128 bit stream cipher where the key has been exchanged with 2048 bit DH.

    2. Re:not really by glesga_kiss · · Score: 3, Insightful
      I suspect the NSA has enough computing power to start packet sniffing a particular target within hours if not minutes of this going up.

      Exactly. They can still target someone who deserves it. However, they can't scan most e-mails, like they are right now.

    3. Re:not really by LightningTH · · Score: 1

      If anything, the computing power needed to obtain the private key is way too large. It would be cheaper and easier to access the machine that has the private key directly and just make a copy of it.

    4. Re:not really by arvindn · · Score: 4, Informative
      this uses public-key encryption, which may be an "easy" algorithm but is certainly not secure because given enough clock cycles, the public key can be used to derive the private key.

      Aaargh! Please go read up some crypto. There's no sense in anything you said. You are essentially saying that all crypto is pointless.

      First, public-key encryption is not an "easy algorithm" in any sense. It is much more computationally expensive than symmetric key encryption. Second, adding just a few bits of key size doubles the computational complexity of brute force key search (for public key encryption; for symmetric encryption, adding just a single bit of key length doubles the complexity.) Currently, we are just able to crack 512 bit keys, but most public key encryption today uses 1024 bit keys, so the time taken to bruteforce it would be of the order of countless bajillions of years. The only widely used encryption algo that the NSA can crack is 56bit DES, and it has already been phased out. Third, all real-world crypto needs to use a mixture of public and symmetric key encryption. The former because it is the only one that allows authentication, and the latter because it is much faster.

      I hope that cleared some things up.

    5. Re:not really by wirelessbuzzers · · Score: 1

      ... unless they know a *lot* more math than we do. Which IMHO is unlikely but certainly not impossible.

      --
      I hereby place the above post in the public domain.
    6. Re:not really by Anonymous Coward · · Score: 0
      given enough clock cycles, the public key can be used to derive the private key.

      Actually, it doesn't necessarily generate the private key, it generates a private key that is compatible.

      I suspect the NSA has enough computing power to start packet sniffing a particular target within hours if not minutes of this going up.

      Just a side note, your tinfoil hat looks a little crooked. You might want to readjust it to protect yourself from people spying on your thoughts.

    7. Re:not really by Troed · · Score: 1

      Of course it is. NSA is a company. Company leaks secrets. There's no way anyone working in the feld of Mathematics would be able to keep something that huge a secret for long.

      Innovation happens in multiple places at the same time since the underlying technology becomes available.

    8. Re:not really by wirelessbuzzers · · Score: 1

      Of course it is. NSA is a company. Company leaks secrets.

      No. The NSA is a government agency. Government agencies hold secrets better than companies. The NSA in particular has kept a whole lot of crypto secret for a very long time. So while I doubt that they could break RSA at the keylengths used today, it's not impossible.

      --
      I hereby place the above post in the public domain.
    9. Re:not really by Anonymous Coward · · Score: 0

      differential cryptanalysis 20 years

    10. Re:not really by timeOday · · Score: 1
      First, public-key encryption is not an "easy algorithm" in any sense. It is much more computationally expensive than symmetric key encryption.
      Public key encryption is "weaker" in the sense that the ratio between the time taken to decrypt with and without the key is lower. So a much longer key must be used, slowing things down. Since public-key encryption provides far less protection for a given key length, it could fairly be said to be "easier."
    11. Re:not really by Troed · · Score: 1

      That's why I wrote DH - too many mathematical advances are already known against RSA.

    12. Re:not really by Cally · · Score: 1


      > The only widely used encryption algo that the NSA can crack is 56bit DES
      ...and you know this... how, exactly?

      Apart from their obvious technological advantage over the mostly amateur or academic (==low funding) cracking projects, there's no guarantee they haven't made some astonishing mathematical breakthrough. Did you know public key crypto was invented at GCHQ (aka MI7, mostly based in Cheltenham - I lived nearby for a while) in the early 70s; the work was never published, and in fact it's significance was only realised recently. (This being in the UK, naturally the idea was never productionised... *d'oh!*)

      --
      "None are more hopelessly enslaved than those who falsely believe they are free." -- Goethe
  7. This will never work by Anonymous Coward · · Score: 4, Interesting
    Windows 2000 allows one to request IPsec security on all network traffic. All you have to do is flip a switch. I tried this when Windows2k first came out - theoretically, my machine would send a packet to your machine requesting an IPsec connection, your machine responds (either with a "what are you talking about" or "sure, let's do IPsec!") and the connection either gets secured, or dropped back to normal communications. Within a month, I got approximatly 20 calls including three notices from my ISP (UUNET) that I was engaging hacking activity! It's great that some companies actually monitor their network, check their sniffers, and pay people to review the logs, but they should know what an IPsec packet looks like, or at least understand which ports it attempts to authorize over! There was even one company who it ended up being discovered was hacking me!

    Anyway, this will never work - there's too many clueless administrators out there who will think it's just someone attacking their core routers or overloading their DNS server, or something else equally inane, and they won't bother to check what the port really is.

    1. Re:This will never work by velkro · · Score: 2, Informative

      OE uses standard DNS requests before attempting to negotiate IPSec tunnels.

      It does a TXT & KEY records, which are perfectly normal and RFC compliant DNS queries. If nothing is found, no IKE negotiation is attempted.

      --
      ken@freeswan.ca

    2. Re:This will never work by Anonymous Coward · · Score: 1, Informative

      Wrong.

      There are tens of millions of port scans every day. Hundreds of thousands of worm infected hosts doing auto-attacking and scanning the internet IP space each day.

      There is so much "bad" traffic on the Internet, nobody cares anymore.

      Other flaws in your idea:

      1. Millions of "road warriors" establish IPSec VNP tunnels back to the home office every day. This uses the same IKE traffic that FreeSWAN OE does. IKE traffic is not bad nor uncommon. I think your story is BS.

      2. FreeSWAN OE, does plain old DNS requests and only starts a IKE handshake (See 1 above) if the remote supports OE.

    3. Re:This will never work by King_TJ · · Score: 1

      That's crazy! Plenty of people establish IPSec connections all the time as part of the default configuration for remote VPN access into corporate LANs.

      Any ISP that sees IPSec traffic and thinks you're hacking is #1, spending entirely too much time snooping around what you're doing online, and #2, is clueless and not worthy of your monthly payment.

      I'd certainly not make a statement that "this will never work" based on unknowledgeable ISPs.

      If it catches on, the ISP's will quickly learn about it anyway....

    4. Re:This will never work by Anonymous Coward · · Score: 0

      I agree. After a spike of adoption, opportunistic encryption will be killed by network administrators. IPSec is generally blocked on this university network. One has to ask for permission to use it. I can only imagine one reason for this: IPSec undermines every network control mechanism. Port blocks no longer work. Transparent proxies no longer work. Network IDSs no longer work. I don't think network administrators will like this control being taken away from them. Can you think of a different reason why someone would block IPSec?

  8. Possibly not for everyone? by eddy · · Score: 2, Informative

    Problem is, the requirements include:

    "* either control over your reverse DNS (for full opportunism) or the ability to write to some forward domain (for initiator-only)
    * (for full opportunism) a static IP"

    Don't know about the US, but over here >90% of all cable/DSL is on dhcp and I'm fairly sure you don't control your reverse-DNS.

    I'm not sure of the role the static IP plays in this, but it would be nice if it could be hacked around so that dhcp-assigned IPs could be used too (scripting updates to DNS on change of IP is easy). Maybe put them (a range of IPs instead of one) in a lower security class if need be.

    --
    Belief is the currency of delusion.
  9. A good first step. by Meat+Blaster · · Score: 3, Funny
    FreeS/WAN is definitely on the cutting edge of things, and anything they can do to reduce the complexity of cryptography makes it more likely that a larger audience can realize the benefits of encryption. I applaud this for security reasons, because the less information floating around out the more secure we all are.

    However, this is not yet a complete solution for the average user. For one thing, it's Linux only, which puts it out of reach of the majority. Secondly, and this I absolutely cannot believe, they've killed off Trinity in their Matrix sequel. But most importantly, you've got to have access to DNS to make it properly work!? Why can't a new ICMP handshake be used to exchange keys between a new connection (and queue them) so that this doesn't have to rely on a third-party?

    So, while this is a good first step, I think there are greater things that will yet be accomplished.

    1. Re:A good first step. by Anonymous Coward · · Score: 0

      Funniest thing i've read all day.

  10. Possible Matrix Reloaded Spoiler! by Anonymous Coward · · Score: 0

    Mod this down!

    1. Re:Possible Matrix Reloaded Spoiler! by Anonymous Coward · · Score: 0

      The Matrix ends after episode 3, oh no, another SUPPOSED spoiler, better mod mod mod. The sky is also falling in other unrelated news.

  11. This is news? by CoolVibe · · Score: 3, Interesting
    This has been in the works (and working) for quite a while. I saw a presentation by Hugh Daniels in "De Waag" in Amsterdam a couple of years back about FreeS/WAN and opportunistic IPSEC, and he gave a working presentation with live hosts on the net that were using it back then. (Hi Hugh, I was the guy that asked all the good questions, remember me? :)

    But of course it's nice to see this getting more exposure. The problem with IPSEC has always been the hassle of setting it up. Having encryption kick in "automagically", is a good thing to have.

    1. Re:This is news? by billstewart · · Score: 1
      It's news - getting this stuff to work has taken them forever, and while some of this has been implementation slowness or tedious debugging that Hugh can rant about, doing Opportunistic Encryption properly is hard, and is harder than it looks, and they kept getting little surprises about what "properly" really did or didn't mean in practice as things that looked like good choices made other things broken. So getting from their aymptotic 1.8, 1.9, 1.9.9, 1.9.9.9, 1.9.9.9.9 to genuine 2.0 is news, because this does have useful and interesting new capabilities.

      I'd hesitate to call something "automagically" when it required convincing your ISP that you want your reverse DNS entry (which they administer) updated with your IPSEC keys, which may also require installing a different DNS server than the one they were using (or at least a much newer version), and if they're a big ISP, it probably also requires tweaking the friendly automation scripts they were using to update the reverse DNS entries, unless they were the type of clueless ISP that didn't even bother with that,or if they were clueful but lazy, your DNS entry probably said "port32.box15.paloalto.ca.example.net", especially if you've got a dynamic IP address (or dialup) instead of static.

      On the other hand, they've gotten it to the point that you don't need reverse DNSsec, just forward DNSsec, if you're only going to initiate connections and not respond to them, which is pretty common for dynamic-addressed systems. (Yes, you can use one of those dynamic-dns-updater services to work around this so you can run webservers and such, and in fact the freeswan docs point to one that's clueful about DNSsec, or plans to be really soon, but of course those can only do forward DNS and not reverse.)

      A big part of the problem is that doing IPSEC properly means there's No User Interface except at machine setup time. A router or security gateway doesn't have end-users on it, and if you want applications to work in the general case, you can't depend on there being a user running a "Fetch keys for chernenko@kremvax.su" command to set up a connection before sending packets - the operating system or router just gets handed a packet for IP address 1.2.3.4 and has to decide whether it knows how to build an encrypted tunnel there or whether it should just route it, and it needs to decide and then do it before whatever underlying application times out or gets grouchy and retransmits. Prefetching keys could make this much much cleaner, but at best you can only make that work 90% of the time for end systems, and that means that 10% of the time you get mysterious failures, most often on services that don't have user interfaces, like server-to-server mail and DNS traffic that you don't want to screw up.

      I also blame a lot of the difficulty of getting OE to work on the NSA's help with IKE/ISAKMP/OAKLEY - it's one of those Not-Malice-Just-Stupidity things. Opportunistic encryption wasn't the model of the world that the NSA or many of the other early standards developers were coming from, and many of them were more interested in kitchen-sink creeping featurism for the parts of the user space they did care about, and there was a lot of Not-Invented-Hereness around Photuris-vs-SKIP-vs-Oakley. The standard is too complex, has too many messages, and the pieces need to be done in orders that can make it difficult to implement well. Some of this wasn't realized for a while because people were focusing on the IPSEC problem - how to make things work on late-80s architectures and horsepower limits, and whether to use single-DES or triple-DES, and dealing with the NSA's/FBI's anti-crypto-export rules (ok, that part was malice, though collateral damage to IPSEC, but in fact you didn't _want_ to have to do 3DES in real-time on an 8086 or 68010 or 8051...) And businesses were focused on the VPN problem as well, because it's the part with the obvious customer base.

      --

      Bill Stewart
      New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    2. Re:This is news? by CoolVibe · · Score: 1

      This is a very insightful and informative reply. Any moderator with half a brain would mod this up immediately.

  12. KEY record debate... by pabl0 · · Score: 5, Informative
    One potential problem with this is that KEY records were originally intended for DNSsec usage and some controversy has arisen with regard to using KEY records for other purposes, such as OE. This pretty much sums it up, however, and it seems as though they've gone on using KEY for this purpose.

    (I realize the articles listed are 8-9 months old, but clearly the issue is still relevant.)

    I'm unfortunately not running OE, as my DNS provider (UltraDNS) did not provide the capability to add KEY records to a zone at the time I went through the installation process. Not sure if they do so now; perhaps time to check! I'd be interested in discovering which DNS providers do or do not provide the ability to insert KEY records into zones.

    1. Re:KEY record debate... by rise · · Score: 1

      Nope, check RFC 3445. The record sub-type is gone, the bits are reserved and FreeS/WAN is trying to use a record type that doesn't exist anymore. Once DNS servers start following the host of MUSTs in that doc their implementation of opportunistic encryption is going to break left and right (luckily it'll fail hard instead of silently becoming insecure). There are better ways to do it, but the FreeS/WAN guys don't seem to care. No amount of bitching on their part is likely to change this - 3445 has now advanced to "PROPOSED STANDARD" status...

  13. SpamStop by Bruha · · Score: 4, Interesting

    Wonder if I could just tell my email server to only accept encrypted connections from trusted sources to stop spam. This would definately work for seperate corporate mailservers that need to connect to eachother across the internet eliminating the need to maintain them on a private network.

    1. Re:SpamStop by velkro · · Score: 1

      You can do this with FreeS/WAN 2.0 - there is the concept of policy groups. ie: for this set of hosts, only accept crypto connections - if they can't encrypt traffic, I don't want to talk to them. You just stick CIDR blocks into a text file to configure this - it doesn't get much simpler than that.

      For more information, see Policy Groups documentation.

      --
      ken@freeswan.ca

    2. Re:SpamStop by Anonymous Coward · · Score: 0

      you can use your MTAs TLS functionality to do the same and TLS is supported by MTAs on many operating systems and MTAs

    3. Re:SpamStop by gadwale · · Score: 2, Interesting


      This may not stop spam, but could make email a much safer medium. Most people have no idea how insecure plaintext email is. Having encryption transparent from the user would be a significant step in the right direction. From the OE docs:


      "Only one current product we know of implements a form of opportunistic encryption. Secure sendmail will automatically encrypt server-to-server mail transfers whenever possible."


      Unfortunately the linked paper is from 1999 and there does not seem to be any updated information.

      Adi Gadwale.

    4. Re:SpamStop by ptbarnett · · Score: 2, Interesting
      you can use your MTAs TLS functionality to do the same and TLS is supported by MTAs on many operating systems and MTAs

      I have TLS enabled on my MTA (sendmail) and observe the occasional connection that uses it (aside from my own). But, I didn't know how to require encrypted connections. I poked around a bit on the 'Net and found this:

      http://www.linuxjournal.com/article.php?sid=4823

      It appears that you can use the access map to require encypted connections. Of course, the same map could be used to restrict unencrypted connections to certain servers, as well.

    5. Re:SpamStop by fyonn · · Score: 1

      I also have TLS enabled on my server but hardly anyone else does, and thats the problem. if you restrict it so that it'll only accept TLS connections then you'll suddenly have very little spam, but also very little email.

      in the last week I've had 7 remote hosts (apart from my own workstations) use TLS with my server, and 3 of those were for spam *sigh*

      it would be nice if more mailservers supported it

      dave

  14. I don't know if this is really a good idea. by autopr0n · · Score: 3, Interesting

    I mean, you install this thing, and you'll have some random connections be encrypted. But it would still be foolish to 'trust' any regular internet connections. This type of technology might give people a false sense of security.

    I realize the point is just to get more encrypted data out on the net, but this just seems pointless to me.

    --
    autopr0n is like, down and stuff.
    1. Re:I don't know if this is really a good idea. by Kaenneth · · Score: 2, Insightful

      Pointless for the individual, but great for the masses.

    2. Re:I don't know if this is really a good idea. by rusty0101 · · Score: 2, Insightful

      I understand that you send all your paper mail through the post office as post cards. Right?

      Same idea.

      -Rusty

      --
      You never know...
    3. Re:I don't know if this is really a good idea. by nagora · · Score: 1
      I understand that you send all your paper mail through the post office as post cards. Right?

      I think his point is that if you know that some of your mail is being opened then there's little point in sending anything you want kept private even in a proper envelope.

      TWW

      --
      "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
    4. Re:I don't know if this is really a good idea. by spinkham · · Score: 3, Insightful

      The perfect is the enemy of the good.
      This is MUCH better then what we have now, and if you need stronger security, you can use something else instead of/also.
      It is foolish to completely trust any internet connections. It is foolish to completely trust anything. There may be a video camera watching your typing and screen, a keyboard logger or rootkit installed on your computer, etc.
      Limited security and authentication is so far better then none at all, and you can still do more authentication manually if you want.
      The perfect is the enemy of the good.

      --
      Blessed are the pessimists, for they have made backups.
    5. Re:I don't know if this is really a good idea. by Anonymous Coward · · Score: 0

      That is perfectly safe. Like everyone else in the world, I print messages after encryption and then send them via postcard.

      Ha, the mailman thinks I send gibberish, but I have him fooled! (By the way, I have some tinfoil hats for sale.)

    6. Re:I don't know if this is really a good idea. by Anonymous Coward · · Score: 0

      If you want to, you can disable unencrypted traffic. Firewall everything but DNS, UDP port 500 and IP protocols 50 and 51. You'll be pretty lonely but secure. Opportunistic encryption with fallback enabled is a way of helping adoption.

  15. automagically by Anonymous Coward · · Score: 0

    should be banned from the (stupid techie) english language.

    1. Re:automagically by Anonymous Coward · · Score: 0

      I think not - it's an excellent term which covers many issues. Windows systems spring to mind for example...

  16. "Dice(y)" connections. by Anonymous Coward · · Score: 0

    This no more gives a false sense of security than SSL does.

  17. Re:not really-EOL encryption. by Anonymous Coward · · Score: 1, Insightful

    "The only widely used encryption algo that the NSA can crack is 56bit DES, and it has already been phased out. "

    Um...no. Straight single block 56DES has, but streaming and triple block hasn't.

  18. Dumb ISPs by Gothmolly · · Score: 4, Interesting

    Tell those ISPs to go fsck themselves.

    IPSec traffic OFTEN looks like "hack" attacks - weird, short packets, protocol 50 and (sometimes 51), streams of UDP 500, etc. Because it's all binary, its more likely to trigger the "shellcode" sort of alerts. An IDS will see the binary stream "F00F" in your payloads and assume you're doing a DoS attack or something. Trust me, I know - I helped build the first version of Guardent'sIDS solution.

    --
    I want to delete my account but Slashdot doesn't allow it.
  19. OE cannot be used by the majority... by sweet+'n+sour · · Score: 4, Informative
    Unless you've got a class C or larger ip block to yourself, you probably won't be able to use OE. Dynamic ip addressers need not apply either.

    If you've got a static ip block that is smaller than 255 addresses, most ISPs will only let you assign names/keys/other to your ip addresses through classless reverse delegation (RFC 2317 http://www.ietf.cnri.reston.va.us/rfc/rfc2317.txt) .

    The problem I ran into was that KEY requests never reached my servers (CNAME, TXT, others worked fine). This made it impossible for other OE enabled systems to communicate with me since my box seemed to be configured to talk OE, yet they could never get my key to begin negotiation.

    Another terrible side effect from this was that any OE server I DID try to communicate with would KEEP TRYING to negotiate with me forever until I could get them to shutdown their OE...

    1. Re:OE cannot be used by the majority... by velkro · · Score: 2, Informative

      You can use dynamic IP's for Initiator-Only OE, where you can initiate new OE connections to OE Enabled servers. While others can't start a new connection to you (so running a server on your dynamic IP would be a problem) you can surf OE enabled sites fine.

      Re: KEEP TRYING to negotiate with me forever - this was true in the OE defaults for 1.97 - 1.99. The old default was to rekey forever. In 2.00, rekey is set to "no", so you don't rekey once the SA has expired.

  20. Virus heaven by pseudorandom · · Score: 5, Insightful

    Has anybody thought about the fact that this removes the option of network level filtering? Think about the scenario in which a virus is created that spreads quickly via web servers (e.g. IIS). Currently, it is possible to filter out viral traffic because the routers can inspect the messages. This prevents the spread of the virus even though the hosts/severs remain vulnerable.

    Once all traffic is encrypted using OE, the routers/firewalls cannot recognise the type of traffic anymore, and virii will be able to spread to all vulnerable hosts.

    1. Re:Virus heaven by Yostage · · Score: 2, Informative

      One solution to this is that you distribute the firewall work and place a firewall on each host. Then the end host will have decrypted the traffic and can analyze the packets in cleartext.

      There's plenty of current research in this subject, look at Bellovin's paper on Distributed Firewalls as a starting point.

    2. Re:Virus heaven by mahhy · · Score: 1

      This does not have to remove ip level filtering, if we all used good network design principles. The perimeter firewall can use OE. The "DMZ" behind that firewall can see the unencrypted traffic, and this is where your webservers should be. The network devices behind the perimeter firewall can then use ip level filtering. Ideally there should be another firewall behind the perimeter firewall as well, to filter packets inbound to the internal networks. Yah, I know this is only applies to ideal setups, and not all the broadband users out there.

    3. Re:Virus heaven by Anonymous Coward · · Score: 0

      You're talking about viruses and use "OE" as an abbreviation of opportunistic encryption. What a confusing comment.

    4. Re:Virus heaven by LiteForce · · Score: 1
      Not really.

      Another host (i.e. your firewall) can perform the opportunistic encryption on behalf of hosts which are situated behind it ('protected' network).

      Like so:

      1.2.168.192.in-addr.arpa. 86400 IN PTR host-1.internal.example.com.
      1.2.168.192.in-addr.arpa. 86400 IN TXT "X-IPsec-Server(10)=1.2.3.4" " AQOyyasaWR008nNRlK9ldRo6ZsbvLXVajgHc1rjrkqIq9hu70T 8/brFphT36NAZPATajiFC7rT8c7406HCOphVHkMA79BfwPNGX5 kFDfL0kF7aD5YWlXQZdN+vX5uQVPxs7ogECKKd8ftGPNbmarzD 8T0YvnTpgh8F1R7Svot9VIjT1xLR4cD9b4Vy4h9CvgOmSMR9p6 TShKnPAfO2I6G3y3TsykeLi3feExMGs+Tsf9EkLG8schHf89Uq p0eB" "09oQCr3wDtB0Hzk3FzvKhCtuNxStzwWOrlAsHzTx5gZIM780r iEjk7S02WSS5QGl+m73fKWnvcIGUtrZkLCoGhlOxGI+bDAjJf8 x0GMUkK3Xw/nPVh"
      1.2.168.192.in-addr.arpa. 86400 IN TXT "X-IPsec-Server(20)=5.6.7.8" " AQOyyasaWR008nNRlK9ldRo6ZsbvLXVajgHc1rjrkqIq9hu70T 8/brFphT36NAZPATajiFC7rT8c7406HCOphVHkMA79BfwPNGX5 kFDfL0kF7aD5YWlXQZdN+vX5uQVPxs7ogECKKd8ftGPNbmarzD 8T0YvnTpgh8F1R7Svot9VIjT1xLR4cD9b4Vy4h9CvgOmSMR9p6 TShKnPAfO2I6G3y3TsykeLi3feExMGs+Tsf9EkLG8schHf89Uq p0eB" "09oQCr3wDtB0Hzk3FzvKhCtuNxStzwWOrlAsHzTx5gZIM780r iEjk7S02WSS5QGl+m73fKWnvcIGUtrZkLCoGhlOxGI+bDAjJf8 x0GMUkK3Xw/nPVh"

      Your internal hosts require TXT records adding to their relevant .in-addr.arpa zones which tell the remote gateway that another machine is responsible for opportunistic encryption. The remote gateway will encrypt packets to that host (i.e. 1.2.3.4), at that point, the packets will be decrypted and can be safely inspected for nasty stuff like Nimda, Code Red or the latest M$ worm currently doing the rounds on the Internet.

      You can even specify multiple IPsec gateways in case there are several entry points into a network, like the above (just like MX records) - for purposes of failover, etc, etc.

      So, what you say about removing the option of network level filtering - not strictly true. It totally depends on how you implement opportunistic encryption on your network.

      --
      "Be vewy vewy quiet, I'm hunting wuntime ewwors!" - Elmer Fudd
  21. Opportunistic encryption for email? by astrashe · · Score: 2, Interesting

    I really love the idea of opportunistic encryption, and I used to think that I'd like to see it added to email. Once people have exhcnaged mail with each other, all further traffic would be encrypted. This could be done in the clients, and wouldn't require any changes to the email infrastructure at all.

    I know that there are lots of problems with it, mostly related to key management. It wouldn't be perfect security, it might not even be good security. But it's a lot better than plaintext.

    What you'd want would be a way to take control of the keys when you thought it was necessary, an opportunistic system that would get the best key that it could find, but which would allow you to override whatever the opportunistic system would do on its own.

    The problem I have with this now is that I'm not sure I oppose government surveillance any more. It's a horrible thing to say for someone who spent the early nineties lurking on cypherpunks. I think that they've been able to clamp down on terrorism pretty effectively, and I don't see much evidence that the power has been misused.

    I'm getting old, and turning into one of those people I had contempt for -- a guy who is willing to trade freedom for security, and who deserves neither.

    But I do think that from a technlogical standpoint, opportunistic encryption is the way to go. It's a great, clean, simple idea.

    The most successful use of crypto for the general public is SSL on the web. It works because it's transparent, no one has to think about it. That's why opportunistic encryption rocks.

    Perhaps -- and this is a real stretch -- what we really want is a whole new email system, one that's designed to be robust in the face of things like spam, and that includes things like encryption, etc. Dual protocol clients could "opportunistically" move communications from the old system to the new one totally transparently. After a few years, we could all turn off the old email protocol.

    Opportunism is a great way to look at upgrading protocols.

  22. freeswan setup is just a PITA by YellowSubRoutine · · Score: 1, Informative

    Too bad the FreeS/Wan setup is just way too hard.

    I've decided to wait for linux 2.5's native implementation.

    1. Re:freeswan setup is just a PITA by Anonymous Coward · · Score: 0

      Hard? Huh? Have you read the documentation, or even looked at the configuration examples?

      I have setup many FreeS/WAN IPSec tunnels, and all that was required was building the ipsec.secrets file - which is done automatically with the "ipsec newhostkey --output /etc/ipsec.secrets" command (which is well documented).

      As far as the config goes - you have to define the destination IPSec device's address, its public key, and whether or not you want things such as compression turned on. It couldn't get much easier...

      Unless of-course you have control over your reverse DNS - then it's even easier...

    2. Re:freeswan setup is just a PITA by PhiberOptix · · Score: 0

      i guess that he was referring to the whole "read lotsa docs, recompile kernel, adjust lotsa options, read docs again, build, configure, setup, test...

    3. Re:freeswan setup is just a PITA by Deagol · · Score: 1
      I must agree with the grandparent post -- it's pretty difficult. I'm not a Linux god, but I'm no slouch. I can usually muddle my way through anything, but I couldn't get FreeS/WAN working between 2 Linux boxes a few days ago.

      I think better documentation and/or a better HOWTO would be benneficial.

      Another pet peeve of mine is how damned hard using mixmaster remailers is. I've toyed with these things on and off for nearly ten years. I've never really figured it out too well. There aren't even any good unix front-ends for these things. Best I can find is a DOS program and a crusty Windows program ("My Private Idaho" I think?). And all documention is 5 years old or more. (Never mind the general mumblings of distrust I perceive in the mixmaster servers themselves).

      Maybe these are just 2 items I just dont "get" -- everyone seems to have blocks like these.

  23. Not really. by wirelessbuzzers · · Score: 2, Insightful

    If this becomes popular, I can see the intelligence agencies having a fit.

    Probably.

    They might lose one of their best information feeds; the internet.

    Maybe. The thing is that the intelligence agencies are plagued by too much data, and sniffing the internet doesn't help much. Maybe Carnivore is useful, but I think they probably are having trouble looking through all that.

    f this sort of technology were to be rolled into the main distributions as well as Microsoft/Apple packages, the internet would then have a decent level of privacy.

    Maybe. There's SSL for most sites where you would really care though. And traffic analysis would still be possible unless they encrypt the IP headers (ie, go to IPSec). And a lot of the privacy loss is when the database of Merchant X gets hacked / sold out to spammers, and all the encryption in the world will do very little against that. No, I take it back, anonymous digital cash and IPSec should do something.

    --
    I hereby place the above post in the public domain.
  24. PARENT NOT TROLL by Anonymous Coward · · Score: 0

    It just isn't.

  25. Re: not sure you oppose govt. surveillance?? by King_TJ · · Score: 1, Offtopic

    Hey! You're never too old to realize trading freedom for security is a bad idea!

    I'm against terrorism as much as the next guy, but let's look at the facts here. Government is never going to release official documents giving true statistics on how often interception of secure communications resulted in capture of a terrorist.

    Say they invade the privacy of 50,000 individuals, and mistakenly go after 25 people from this information. Finally, they get 2 terrorists. What do you think the news is going to say? I'd wager it'll trump up how "2 suspected terrorists were captured today, thanks to interception of emails between them and known Al Queida leaders."

    It's not that you're receiving incorrect information/news. It's simply that it's filtered.

    In any case, I'm a firm believer in giving people the tools they need to accomplish a task, and letting them take charge of their own destinies. Opportunistic encryption is certainly a nice "tool" to add to the computer toolbox.

    Right now, the biggest problem we face with encryption tools is automatic suspicion we're doing "something bad/wrong" just because we use it. If it gets rolled into OS's as a default option, that silly argument vanishes.

  26. DNS vs IKE key exchange by maynard · · Score: 3, Informative

    I fiddled with both FreeSWAN and the OpenBSD implementation of IPSEC. Trying to get them to interoperate was a total nightmare, primarily because of the differing key exchange protocols. At the time I wanted to use OpenBSD server side because it supported hardware crypto cards while Linux didn't, which is now a non-issue with current Linux kernels.

    I still think that straight IKE (Internet Key Exchange) is a better method of handling key exchange than DNS - it just seems like we're adding too many unrelated record types to DNS, which is leaving us with a mess of clients/servers that can and cannot understand certain records. The AFS folks have done the same thing, yet I don't see AFS records in DNS maps all over the place. One point I'll make about this, we used to have hesiod records in our DNS maps which we had to rip out when we last upgraded BIND because it didn't understand the record type and would puke and die on startup. DNSSEC only makes the problem worse - unless everyone agrees to support the new record types and upgrades.

    OTOH: automagically performing a key exchange and then setting up a transport mode point to point IPSEC exchange is a very cool thing! Most people think IPSEC is about tunneling whole IP networks within the IPSEC protocol, but ubiquitous transport mode is really the holy grail of IPSEC. Basically it allows one to encrypt any TCP/UDP stream without regard to the underlying port side protocol - thus making ssh, httpssl, ftpssl, etc redundant. Telnet, ftp. http, etc suddenly becomes secure by default without the user having to do or know a damn thing! This is a far more elegant general purpose solution than the variety of encryption schemes we use today, each with their own idiosyncrasies, potential security holes, and command line switches.

    Go FreeSWAN team!

    --Maynard

    1. Re:DNS vs IKE key exchange by Leper · · Score: 1

      Off topic, but FYI djbdns has support for arbitrary record types, as a good DNS server should.

    2. Re:DNS vs IKE key exchange by GC · · Score: 1

      Most people think IPSEC is about tunneling whole IP networks within the IPSEC protocol, but ubiquitous transport mode is really the holy grail of IPSEC. Basically it allows one to encrypt any TCP/UDP stream without regard to the underlying port side protocol - thus making ssh, httpssl, ftpssl, etc redundant.

      True, in the past IPSEC has been about doing the encryption at the gateway instead of between individual systems. There are many reasons for this - firstly the idea of doing the encryption/encapsulation on a single box, instead of on a one-to-one basis makes it far easier for those who need to spec out the boxes involved.

      Secondly, when using this type of system it makes it far easier to troubleshoot problems as you always have the option of doing a packet capture on the unecrypted side of the communication. Doing a packet capture on the encrypted side yields no useful information to network admins about what is going wrong.

      Perhaps under Linux you can do a packet capture on the /dev/ipsecX interfaces to see the unencrypted data - I never tested this but hope it is so. Under Windows, which - whatever your religion - still hosts most of the world's computers, there is no such functionality.

      Somewhere else in this discussion I read about someone pretty much drawing the fact that supporting encryption on all systems is the Holy Grail of secure computing and related to 9/11 as to whether this is a good thing. Crypto is important for many businesss applications and the fact is that if FreeS/WAN and sendmail were both installed on two systems that all emails between them would be encrypted, without the knowledge of sendmail at all. Yes, pretty cool - but still a long way to go before that is implemented on all systems, and certainly sure to receive some resistance from political bodies, especially the USA.

      Some have mentioned that organisations, such as the NSA, have enough computing power to decrypt these communications. I really don't think that this is the case. Their saving grace at the moment is that encryption is mostly taking place at a LAN-LAN basis so there would be far too many keys to break if the encryption was one on a Host-Host basis. If OE takes hold, then there will be a myriad of keys that could really only feasibly be broken by other means, intelligence, backdoors, trojans and the like or even perhaps the inception of algorithms for which decryption was trivial.

      Those methods after all are far less costly than putting a beowulf of systems at work just to work out what two systems are passing between them using generally accepted strong encryption.

  27. Re: IN DEMOCRATIQ IRAQ by Anonymous Coward · · Score: 0, Offtopic

    Opportunistic encr#!+"*ç+324 @¦#!!!

  28. Re: not sure you oppose govt. surveillance?? by astrashe · · Score: 2, Interesting

    I understand your points, and I really felt the same way before 9/11. And it's a hard thing to talk about, because the government seems to keep a lot of information from us.

    But I wonder: why don't we see more terrorism here than we do? Why do other countries, who are far less involved in the rest of the world, see so much more? It's especially puzzling when you think about how open our society is -- it's easy to move around, to do whatever it is that you want to do.

    Part of it, I think, is that people know that we will respond with overwhelming force. That's what happened to Afghanistan.

    But part of it, I think, is the surveillance. I think it's a big part of it.

    On the flip side, I don't see much of that information, the stuff they get by doing surveillance, showing up in everyday life. I know people who use drugs, who do unusual things sexually, who send emails back and forth criticizing the government and the president, etc. And nothing bad ever happens to them. Whoever is listening, if anyone is listening, isn't acting on that sort of stuff.

    It seems to me that we have, as a practical matter, the freedom to do just about whatever we want. I say this because I know people who do all sorts of stuff, things that society disapproves of, even things that are illegal. And the system, such as it is, tolerates this.

    The fear of surveillance is that it will produce a police state. I just don't see that we're living in a police state. I went to berlin and a couple of eastern bloc countries before the iron curtain came down, and this isn't like that. You can do what you want here.

    On a practical level, I don't think there's any question that what we're giving up is more than paid for by what we get by the surveillance. The problems that I see with it are either (a) philosophical, or (b) fears about what might happen in the future, when the people running the system will probably be less scrupulous than they are now. The last thing, in particular, is a real problem for me.

    It is really extraordinary, though, that the US can be as hated around the world as it is, that we can be as open as we are, even going so far as to have lots of the people who hate us living here, and that things are nonetheless quite safe.

    My feeling is that we have to acknowledge that, on a certain level, before we start agitating. I'm not suggesting that things couldn't be better than they are -- just that before we talk about changing things, it makes sense to acknowledge the good things in the status quo, so as to make sure we don't inadvertently toss that stuff out when we make changes.

  29. waiting for free windows client by Anonymous Coward · · Score: 2, Interesting

    So, other than windows 2000's native IPsec support, is there another (legally) free-as-in-beer IPsec client for commercial windows users?

    The only one I've seen was the one that came from PGPnet or Desktop or something - and it was only free for non-commercial users.

    I know some commercial vendors' vpn clients do support standard IPsec connections (Nortel, Cisco, etc), but AFAIK it's not legal to use them if you haven't bought the company's products...

  30. FreeS/WAN IPSEC implementation... by GC · · Score: 2, Informative

    The FreeS/WAN IPSEC implementation is seperate from the implementation that will be included in the Linux 2.6 kernel.

    The big question is - Is it compatible? and will FreeS/WAN evolve to use the IPSEC implementation.

    I've used 1.9, and it worked fine for me, but I find the iproute2 and IPSEC implementation in the 2.5 development branch of the Linux kernel somewhat more interesting.

    1. Re:FreeS/WAN IPSEC implementation... by noahm · · Score: 1
      Slashdot seems to have a short attention span, so I doubt anybody will actually read this post, but here goes...

      The big question is - Is it compatible? and will FreeS/WAN evolve to use the IPSEC implementation.

      Yup, it's compatible. I've already tested the 2.5 IPsec implementation against freeswan 1.9x. No problems there. Linux IPsec uses the KAME racoon and setkey programs for IKE, which are well tested against freeswan. IKE is the hard part, and when people complain about IPsec interoperability, that's what they usually are complaining about. When that works, it's pretty easy to get AH/ESP working.

      Freeswan's IKE implementation (pluto) could probably be ported to the Linux IPsec stack. In fact, the USAGI project (www.linux-ipv6.org) already uses a modified pluto for their IKE implementation, and much of the USAGI IPsec code seems to what's going into the Linux tree.

      noah

  31. Re: not sure you oppose govt. surveillance?? by glesga_kiss · · Score: 3, Insightful
    I understand your points, and I really felt the same way before 9/11.

    So, what exactly has changed? The US psyche has been changed because this is the first time there was a large number of innocents on your home soil. Previously, even during full-scale wars, the US mainland has been safe.

    However, the many parts of the world have had death on their doorsteps for years. Why change your views on privacy and civil liberties on one event? The "Everything changed" thing just isn't true.

    Why do other countries, who are far less involved in the rest of the world, see so much more?

    Most terrorism is related to territorial disputes, e.g Northern Ireland/IRA, Basque Region/ETA and Saudi Arabia/Al Qaeda. Many countries don't have terrorist attacks in them at all, so I wouldn't go so far as to say the US is more or less targeted than anywhere else that has a terrorist problem.

    Also, the US is no more "open" than most places in the free world, where a lot of the terrorism seems to be.

    It is really extraordinary, though, that the US can be as hated around the world as it is, that we can be as open as we are, even going so far as to have lots of the people who hate us living here, and that things are nonetheless quite safe.

    No one hates you. They hate some of the things your government has done. Only extremists see that as validation for killing civilians.

  32. Not expecting them? by Kelerain · · Score: 1

    What do you mean, not expecting them?

  33. How do i enable this by Anonymous Coward · · Score: 0

    How do I enable this feature in Windows 2000?

  34. The only..encryption..the NSA can crack is..DES by apankrat · · Score: 0, Flamebait

    The only widely used encryption algo that the NSA can crack is 56bit DES

    Feel free to believe in this yourself, but please do not 'clear some things up' this way for other people. Everything that you've said is on the must be prefaced with It is commonly believed in my circles in block letters.

    WTF is a 'brute force for public key encryption' ? Did you ever heard that assymetric key recovery is essentially a factoring challenge, which is never solved with brute forcing ?

    The DES/NSA statement is simply hillarious. I guess it needless to say that unless you're an NSA insider, your words worth nothing.

    And, dude, pubke encryption is not 'the only one that allows authentication'. It is in fact used for this purpose in some architectures, but there are plenty authentication schemes that do just fine and rely on other cyrptographic means.

    --
    3.243F6A8885A308D313
    1. Re:The only..encryption..the NSA can crack is..DES by arvindn · · Score: 1
      Everything that you've said is on the must be prefaced with It is commonly believed in my circles in block letters.

      Certainly, if you like. But I must also mention that my field is cryptography research.

      WTF is a 'brute force for public key encryption' ? Did you ever heard that assymetric key recovery is essentially a factoring challenge,

      Of course. But I was using bruteforce in a weaker sense, to mean that they can't crack it merely by throwing computing cycles at it (as the original poster meant), without the benefit of some attack/algorithm unknown to the rest of the world.

      The DES/NSA statement is simply hillarious.

      Then go ahead and laugh. But make sure you've read the relevant literature, like the recent attacks on AES and how far they are from succeeding in practice. I'll say it again if you want: unless the NSA have developed a different attack on AES or a new factoring algorithm, they can't crack anything that you and I can't.

      And, dude, pubke encryption is not 'the only one that allows authentication'. It is in fact used for this purpose in some architectures, but there are plenty authentication schemes that do just fine and rely on other cyrptographic means.

      Sure, but none that can be used when strangers meet for the first time.

      Next time before you flame someone, please try to understand what they are saying, or the laugh might be on you.

      [Bye, going to bed.]

    2. Re:The only..encryption..the NSA can crack is..DES by kasperd · · Score: 1

      Did you ever heard that assymetric key recovery is essentially a factoring challenge, which is never solved with brute forcing?

      A brute force attack would mean trying all possible factors starting from 3 until you find the right one, which would be at most the square root of the number. And I'm perfectly aware, that there are faster ways to factor. That is part of the reason why people use at least four times as many bits for assymetric encryption than for symmetric encryptions. If you don't think that is secure, you should tell us what the time complexity of the fastests known factoring algorithm is.

      --

      Do you care about the security of your wireless mouse?
    3. Re:The only..encryption..the NSA can crack is..DES by apankrat · · Score: 1

      And I'm perfectly aware, that there are faster ways to factor.

      Exactly the point. Unlike with symmetric encryption where all but the brute force methods are basically impractical (linear and differential in DES case, for instance), factoring problem has a number of fast non-bruteforce algorithms. And what's more important they all are recent developments. Their young age means there is a good chance for unnamed agency not only to got them developed earlier, but also to already have a faster not-yet-public algorithms in its possession.

      That is part of the reason why people use at least four times as many bits for assymetric encryption than for symmetric encryptions.

      Yeah, it's a good rule of thumb. It's nothing more though, key bits count in symmetric ciphers and pubkey algorithms are not related as the underlying algorithm ideas are different.

      If you don't think that is secure, you should tell us what the time complexity of the fastests known factoring algorithm is.

      Well, since you've asked it's -

      O(exp(sqrt(ln(n)*ln(ln(n))))) for MPQS

      O(exp(c*(ln(n)^1/3*ln(ln(n)^2/3))) for NFS.

      Both are far from being O(exp(n)), btw.

      --
      3.243F6A8885A308D313
    4. Re:The only..encryption..the NSA can crack is..DES by apankrat · · Score: 1

      > The DES/NSA statement is simply hillarious.

      I'll say it again if you want: unless the NSA have developed a different attack on AES or a new factoring algorithm, they can't crack anything that you and I can't.


      Yup. The keyword is "unless". And unless you are an NSA employee, the "unless" will remain a dominating factor in all speculations about what they can and cannot break.

      Sure, but none that can be used when strangers meet for the first time.

      If they are total strangers, nothing will help them to authenticate each other. If you are referring to using PKI or SET to establish initial trust via CA paradigm, sure it's an option, but
      (a) the parties are not exactly 'strangers' anymore
      (b) I'll say it again if you want: this type of an authentication is just one out of many including essentially any non-cert based authentication schemes (usually over DH-protected channel) - look at CIPE, preshared secret IKE, CHAP, etc.

      Next time before you flame someone, please try to understand what they are saying, or the laugh might be on you.

      Same to you, bud, same to you.

      --
      3.243F6A8885A308D313
    5. Re:The only..encryption..the NSA can crack is..DES by kasperd · · Score: 1

      Their young age

      If you consider 25 years to be young.

      O(exp(c*(ln(n)^1/3*ln(ln(n)^2/3)))

      Can it really done that fast? I don't know the constant c, but if it is smaller than one, that would mean breaking a 1024 bit key would already be feasible. If c was just 0.5, it would be feasible for anybody to even factor a 2048 bit key. If c is more than 2 we are still safe for some time to come. Anyway, I will take your word for it, at least for the duration of this discussion.

      The ^2/3 part can be removed, since that is just equivalent to c being a different constant. In the formula ln(n) is the bitsize of the key (this differs by a constant factor, but that just means a different c), so if we call this b, the formula, we are left with

      O(exp(c*(b^(1/3)*ln(b))))

      It is safe to remove the ln(b) part, because that only means we assume the attacker is stronger than we really expect. So we are left with.

      O(exp(c*b^(1/3))

      Which is BTW obviously smaller than the MPQS formula as well (for some c). In other words to get the same security as a k bit symetric key, we need b=(k/c)^3. This is quite a large amount of key bits.

      --

      Do you care about the security of your wireless mouse?
  35. Zero Configuration.... by knowledgepeacewi · · Score: 1

    After installation, ZERO host configuration is required for OE! A Linux box running 2.00 will encrypt all IP packets to other OE capable boxes whenever possible, provided you publish a key and IPsec gateway information in DNS." Nice.
    Zero Configuration implies no work done by user.
    You contradict that in the rest of your post.

    1. Re:Zero Configuration.... by alienmole · · Score: 1
      Zero Configuration implies no work done by user. You contradict that in the rest of your post.

      Not quite - the key words in the original post are "After installation". The point is that after initial installation, no additional configuration is required to securely connect to a previously unknown host. That's a big improvement from pre-OE.

  36. MITM protection was the *Point* by billstewart · · Score: 1
    It's very easy to get something like opportunistic encryption if you're not worried about "Man In The Middle" attacks - you do pre-shared secrets, with the standard passphrase "open secret", and that lets everybody set up encrypted connections. They could have had this out a couple of years ago (pre-shared secrets were the standard way to get ipsec boxes from different vendors to talk to each other.) But it falls easily to man-in-the-middle attacks, (to the extent that mitm attacks are easy, which they're not if you're careful) so they considered that to be broken.

    In general, the problem of "how do you have a secure conversation with a stranger?" in unsolvable. If you're communicating with somebody you know, you can set up pre-shared keys or X.509 keys or some equivalent and use them. We've had VPNs for a couple of years, and FreeS/WAN has done them, which address the problem of only talking to your friends. This stuff is relatively cool, except that most people don't have good control over their reverse DNS, even if they do have static IP.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:MITM protection was the *Point* by Anonymous Coward · · Score: 0

      In general, the problem of "how do you have a secure conversation with a stranger?" in unsolvable.

      Not so fast. For reasonable values of "secure", a chain of trust-relationships can enable secure conversations with strangers. That's what certificate authorities and trust-networks a la PGP are about. Opportunistic encryption makes man-in-the-middle attacks a lot harder because the attacker also has to be in the middle of the client-dns connections of BOTH parties. If you add secure DNS into the mix, being in the middle of these connections isn't enough. Then the attacker has to compromise the security of the DNS servers themselves which are authoritative for both parties' reverse DNS.

  37. definition of "easy" by SHEENmaster · · Score: 1

    One can just send a public key out to anyone who wants it.

    It has nothing to do with the mathematics of the algorithm, which are also rather trivial. Ever seen Cube? Kazan could crack such keys mentally!

    --
    You can't judge a book by the way it wears its hair.
  38. Deploy and they will stop. by Ungrounded+Lightning · · Score: 1

    Anyway, this will never work - there's too many clueless [ISP] administrators out there who will think it's just someone attacking their core routers or overloading their DNS server, or something else equally inane, and they won't bother to check what the port really is.

    I assume you're talking about ISP administrators, since you mention core routers, and because FreeSWAN won't attempt ANYTHING unusual with an end site unless that site published an invitation in its DNS records.

    Perhaps the scenairo you mentioned was common when IPSec was first being rolled out. But at this point it's much more common, so that shouldn't be an issue.

    And if it still IS an issue, it will stop being an issue once FreeSWAN is rolled out, so that IPSec traffic is much more common.

    But if your ISP has enough manpower to hassle everyone who turns on IPSec after the next couple weeks, you're being overcharged and need to switch carriers. B-)

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
  39. Reverse DNS? by Mike+Hicks · · Score: 2, Insightful

    Unfortunately, full opportunism (both incoming and outgoing connections being encrypted) requires you to have a static IP and control over your reverse DNS entries. I will have that someday, but I can't really afford it yet. Also, I doubt many people will jump for that in the future, but I guess one never knows..

  40. Re: not sure you oppose govt. surveillance?? by Anonymous Coward · · Score: 0
    So, what exactly has changed? The US psyche has been changed because this is the first time there was a large number of innocents on your home soil.
    This is just not true. 9/11 was probably the most significant terrorist attack in history, throughout the world. The united states has had a number of terrorist attacks in its history: Ok. city, the first attack on the WTC, the unabomber, ELF activites, several highjacked airplanes, etc.
  41. Well...if you were hacked...how do you know... by knowledgepeacewi · · Score: 1

    There was even one company who it ended up being discovered was hacking me!
    How do you know someone else didn't use your computer to hack, having nothing to do with IPsec?

    Sounds like IPsec is fine and you're just a bad sys admin. (or you use Microsoft Products).

  42. One risk of encryption is government searches. by Ungrounded+Lightning · · Score: 3, Interesting

    Some time ago a mailing list on a controversial subject was running on my home machine. One of the rules was that no criminal activity could be discussed or facilitated via postings to the list.

    As a matter of policy, while that list was running all traffic both on the list and to and from the machine was UNencrypted.

    The reasoning:

    - Someone unhappy with the subject matter of the list, with being kicked off it for misbehavior, or just mad at the list operators for unrelated reasons, might file a tip with a police agency claiming illegal activity.

    - Due to the list's subject matter, the tip might be considered credible.

    - If the traffic to the site was UNencrypted, they could obtain a wiretap warrant and examine it offsite (and would prefer to do it this way).

    - If any of the traffic to the site was encrypted, they would have to sieze and examine the machine to satisfy their investigation, causing considerable disruption. (And they might also take encrypted traffic as a confirmation of the tip.)

    The list administrator says it well: Leave it unencrypted and they get to bore themselves to tears.

    The list was retired (and a successor started at another site) before I needed to do encrypted traffic between home and work.

    That was quite some time back, and encrypted traffic was uncommon then except for security agencies, a very few businesses, a few experimenters, and a few crooks. At this point encryption is far more common - what with VPN, SSH, and IPSec. And with ready-for-primetime FreeSWAN it will become still more comomn.

    But the core of the original risk is still there: If you're using world-class encryption, and the government gets a bee in its bonnet about you doing something undesirable, they'll need to physically search your machine for evidence or keys, or plant an onsite bug such as a keyboard monitor, to find out what you're up to. (Or they'll find it less expensive to do it that way than try to crack your encryption from outside.)

    Fortunately, a sudden widespread deployment of encryption can get us "over the hump" - going past the point where it is rare enough that security agencies can target people who use it, to the point where wiretapping is pointless and searches on only suspicion-plus-encryption are too expensive.

    That would create an economic incentive to avoid fishing expeditions and mostly search only on credible evidence of wrongdoing (plus an occasional governmental rape of a political enemy or other terrorist action against an outgroup or annoyance-to-cops).

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
    1. Re:One risk of encryption is government searches. by alienmole · · Score: 1
      Fortunately, a sudden widespread deployment of encryption can get us "over the hump" - going past the point where it is rare enough that security agencies can target people who use it, to the point where wiretapping is pointless and searches on only suspicion-plus-encryption are too expensive.

      As you say, with VPNs, SSH, SSL, IPSec etc., don't you think this has already happened? Plenty of pretty ordinary people are engaging in encrypted sessions all the time.

  43. How to do this with OpenBSD? by Anonymous Coward · · Score: 0

    Why no release something "compatible" with another systems?

  44. Mohammad Al-Sahaf INFORMS YOU... by Anonymous Coward · · Score: 0

    that opportunistic encryption has been cracked to 2048 bits- last week- and we will demo it in ONE HOUR.

  45. Configuration impossible for most by Anonymous Coward · · Score: 0

    Almost no home users have control of their reverse DNS (and most of those who do don't know how to configure it).

    This kind of "hope nobody does a man-in-the-middle attack when i connect for the first time" thing has been done before (perhaps better, juding by the brief description) in SSH Sentinel.

    FreeS/WAN's idea is a good one, DNS is just a bad way to make it happen currently. Maybe there should be a separate simple key exchange protocol for this (based on JFK perhaps?)

  46. enough of this by Anonymous Coward · · Score: 0
    The US psyche has been changed because this is the first time there was a large number of innocents on your home soil.


    Nobody is innocent here. You're born, you take your chances. No, you didn't ask to be born, but no one else did, either. Natural disasters and Microorganisms don't discriminate between those we view as "innocent" and everyone else, so why the hell should we?

    We call them innocent because they're society's vulnerable point. Our children, our women. We're hell-bent on propogating the species, and not a single fucking person has ever had the balls to ask why, or come up with a good reason for doing so. We fuck because it feels good, and that's the end of it, right?

    Morals, ethics, innocence, law. They're all based on our desires for fairness in life. News flash, life isn't fair, and never will be. 20,000 people die every day. Get over it.

    If an Iraqi dies, and nobody knows his name or that he even existed, was he really alive? Does anyone care?
  47. you don't see as much "terrorism" here because... by zogger · · Score: 1

    ... the government only uses as much "terrorist" incidents as are required to accomplish their tasks.

    Don't get sucked into the propaganda that so many do. OKC, WTC attack 1, WTC attack 2, and the anthrax attacks were all shadow government inspired, lead, allowed to happen, known about in advance, all of the above. they accomplished their tasks. You said
    "And it's a hard thing to talk about, because the government seems to keep a lot of information from us."

    Yes, but sometimes they are lame enough to get caught at it. It's a matter of taste, how many times do you personally have to be lied to before you stop trusting someone? What's your tolerance threshold?

    Are we still free? No, not even near as free as we were just a few decades ago. I'll tell you I NEVER went through random courtesy "roadblocks" before, back then. I didn't need electronic thumbprints for a "license", there wasn't a video camera on almost every corner. We didn't have random "school shootings" with a common denominator of student forced drugging and adult "mentors" that seem to always coincident time wise with important legislation action in congress. we didn't have "anthrax" attacks when other important 'security" legislation was being ramrodded through. we didn't have random "mad sniper" attacks in the DC area when, again, extremely important 'security" legislation was being "debated. on and on, there are a lot of strange "coincidences" the past several years.... Now we DID have an obvious presidential assassination that "they" got completely away with, and some of "they" are still alive name brand humans. Hint, see "secret police" as a keyword to jog the memory cells. If it's in another nation we say "secret police". Use the same terms, don't switch them around to feel more comfortable. Just be fair looking at any nation, then things get clearer. Is it as bad as east germany before the wall came down? No, it's not, but ask yourself this very important question, do you WAIT until it really is _that_ bad, or do you assemble the clues, note the trends and patterns,do some extrapolation based on what you can see and find out now, look back, do some ball park figuring, and decide it WILL get that bad if it's not stopped in it's tracks on the way there? Or do you just say "heck with it, it's not as bad as nation x" and excuse what is happening? "Well honey, shutup, you just got raped and beat up, but it could have been worse you know, that bad man could have sliced you up". It's the same sort of logic train, obviously sorta flawed, but it's a decent analogy.

    I'll tell you,just anecdotally, until you *personally* have been a victim of government "wrongness", or see it happen to someone close to you, you will not make the connections as readily, you will not see it as "bad" as the actual victim,you might deny it ever even happens perhaps, you'll keep it as an intellectual curiosity. You mentioned it, you personally haven't seen it. I'll tell you personally it happened, still happens, and is getting worse. Your turn will come, you can wait, or look around for evidence it has happened, and believe me, you'll find it if you honestly look for it. Just like innocent people-anywhere- who get blown to bits, they (would if still alive) think it's a tad worse than being labeled as "collateral damage".

    Best recommendation for anyone,in any nation, society, group, political party, is to STEP BACK for a sec intellectually away from being in that "group", take an honest clean room look at things. You can't see the whole if you are in the middle of it, you have to take a step back.

    Oh, 9-11, back to that, just google 9-11, government prior knowledge, involvement, that will get you going. It is NOT as cut and dried as the 6 o clock news and joe government say it is. It just ain't. Basically, it's a reichstagg event. it's being used in an identical way. but, look yourself, you'll see some interesting coincidences and unanswered questions and some odd bits of data that are rather ..disturbing.

  48. IP Over Carrier Pigeon by heretic · · Score: 1

    http://www.ietf.org/rfc/rfc1149.txt

    A Standard for the Transmission of IP Datagrams on Avian Carriers

    This memo describes an experimental method for the encapsulation of IP datagrams in avian carriers. This specification is primarily useful in Metropolitan Area Networks. This is an experimental, not recommended standard. Distribution of this memo is unlimited.

  49. That's Deliberate FUD, Troll ! by billstewart · · Score: 2
    The whole point of mathematical cryptography is understanding the work level required to crack it so you can decide whether an algorithm is good enough for what you need. One of the nice things about public-key crypto is that you can make the key longer at roughly N**2 cost, which increases the cracking effort by roughly 2**(N/logN) *, so if you are willing to quadruple your computation time, you increase the cracking effort by a factor of ~2**100, pushing it out of the range of things that can be cracked with current technology during the lifetime of the known universe. The longest RSA keys that have been cracked are on the order of 600 bits. There's some evidence that if anyone built Shamir's TWIRL hardware, for a cost of ~$50m, it might be possible to crack 1024-bit keys in under a year, so you might want to use 2048-bit RSA for anything the government might be interested in this decade, depending on what you believe about Moore's Law's longevity. But basically, it's easier and cheaper for them to sneak in and put a bug in your keyboard than to crack your keys mathematically.

    The author's posting sounds like those people who troll about "NSA put a backdoor in PGP" and rot like that. Some of them are motivated by the fun of trolling, while some sound like they're spook sympathizers deliberately trying to undermine the public's use of crypto.

    In sheenmaster@frob.us 's case, he's got a product on his website about his product FlameCrypt, which given his Slashdot posting I wouldn't touch with a 10-foot pole even if it did have documentation and the algorithms posted where you can get at it without registering on his site and/or downloading the program. Crypto people are concerned about privacy and about good documentation.... What I could find about it on Google\(tm was a reference to earlier versions that let you put in your own algorithms and "an algorithm generator program to automatically create new algorithms." Pure snake oil, which is consistent with his flame. Too bad - his web site had an entertaining counterflame about all the spelingg missteaks being intenshunnul.

    *Minor exception - Elliptic Curve is 2**N, so it can get away with shorter keys than RSA or Diffie Hellman, but it's a newer theory and not everybody's convinced that a theoretical crack won't show up. It tends to have annoying patents on some of the versions as well, but it's convenient to be able to use 165-bit keys instead of 1024- or 2048-bit keys when you're trying to save space in packets or autogenerate the keys from passphrases. Also, the work factor I gave for RSA cracking is very approximate, and depends on what the best factoring algorithms are this year. But the basic principle has been constant for a long time, which is that a small linear or quadratic increase in encryption workload causes a basically exponential increase in cracker workload, and we've been on the pro-privacy side of that curve since before PGP first came out. Moore's law has meant that since PGP was good enough to use 512-bit keys on an 8086 in 1991, and 1024-bit keys on a state-of-the-art 386, back then, 2048-bit keys have been usable since about 1994 on a Walmart-quality PC, and your cellphone could have been running 1024 bit keys by about 1997 if the NSA and their equivalent thugs in Europe weren't pretending that they were forcing cellphone companies to use crippled crypto to keep the Commies from using it.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  50. Re: DES, 3DES, RC4 by billstewart · · Score: 1
    I don't know what you mean by "streaming", if you're talking about DES at least, but triple-DES is just fine. The effective key length is only 112 bits (2*56) rather than 168 bits (3*56), because of the meet-in-the-middle attack which uses 2**56 objects of memory to reduce the computation time, but that's still pretty good given forseeable technology. (Among other things, hypothetical quantum computers are hypothetically very annoying to factoring-based public-key crypto, but at most provide an N**2 attack on non-factoring-based crypto, so maybe you'd need to use 5DES instead of 3DES.)

    If your reference to streaming is to things like RC4, as opposed to OFB or similar DES modes, RC4-40 is of course toast, as demonstrated so thoroughly a couple of years ago that NSA gave up on making rules about it. The distributed.net folks apparently don't know when to quit :-), so they not only cracked RC5-56 and just recently RC5-64, but are going for RC5-72. RC4-128 is just fine, except if you use it for things it wasn't designed for (3 or 4 of the 7 main things wrong with Microsoft's PPTP were boneheaded-dumb misuse of RC4's requirements, and the WEP 802.11 folks found more creative ways to use RC4 for things it wasn't meant to do.) But as long as you use it the way it was designed to be used, it's strong enough, and it's just about the minimum-CPU crypto algorithm out there for general-purpose computers.

    I'm not bothered that the most common SSL implementations do RC4-128 instead of 3DES - they usually have much more serious implementation problems (:-), such as not firewalling the hardware adequately, and they should also generally be using Perfect Forward Secrecy modes and often aren't.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  51. They've disliked it for years. by billstewart · · Score: 2, Insightful
    John Gilmore and his friends, including the EFF, Cypherpunks, and academic crypto community, have been annoyances to the NSA and their ilk for years. He's done things to them like winning lawsuits in Federal court to get fundamental books on crypto declassified (after doing the search to find one public library that had copies of them), funding the EFF DES cracker machine design to drive the nail into the "56-bit DES is good enough for you" rulemakers (after the "40-bit RC4 is good enough for you" had been cracked by various grad students and implemented on T-Shirts) (And by the way, the NSA never returned the T-shirts that Raph Levien submitted for munitions-export approval...). The more important work was probably the social organization that helped make people aware that this is a civil liberties issue as well as a geek-technology thing.

    A lot of credit also has to go to Netscape, who put encryption technology on everybody's desktop by including it in their browsers, which of course forced Microsoft to include it in IE as well. It's a different technical approach to attaching the crypto to the network, but you can use web browsers to downloaded encrypted files, read your webmail, etc., which is a large part of the problem space. Some of the core Netscape crypto developers were three brothers who also hung around Cypherpunks... The fact than a one-line ascii patch could "fix" the 40-bit crypto in Netscape and make it 128-bit was only partly technical convenience. And the "Develop and ship the code so people can use it" approach to protecting civil liberties is a lot more direct than ask-permission-first lawsuits, though some people went to extreme risk trying to keep their asses out of jail after doing so, like Phil Zimmermann. The FreeS/WAN people have also been taking this approach for a long time - it's developed entirely outside the US to avoid being subject to US crypto export requirements (John's a funder, and a user, not a developer for this stuff.)

    Technology like this _has_ been rolled into popular software - the Internet stimulated awareness of the business need for crypto at around the same time that computers got fast enough to make it relatively practical. Virtual Private Networks are a different part of the IPSEC space than Opportunistic Encryption, since they're designed for letting approved people have a private conversation rather than letting just anybody access your machine, but they've been a standard business capability for a few years now - otherwise telecommuters would have to dial into dedicated modem pools, and if you remember running those, they were expensive and annoying to maintain. The IPSEC crew were an important part of the industry standards work, going to the various bake-offs to make sure things really interoperated, and having a free implementation that was vendor-neutral was a big help in getting everybody working together during the early still-flaky days. Middle-aged Microsoft operating systems had PPTP VPNs on them. They were terribly broken, and I think the WinXP stuff has real IPSEC built in, though that may only be XP Pro. And gradually there'll be better-working stuff there.

    There are a lot of packages using SSL and SSH to do crypto

    • SSH has pretty much replaced telnet as a way to administer machines remotely, except when you can use SSL-encrypted web forms.
    • Client-side SSL certificates haven't really taken off yet, but server-side certs are enough for most of the problem. I think some of the SSL-based clientless VPNs like Neoteris use Client-side.
    • The last several SMTP versions have supported SSL/TLS encryption, so you finally can send your email encrypted among systems that support it, with the servers supporting the encryption rather than having to encrypt every message.
    • Microsoft Outlook and Eudora and some other email packages support crypto as a standard feature, using S/MIME. They also support plug-ins, which means that PGP integrates into them pretty cleanly, so you can send encrypted email to people whose public keys you have, and in some cases can fetch the keys automatically from LDAP servers if your corporate email does that.
    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  52. Routers, and IPSEC vs. SSL by billstewart · · Score: 2, Interesting
    Cisco routers have IPSEC capabilities, if you want to pay extra for the IOS versions that support it. Most Cisco routers have really wimpy CPUs, so if you're trying to handle any real volume, you'll want a crypto accelerator board also. Basically, you end up paying over $5000 for a router that would otherwise be under $2000 (or ~$500 on e-bay :-) (YMMV on Juniper or Lucent or Nortel or other router brands, but it tends to be true there too.) By contrast, a Pentium-200 can pretty much handle IPSEC for a 10mbps Ethernet load, and you might as well just build the crypto into your web server or mail server since you're more likely to use a 2GHz machine instead. If you want to build an appliance, those 206-MHz StrongArm boards are pretty popular.

    The debate about whether to do crypto at Layer 1, 2, 3, 4, or 7 has been going on for over a decade and a half. (Some people argue that crypto in the SSL/SSH sense is really layer 5 or 6, one of those OSI Session or Presentation Layer things that the TCP world doesn't worry too much about, but alternatively you can call it Layer 4 :-) Physical and Link-Layer crypto are fine for private networks - WEP is basically a Layer 2 crypto system which would be a good thing if it weren't badly thought out and badly implemented, and the NSA has been using Layer 2ish crypto on X.25 networks since the 80s, back when X.25 was the way you did international data networks. IPSEC has the advantage that it protects _all_ the communications between your machine and another machine, which can be really effective if that matches your communication patterns, and it means that the applications inside don't need to be modified to use crypto as long as they run over vanilla IP. Layer 4 cryptosystems like SSL and SSH are much more trouble - applications need to know about them, and they don't protect the machine against protocols that don't use them, but the operating system doesn't need to know, and intermediate routers and such don't need to know about it, so it can be more convenient to implement for applications that can use it. Layer 7 - things like PGP-or-S/MIME-encrypted email or encrypted file systems - is obviously much more customized, protects even fewer things, but sometimes it's the right way to go also.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:Routers, and IPSEC vs. SSL by VCAGuy · · Score: 1

      I maintain a Nortel Contivity router as part of my job, and ours (a cheapie 1100 series) has a 300MHz Celeron. It has no problems handling 4.5mbps (i.e., as much as we can throw at it)--it doesn't even flinch.

      --
      Q: "Why do sound techs say 'check 1, 2'?"
      A: "Cause if they could count any higher they'd be lighting techs."
  53. Yes, that's a VPN by billstewart · · Score: 1

    VPNs are an easier way to use IPSEC than Opportunistic Encryption is - they're designed for only talking to machines you know and trust and have administrative relationships with, so it's a much simpler problem. As kmcmartin points out, FreeS/WAN has had this since early on (at least in combination with the standard firewalling capabilities.) In addition to letting ipsec packets through, you actually also need to allow UDP 500, which is the connection setup protocols, and you usually want DNS as well, depending on how you plan to identify machines that you're willing to talk to.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  54. Clueless anti-VPN Cable Modem ISPs by billstewart · · Score: 2, Interesting
    I'm really surprised to hear UUNET complaining about IPSEC. They shouldn't care.

    However, there are some cable modem companies that really object to anything VPN-like. It's nothing technical, just pure greed. They assume that if you're using IPSEC, it's a VPN for work, and they have a higher price for "business ISP service" than for "residential". There are even a few DSL companies this rude and clueless. Most Cable modem companies and some DSL companies also object to running anything server-like on their networks, because they're worried about overloading their asymmetrically small upstreams, and because they've got a leftover habit of paranoia about bad performance due to early equipment problems, all those PacBell "WebHog" TV commercials, worries about bad PR from neighborhood porn web servers hogging the cable, etc.

    While most cable modem companies are still desparately clue-deficient, they've at least mostly figured out that one reason people are buying broadband in the first place is to be able to work from home, and that means that customers _are_ going to use IPSEC and not just fetch HTTP and POP3, and now that telco DSL service is widespread, they're a little more responsive to competitive pressure.

    Some telco DSL providers are apparently clueless about this also, but relatively few.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  55. Re:You say OE by gujo-odori · · Score: 1

    Since when does MUA = OS?

    Most of my background is in WAN engineering and *nix administration, but much of my current paying work is W2K administration (and a bit of *nix). Outlook Express is on my list of software that is not allowed on our company LAN. Why? It's crappy. It has what may be the worst security history of any software product (unless IE is worse), and still isn't RFC-compliant WRT handling PGP-or-GPG-signed email.

    My point is that whether or not you think is crappy or not has nothing to with whether is crappy or not.

    Outlook Express is a crappy application, and would be so even if it had a Linux version. I would still not allow it on our network.

    By way of contrast, let's consider Konqueror, which in its latest version I have come to consider the best web browser available, on any platform. Regardless of whether you think it's running on a crappy OS or a good one, the application is outstanding. It's rendering is extremely fast, it offers the finest-grained security control of any browser I've used, and the best bookmark management system as well (IMO). The only thing any competitor has on it is Mozilla's Personal Folder Toolbar, but I can fake that one pretty well in Konqueror with minimal effort. The only other browser really close to Konqueror is Opera. Mozilla/Galeon/Netscape are in the same league but not on the same level.

  56. Quick question about implementation... (OE + masq) by .milfox · · Score: 1

    I understand how bidirectional OE works, and how that is neccessary for an OE gateway.

    Question is, anyone know about OE on a masquerading gateway? Their implementation seems to be for a non-masq gateway with DNS records hosted by the ISP.

    Or will a simple bidirectional OE sans gateway mods work for a masq connection?

    Anyone familiar with this?

  57. Since when is traffic sniffing a security issue? by AbbeyRoad · · Score: 1


    Traffic sniffing between gateways is actually
    rarely feasable since it usually requires
    access to a router squarely in the path of the
    packets. Most traffic sniffing happens on local
    LANs with disparate machines that do not support
    SWAN.

    The real use of SWAN is for virtual private
    networks. However in the common case of a
    VPN with a group of known gateways, no
    key exchange is necessary since you could
    simply share a symmetric key. Preconfiguring
    a server with a secret symmetric key is
    easier from a installation+maintanance
    perspective. And its easy to understand as
    well --- most admins do not understand public
    key crypto.

    Couple this with the fact that

    - Most Linux distributions will not ship with
    SWAN enabled by default

    - There are significant CPU overheads to
    encryption.

    - The latency of key exchange is not
    insignificant.

    - You don't need SWAN to a web server when
    you have SSL/TLS. You don't need SWAN to
    a shell session when you have SSH or
    srptelnet etc. ...and you will find that few hosts are going to
    use it IMO.

    Of course it's essential that Linux supports it
    for compatability reasons. So well done to the
    SWAM team all the same.

    -paul

  58. "No one hates you." by tibman · · Score: 1

    No one hates you. They hate some of the things your government has done.
    I take it you've never been called "fucking american" when you didn't understand how to use a foreign nation's subway system. I don't expect ppl to like me, but i expect them to respect me as a human being.

    --
    http://soylentnews.org/~tibman
  59. This directly violates current RFCs by rise · · Score: 1

    RFC 3445

    This caused massive problems so the DNS Extensions working group has eliminated it. This has been true since December 2002 and 3445is now a proposed standard as well as an RFC so the FreeS/WAN guys are making a really major mistake. The record sub-type bits they're using are now defined as RESERVED status and "MUST be set to 0 and MUST be ignored by the receiver". Once enough DNS servers have implemented RFC 3445 the records won't propagate through the system at all. There are better ways to do this - take a look the leading underscore system that SRV records use (synthetic sub-hosts on a per service basis). Special TXT records are still fully usable or they could simply go to the DNS-EXT working group and say "Hey, we'd like to define a new record type. What's the best way to do it?" Opportunistic encryption is a big step forward, but it's useless if it's broken by design and the arrogance of ignoring the IETF is the kind of thing that's slowly edging FreeS/WAN towards irrelevance.

  60. Meatblaster dickhead gets modded up? by Anonymous Coward · · Score: 0


    How about:

    off topic -1

    stupid dickhead child -1

    goatse.cx lover -1

    dumbass -2

    Only idiots have mod points today?

  61. With no friends or fans, what do ya expect? by Anonymous Coward · · Score: 0



    He's an ass, and the first rule of slashdot is that other asses also get mod points.