News for hackers. Stuff that matters.
Re:WireGuard Gives Linux a Faster, More Secure VPN by cpach on Monday March 02, 2020 @02:42PM (#22468070)
Out of curiosity, what is the use case for doing VPN at layer 2?
Re:WireGuard Gives Linux a Faster, More Secure VPN by linsomniac on Monday March 02, 2020 @04:52PM (#22469446)
Pretty much every time I do a migration from one data center or office migration I set up an OpenVPN that bridges the network segments at the two locations. It makes the move so much easier.

Once set up, I can shut down a machine at one location, move it, bring it back up, and it's back in business. There are situations where we might want to migrate to new machines during the move, which this makes no harder. But for many things it makes them easier.

For example, the last move went something like this: Set up the VPN+bridge. Move half the application servers. Set up new firewall/load balancer since we were replacing the old ones. Test the new fw/lb. Physically move the primary database server during a maintenance window and switch over to the new fw/lb. If there were problems, just switch back to the old one via DNS record changes (TTL was lowered weeks earlier). Move the remaining app servers. During the bridging setup, the LBs preferred the local app servers.

Re:WireGuard Gives Linux a Faster, More Secure VPN by Rapzid on Tuesday March 03, 2020 @09:06PM (#22480614)
It's been a while since I've worked with linux networking. I would have thought it would give you a VIF in some form or fashion that you could attach to a bridge. Is that not the case?

EDIT: *and proxy arp requests through

Re:WireGuard Gives Linux a Faster, More Secure VPN by linsomniac on Tuesday March 03, 2020 @10:16PM (#22480916)
By "it" do you mean Wireguard? I haven't used it, but you need a special type of virtual interface for bridging, a tap device can do it, a tun cannot. From some searches, Wireguard doesn't support operating on a bridge. OpenVPN, which is what I've used in the past, supports both tun and tap interfaces.
Re:WireGuard Gives Linux a Faster, More Secure VPN by lapinot on Monday March 02, 2020 @04:35PM (#22469290)
Also icmp, ipv6 brings a lot of new things to the table in that realm. I already said it above, but the neighbor discovery protocol is quite useful to do dynamic in-band configuration. icmp is over ip, but it's not useful if the ip link is already managed by the tunnel protocol.
Re:WireGuard Gives Linux a Faster, More Secure VPN by api on Monday March 02, 2020 @03:19PM (#22468466)
Someone else said broadcast/multicast, so I'll also add communication with legacy systems that don't speak IP or have other wacky requirements. These do exist in industrial and embedded settings. It's a niche use case but it's very useful there.
Re:WireGuard Gives Linux a Faster, More Secure VPN by beached_whale on Monday March 02, 2020 @03:40PM (#22468693)
I suspect Novel/IPX is still out there
Re:WireGuard Gives Linux a Faster, More Secure VPN by api on Monday March 02, 2020 @03:48PM (#22468781)
Yes, and more. Check out what runs on factory floors sometime. There's stuff that speaks naked Ethernet, as in you type the MAC of the machine into the application. There's also stuff that speaks CANbus over Ethernet without IP in the middle.
Re:WireGuard Gives Linux a Faster, More Secure VPN by blattimwind on Monday March 02, 2020 @04:58PM (#22469482)
Raw ethernet is nice because you can't send ethernet frames from a web browser.
Re:WireGuard Gives Linux a Faster, More Secure VPN by cpach on Monday March 02, 2020 @03:56PM (#22468891)
Wow. Had no idea. Fascinating!
Re:WireGuard Gives Linux a Faster, More Secure VPN by waste_monk on Monday March 02, 2020 @10:39PM (#22471583)
I went through training on it back in 2012 - apparently it (at least at the time, not sure about now) was dominant in the australian mining industry, so the larger tertiary education providers were requested to at least familiarise students with it.

It was a strange beast but there were a few odd spots it was better than active directory - e.g. an "Organizational Role" could be created and have a user assigned to it, so you could more easily seperate the user (john smith) from their position and the permissions that go with it (finance director). So when john smith retires it is trivial to replace the occupant of the finance director organisational role.

Re:WireGuard Gives Linux a Faster, More Secure VPN by hunter2_ on Tuesday March 03, 2020 @01:25AM (#22472284)
I've always wondered why we don't use that as our subject for all sorts of business needs. I'm talking about normal employee-to-employee business in addition to more technical things like security groups and so forth. Don't email Karen, email [whatever her role is], at least for official requests pertaining explicitly to defined job responsibilities.

That way the sender doesn't get delayed by unknown turnover, and the new recipient has full history to look back upon instead of starting cold.

Re:WireGuard Gives Linux a Faster, More Secure VPN by kortilla on Monday March 02, 2020 @02:46PM (#22468125)
Broadcast/multicast propagation.
Re:WireGuard Gives Linux a Faster, More Secure VPN by rattray on Monday March 02, 2020 @03:04PM (#22468326)
Can you say more to explain the utility of this to those unfamiliar with networking?
Re:WireGuard Gives Linux a Faster, More Secure VPN by pathseeker on Monday March 02, 2020 @03:36PM (#22468644)
Many device discovery protocols work by sending out broadcast or multicast packets (either to announce themselves to devices who might be listening or to request devices to send them data). These packets are expected to go out to either everyone on the same layer-2 network (the broadcast case) or everyone who has subscribed to a particular multicast address (the multicast case).

In addition to device discovery, these are frequently used for heartbeat messages to indicate that you are still alive (for high-availability protocols like VRRP).

Re:WireGuard Gives Linux a Faster, More Secure VPN by rattray on Monday March 02, 2020 @09:01PM (#22471183)
Thanks! That's helpful/interesting and makes sense
Re:WireGuard Gives Linux a Faster, More Secure VPN by thayne on Tuesday March 03, 2020 @12:24AM (#22472042)
One common use case is multicast DNS (https://en.wikipedia.org/wiki/Multicast_DNS) which uses multicast for individual hosts to publish services available on them to other hosts on the network without needing a dedicated DNS server.
Re:WireGuard Gives Linux a Faster, More Secure VPN by nightfly on Monday March 02, 2020 @03:21PM (#22468484)
You can send data to N hosts by only sending it once, rather than N times.