Better HN
topnewbestaskshowjobs
Log inSign up

api

35,908 karma · joined Oct 4, 2007 (19y ago) · 17,873 submissions

Founder of ZeroTier. Learned programming on a Commodore 64. Linux user since Slackware and kernel version 0.99.15. Been online too long and spent too long in front of a screen.

I live in Cincinnati, Ohio with my wife and two daughters. Ohio is terrible. Don't move here. (Locals still want to be able to afford housing.)

Opinions posted here are entirely my own personal views and not official positions of ZeroTier or any other company or group, unless I explicitly say otherwise.

Submissions

comment 8y ago · link · parent

The Presidency is a labor supply problem. No sane person would want that job.

comment 8y ago · link · parent

I don't think it's just nostalgia and survivorship bias. The median quality of content on the Internet has become objectively much worse, mostly due to a race to the bottom and a race to make the most "viral" thing to cash in quick. Media has always been a bit of a deflationary race to the bottom but this is quite extreme.

comment 8y ago · link · parent

It's 22 years later. The presentation is infinitely better. The content is infinitely worse... or at least the content that greets the average net user.

You really have to dig for good quality content today.

comment 8y ago · link · parent

These are valid points in isolation, but they ignore the meta problem which is that policies backed by communities all over California have created an unprecedented housing affordability crisis. Without this crisis this just wouldn't be happening at all.

I think it is deeply and systematically hypocritical to claim to be "liberal" and for "social justice" while supporting a restriction of housing availability that amounts to stealth red-lining.

comment 8y ago · link · parent

We use OVH and Hetzner dedicated (2X providers, 5X data centers for redundancy). Our application is CPU bound and it's approximately 10X cheaper than AWS/MS/Google and 3-5X cheaper than Vultr and Digital Ocean. If you need a lot of CPU bare metal is vastly more cost effective. It's also a bit faster.

Bare metal is only a little more work to set up if you're using orchestration and provisioning tools. We use Chef and Consul/Nomad.

IMHO Amazon and the other big cloud providers are not a good deal if you only need compute, storage, and bandwidth and if you have any in-house IT expertise. They only make sense if you're taking full advantage of all their managed services e.g. S3, Redshift, managed SQL, lambda, etc. If you only need raw compute and bandwidth the smaller providers (DO, Vultr) and bare metal (OVH, Hetzner) are far better deals.

comment 8y ago · link · parent

The trouble is that I always see the inverse too: people deflecting any criticism of American foreign policy by citing other countries with worse human rights records.

comment 8y ago · link · parent

His frustration is justified. He's calling out the massive hypocrisy of claiming to be liberal and about "social justice" while doing everything possible to exclude people from housing even to the point of forbidding a church from housing people.

This is a problem across the state. Here in SoCal they talk about wanting to be a sanctuary city/state while also opposing any new construction or any other measure to address housing. I suppose all these sanctuary seekers will live up unicorn butts. I don't have a problem with immigrants but we must build housing to meet demand.

comment 8y ago · link · parent

Whataboutism is a powerful disease of modern discourse. Pretty soon we will start letting killers go because John Wayne Gacy and Jeffrey Dahmer killed more people.

I think it arises from a misguided attempt at calling out hypocrisy, but the result is a race to the bottom where any other example negates any criticism. Nobody is perfect so if you have to be perfect to criticize no criticism is possible.

comment 8y ago · link · parent

I ended up starting my own so meh.

https://zerotier.com/

comment 8y ago · link · parent

ISPs are a natural monopoly unless you want this in your neighborhood:

https://news.lovepattayathailand.com/wp-content/uploads/2017...

I also must point out that fighting a patchwork of local regulations is more expensive than building out the actual infrastructure. It's a slog through political and bureaucratic molasses.

comment 8y ago · link · parent

It's a devil's bargain. In the long term it means that innovation is restricted, massive taxes are levied, and peoples' livelihoods are captive to the whims of the Apple App Store.

The times I've dealt with the App Store have horrified me. The US Internal Revenue Service is more responsive and has superior customer service. I am not exaggerating. We've had apps approved then denied requiring appeal on later minor updates because some reviewer spotted something and checked a box. We had to appeal to get past that, and the whole thing has a very arbitrary feel to it. Your software is at the whim of something resembling a Terry Gilliam bureaucratic dystopia.

comment 8y ago · link · parent

This sort of thing is why I will not buy an iOS device. They're nice pieces of hardware but I refuse to support their model of complete lock-down.

The double standard is kind of funny. There is no way Microsoft or even Google could ever have gotten away with this, but for some reason everyone swallows total device vendor lock-down when it comes from Apple.

comment 8y ago · link · parent

Part of the problem in my mind is that most high speed Internet in the USA is provided by companies that have a vested interest in sabotaging the Internet and thus have a conflict of interest. They'd love to see something like the old TV cable model where customers have a small set of choices that must pay to play.

comment 8y ago · link · parent

I've been programming since BASIC on a VIC-20 sometime around age 6. I can code in like 10 languages and have written everything from crypto and network protocols to distributed systems, database sync engines, and high throughput video compression/decompression codecs.

I always fail whiteboard interviews. I can't code at all on a whiteboard.

comment 8y ago · link · parent

I ascribe this to a lack of understanding of how Internet protocols work and how the Internet works in general. Non-technical people tend to see the Internet as its services -- Facebook, Netflix, etc. -- and don't understand that protocol and traffic selectivity will have a massively chilling effect on the ability to innovate beyond those services.

comment 8y ago · link · parent

I'm curious about this. Are you saying that relying on storage latency and volume is energetically cheaper than relying on compute?

I see a few flaws in this. First of all: all fast storage media consume energy even when idle. Secondly I think this neglects the embodied energy (energy to manufacture) of storage media. Lastly if a proof of storage mining scheme became popular you'd probably see ASICs that incorporate onboard fast memory controllers with huge caches and other approaches that would improve performance to the point that this would just become another proof of work.

Comparing full life cycle energy of different approaches to securing a cryptocurrency is actually pretty tough. It's also pretty hard to compare it to the energy requirements of more conventional approaches to currency since the energy cost of those is so spread out across society.

comment 8y ago · link · parent

Yes I have considered that. It didn't exist in 2010 so it's worth taking a look. It already does some of what we want, but the devil is in the details.

Noise also did not exist in 2010. The cryptographic world is so much richer today than it was even 8 years ago. When I think back to the crypto dark ages I shudder.

comment 8y ago · link · parent

Not in 1.2. This is planned for 1.4. It's fairly prominent in the manual.

It was left out of the original design since ephemeral negotiation means state and therefore latency and stalls if packets are dropped. The present design leaves it out as part of a design that prioritizes instantaneous connectivity.

When we do add it we will probably add a network level config option to select whether forward secrecy is required. If it's off it will work instantly and then lazily upgrade. If this option is on it will wait.

As I said though I don't see network level (L2/L3) encryption as being worth much more than whole disk encryption. Each really secure thing should have it's own secure authenticated session that would be secure enough over the open Internet. That way a network compromise or trojan is not instantly fatal. We pretty much tell everyone this.

comment 8y ago · link · parent

An identity is a public key. An address is a hash of that public key. Key agreement is just SHA512(Curve25519(my secret + your public)). Public keys are looked up from addresses via "upstream" nodes by the sender. An upstream node is typically one of our root servers unless someone has added their own.

Crypto here is fairly dirt simple as I said. It's just ECDH with two Curve25519 keys and then go.

The moons/worlds stuff is just some odd terminology for how to define upstream nodes. We are dumping that in favor of something more straightforward in the future. Most users don't need to care about it.

I'd like to avoid GCM but we also may have a need for FIPS compliance in the future. Yes I know that FIPS basically mandates weaker crypto... or at least crypto that is easier to implement wrong... but if it's not FIPS it isn't "enterprise" to some (clueless) people. Then you have organizations mandated to use FIPS crypto by forces beyond their control.

comment 8y ago · link · parent

I have two issues with PoS that I've never seen addressed?

(1) Isn't it Plutocratic? PoW can be too in that capital and energy costs money, but PoS seems to directly reward the largest stakeholders with more stake.

(2) Removing money from circulation is not free. It reduces monetary velocity and has other detrimental effects on the currency's economic system.

comment 8y ago · link · parent

I am the primary maintainer. :)

A minimal implementation could be much shorter, but the ref implementation is not minimal and includes a lot of features that go far beyond the scope of WireGuard.

Salsa20/12 is standard and according to the docs is considered secure. I recall that DJB initially specified the cipher with 12 rounds but added 8 more for margin. There are Salsa20/12 implementations in many crypto libraries. The best public cryptanalysis on Salsa breaks 8/20 rounds with a time difficulty of 2^251.

Personally I think concern over algorithm strength is usually misplaced as long as you're using an algorithm that is not known to be very weak (e.g. DES, RC4). Halfway decent cryptographic algorithms are almost never broken. Implementations and protocols are broken all the time.

One thing we did to guard against protocol issues was to implement what DJB calls "boring crypto." The cryptographic encapsulation is dirt simple Salsa20+Poly1305 constructed exactly as in the NaCl secret box functions, and nothing more. We've resisted adding more advanced features to the cryptographic layer because so far they haven't really been necessary and the risk is not worth the small benefit they may have.

At the time this was designed (started in 2010) Salsa20/12 was the best option to achieve high performance across a variety of devices including ARM phones and slow VMs with a clean and small code base. If it were written today it would probably use ChaCha20 (faster) or AES-GCM since almost everything worth mentioning has hardware AES now. We will likely rev the crypto at some point but would also like to upgrade the asymmetric cipher as well. Waiting to see if the Goldilocks curves (curve448) get added to the NIST standard. They are proposed but not yet approved. If they are we'd probably go to curve448+AES256-GCM with a longer IV.

That being said we're not solely oriented toward crypto and generally tell our users not to rely on network crypto as their only line of defense. Network crypto is sort of analogous to hard drive encryption. It protects you from people who don't have access to anything, but won't save you once someone gets any access beyond the perimeter. We advocate the use of encryption and authentication within networks as well if you care about security. This also guards against the discovery of a bug in any layer-- if someone breaks one layer they are confronted by another layer.

An RFC-style write-up has been on the to-do list forever, but the to-do list is very long.

comment 8y ago · link · parent

No RFC-type document yet but quite a bit of commenting here:

https://github.com/zerotier/ZeroTierOne/blob/master/node/Pac...

There is also a higher-level description of the entire system here:

https://www.zerotier.com/manual.shtml

ZeroTier solves a broader set of problems than WireGuard and has SDN-type network flow rules, security tap capability, and is a full L2 emulation layer with support for multicast.

From what I've seen the WireGuard protocols are excellent and the implementation is very nice and clean. A core ZeroTier implementation to support a simple L3 VPN use case could be as short as WireGuard but that would be without all the rules engine, multicast, etc. stuff.

comment 8y ago · link · parent

They will just move it all offshore.

comment 8y ago · link · parent

What's hyperbole? I heard all this predicted when smart phones came out, and people said it was paranoid hyperbole then. It wasn't.

If anything the parent's predictions are probably conservative.

comment 8y ago · link · parent

Do it on the dark web.

comment 8y ago · link · parent

... but you don't have 10.* to yourself.

I've seen many cases where companies were bought, merged, or linked to other companies and had to put complicated NATs in place to translate org A's 10.* addresses to/from org B's overlapping 10.* addresses.

Then you have the problem of connecting to a VPN for 10.10.0.0/16 from a coffee shop with 10.10.0.1 as its router.

comment 8y ago · link · parent

Secure hosts would be nice. I always say that VPNs and even firewalls are a band-aid. The problem is that the world is overrun with insecure legacy software and insecure-by-design new software that assumes it to always be running on a "secure network." This includes tons of database and orchestration software that has little or no authentication or where authentication is an obvious afterthought.

comment 8y ago · link · parent

Is proof of space actually "greener" than proof of work? Memory and hard drives consume power, and querying them consumes power. Seems like it could be just another kind of work. It would be more ASIC resistant though.

comment 8y ago · link · parent

This seems like a thoroughly thought out version of a DAG (directed acyclic graph) based currency. I don't have time to go through it with a fine toothed comb, but I'm curious about others' reactions.

There are well known problems with DAGs: lack of incentive to run full nodes, tip choice attacks, flooding/spam attacks if there are no fees, and many and varied types of Sybil attacks.

For flooding or spam a transaction proof of work isn't enough. Not only does it "waste" a lot of energy (though at the edge nodes where it's less visible than mining farms) which negates part of the purported benefit of a DAG, but it's vulnerable to ASICs or botnets. If you can short a cryptocurrency on any major exchange that supports short selling then it will get attacked with the goal not of stealing coins or censoring transactions but of just destroying it.

Tip choice attacks combined with Sybil attacks can be very sophisticated. Tip choice is "random" but randomness cannot be verified. 3, 18, 593, 3, 3, now prove those were not random numbers modulus 1024. You can't of course. So I can non-randomly choose the transactions I link to. If I combine this with some sophisticated analysis of the network's transaction structure and physical topology I might be able to skew the network in some disastrous way over time in ways that would be completely undetectable since my apparently "random" tip/link choices were not in fact random. Then I can do something like short the coin and do something nasty to the network.

Attackers can be very very creative, and attacks only get better.

Last but not least: there is no mining mechanism in a DAG coin, or at least I've never heard of how one could be done. This means DAG coins are "Big Bang" coins that begin with all the money that will ever exist. This is problematic from an economic point of view and opens a huge can of worms around what is done with that money and how it is distributed to initial holders.

1
387388389
596