News for hackers. Stuff that matters.
Re:WireGuard Gives Linux a Faster, More Secure VPN by api on Monday March 02, 2020 @03:18PM (#22468459)
Substituting MAC for IP address is exactly what ZeroTier does. MACs can't be spoofed, though nodes can be designated as bridges and that allows them to impersonate MACs.

There's still the issue of authenticating IPv4 IPs though, which are too small to embed anything useful into. ZeroTier has a certificate system for that but it requires the use of the rules engine to enable it.

Re:WireGuard Gives Linux a Faster, More Secure VPN by ffk on Monday March 02, 2020 @09:23PM (#22471281)
MACs can be spoofed. There are entire companies which begin their sales pitch with "So, I can poison the ARP cache to take over your DNS in your Kubernetes Cluster" due to the NET_RAW capability required to respond to ICMP (ping). :)

You'll want to use a crypto based identity if you want to ensure spoofing isn't occurring. Even then, you can still be DOSed by a malicious actor. Tools like eBPF may be able to help here by filtering out source MAC addresses that don't match the source interface's hwaddr.

edit: Sorry, I didn't read this comment properly. In ZeroTier I can believe that they cannot be spoofed across the VPN due to relying on a cryptographic hash. :)

Re:WireGuard Gives Linux a Faster, More Secure VPN by rstuart4133 on Tuesday March 03, 2020 @05:54PM (#22479515)
You've made me look at ZeroTier. It's a bit of a shame you are being down voted because ZeroTier looks to be original, clever, and open source.

Your down voting is caused by you used the word MAC without defining what it is, so naturally people think it's a "Media Access Control Address", or a "Message Authentication Code", but it's far more complex than either. It is an address so it does perform the same function as a "Media Access Control Address", but [0] says it is "computed from the public portion of a public/private key pair. A node’s address, public key, and private key together form its identity.", and uses proof of work to prevent forgeries. Thus your statement that "MACs can't be spoofed" is correct, or at least is unless someone breaks it. The "proof of work" bit did cause an eyebrow to rise, as it is vulnerable to exponentiation drops in the price of computing.

For those still reading, my (very brief) look at ZeroTier is it does far more than IPSec / Wireguard - it solves the internet scale routing problem in it's own way, address spoofing and a number of things as well. It's undoubtedly far simpler to use than Wireguard or OpenVPN, as routing with those protocols in large networks is a complete PITA. It treats IP rather like IP treats Ethernet - as a fabric it runs on top of that unlike Ethernet connects most nodes on the planet. For nodes that aren't fully connected (like those behind a NAT, it creates paths (ie, does routing), and if multiple paths are available uses several concurrently to get the best throughput.

[0] is well worth a look if you are curious about such things. I am going to take a much closer look when I get time.

[0] https://www.zerotier.com/manual/

Re:WireGuard Gives Linux a Faster, More Secure VPN by alanpca on Monday March 02, 2020 @05:29PM (#22469745)
Can you not set your MAC to whatever you want on many platforms?
Re:WireGuard Gives Linux a Faster, More Secure VPN by nightfly on Monday March 02, 2020 @05:47PM (#22469915)
I think they're implying that MACs are authenticated the same way IP addresses are authenticated with Wireguard (you can say "only 52:54:00:7a:cc:dd can talk over this connection").
Re:WireGuard Gives Linux a Faster, More Secure VPN by AceJohnny2 on Monday March 02, 2020 @05:34PM (#22469787)
> MACs can't be spoofed

lol

20 years ago, in college, some folks in the dorm had fun fucking with others at the Ethernet level. Most of us only had experience with the IP level, so couldn't understand what was going on.

Re:WireGuard Gives Linux a Faster, More Secure VPN by swinglock on Monday March 02, 2020 @06:34PM (#22470282)
ZeroTier doesn't permit spoofed MACs unless explicitly configured.
Re:WireGuard Gives Linux a Faster, More Secure VPN by AceJohnny2 on Monday March 02, 2020 @06:41PM (#22470334)
and how can they tell?
Re:WireGuard Gives Linux a Faster, More Secure VPN by api on Monday March 02, 2020 @06:51PM (#22470404)
MACs are computed directly from cryptographic hashes. For normal ZeroTier P2P traffic the MAC and Ethernet header are elided entirely too, which saves about 14 bytes of per-frame overhead.
Re:WireGuard Gives Linux a Faster, More Secure VPN by AceJohnny2 on Monday March 02, 2020 @07:44PM (#22470728)
Wait, are we talking about MAC as in cryptographic Message Authentication Code, or MAC as in ethernet Medium Access Control (addresses)?
Re:WireGuard Gives Linux a Faster, More Secure VPN by api on Monday March 02, 2020 @08:20PM (#22470953)
MAC as in 48-bit Ethernet addresses.

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

There's a tiny chance of a collision, but for it to be meaningful you'd have to have a virtual LAN with millions of devices on it.