3 ms·
The other major reason everything is deployed on 443/tcp is that middleboxes ruthlessly block everything that isn't 443/tcp, and your stack design won't change
by tptacek 5y ago
The other major reason everything is deployed on 443/tcp is that middleboxes ruthlessly block everything that isn't 443/tcp, and your stack design won't change that. There's huge incentive to fit everything (or, at least, everything TCP) into TLS on port 443 --- and it's mostly fine, because 443/tcp has better mux/demux features than plain-old-TCP anyways.
People are already doing work on moving TLS into the kernel. There are two big challenges with universalizing the idea. The first is that there's a lot of policy code that accompanies TLS, and having kernel state for all of it doesn't make sense. The other is that TLS changes a lot more frequently than TCP, and some of those changes are urgent, and you don't want to have to update a kernel and reboot your machine when all you really need is a service update and restart.
- 0xbadcafebee 5y agoI believe my method could work around middleboxes if you make an onion. Each layer of the onion could be encrypted separately. The packet going over the internet would just expose "host:node01". When it got to the host, the stack would attempt to unravel the next layer, find that it's TLS, use a cert matching "node01" to decrypt the payload. Then find the next layer, find that it's is HTTP, and so on. You could forward many layers over many networks with each node/service only decoding what it has a certificate (or authorization?) for, with only the final layer getting the full data payload.
- zamadatix 5y agoEncrypted layers already exist in the current stack: MACsec for Ethernet or WPA et al for Wireless or 3G/4G since day one and so on for each option in the network/interface layer, IPsec for the network layer, TLS for transport layer, and after that you're in the application layer which can choose it's encryption. The friction with getting the lower layers encrypted hasn't been lack of option to do so in the current stack it's convincing everyone to throw out their middlebox setups to allow the encrypted protocols universally. Well that and encryption is more expensive (both performance and implementation cost) so the less you can get away with the easier it is to convince people to do. If that were easy to get people to change the middleboxes then we wouldn't be in this situation in the first place. This is one of the main reasons why everything is over HTTPS these days: it was the lowest layer universally deployed net new protocol that was encrypted from day 1 and didn't have to worry about ossification as much. It's far easier to just use that as the new base transport layer and ignore the problem, doing so with new encrypted protocols over UDP when the functionality you're trying to replace in your protocol is at the TCP level.