News for hackers. Stuff that matters.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by GABeech on Friday January 31, 2020 @02:18PM (#22204632)
Wireguard needs to put actual logging into the product before anyone should consider using it in production.

I have to deal with it via a vendors product and have spend about 4 weeks in the past 6 months trying to fix a flaky connection by guessing and restarting a lot. Just like anything things will go wrong. But, with wireguard you have no idea what it could even be if it's not an obvious thing that you can diagnose with ping.

Re:Ubuntu 20.04 LTS Adds WireGuard Support by zx2c4 on Friday January 31, 2020 @04:42PM (#22206105)
> Wireguard needs to put actual logging into the product before anyone should consider using it in production.

The kernel already has this:

    # modprobe wireguard && echo module wireguard +p > /sys/kernel/debug/dynamic_debug/control
Then you'll get useful messages in your syslog.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by big_chungus on Friday January 31, 2020 @03:25PM (#22205282)
Wireguard also needs a better auth mechanism. I really like the simple secure key-based auth for small-scale stuff, but it's not viable for scaling at production levels. Things like user/pass auth (even if as an additional layer of security rather than displacing existing keys), 2FA, etc. will be important to get adoption at scale. I hope wireguard creates a module interface of sorts so people can extend the protocol as needed.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by XMPPwocky on Friday January 31, 2020 @04:13PM (#22205809)
No, I don't think it does.

The thing about simple, key-based authentication is that it's very extensible, without changing the actual protocol.

What?

Well, what Wireguard's auth actually means is that you can use whatever authentication you want to communicate a shared secret to both ends.

Want to authenticate with, say, SSH keys? Sure- SSH into a server, run a command that generates a new Wireguard key, connect in with that key.

LDAP? Same situation. Whatever SSO you want- as long as you can stick up authentication in front of a service that's able to pull bits from /dev/urandom. Multifactor? Sure.

Wireguard does one thing well. What's missing is not features in Wireguard- it's the ecosystem around it to actually handle key management. For enterprises, Hashicorp Vault or something should probably look into supporting Wireguard; for smaller situations, some SSH-based key exchange, like the way Mosh handles things, seems reasonable.

Complex, pluggable authentication is sometimes necessary...but you want as few implementations of it as possible, and you sure don't want it in the kernel if you can help it.

Re:Ubuntu 20.04 LTS Adds WireGuard Support by Spivak on Friday January 31, 2020 @11:12PM (#22208601)
The problem is that a Wireguard key isn't a session token -- it isn't revoked when the connection ends or goes idle. It's more like an authorized SSH key which in most environments meets the bar for 1FA even if it requires 2FA to set up the key.

WG has the concept of sessions already, the only change would be allowing a process in userspace to instrument the sessions directly without going through the key system.

The the default key-routing system would be just one method of issuing and managing sessions making the core protocol even simpler!

Re:Ubuntu 20.04 LTS Adds WireGuard Support by labawi on Sunday February 02, 2020 @01:25PM (#22218413)
By sessions, do you mean the key agreement/initiation protocol, that is re-run every 2 or so minutes (with the keys having moderately overlapping validity)?
Re:Ubuntu 20.04 LTS Adds WireGuard Support by yardstick on Friday January 31, 2020 @05:25PM (#22206550)
The problem is lots of organisations in the financial and medical worlds need 2FA. WireGuard needs a 2FA solution - It doesn’t have to be kernel based - but it does need to protect against someone grabbing a copy of the single factor auth in WireGuard (keypair). A solution that rotates/manages/provisions/etc these keypairs is still fundamentally single factor auth of the tunnel.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by XMPPwocky on Friday January 31, 2020 @06:59PM (#22207285)
> WireGuard needs a 2FA solution - It doesn’t have to be kernel based - but it does need to protect against someone grabbing a copy of the single factor auth in WireGuard (keypair).

By this standard, no website supports 2FA- ultimately it's just a cookie that's used to authenticate requests, even though to get that cookie you may have to go through 2FA. Nothing prevents an attacker from just grabbing the session cookies.

In fact, I doubt any VPN supports 2FA by this definition- it would mean requiring authentication on every packet. Instead, of course, what you do is do authentication once, when setting up a tunnel, and then use bearer tokens from then on.

Re:Ubuntu 20.04 LTS Adds WireGuard Support by yardstick on Saturday February 01, 2020 @07:54AM (#22210243)
The session info in a browser is not persisted on disk as a long term config file that’s easy to copy and duplicate. Having a session key only ever exist in memory is completely different to storing WireGuard keys on a filesystem.

Edit: Also OpenVPN, which is the tool I’m comparing it with, only ever has session keys in memory. The 2FA part (password+OTP) isn’t saved by OpenVPN.

Re:Ubuntu 20.04 LTS Adds WireGuard Support by labawi on Sunday February 02, 2020 @01:29PM (#22218432)
Typical session tokens shouldn't be valid for days, months or even years, unlike a straightforward wireguard setup.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by tptacek on Friday January 31, 2020 @05:32PM (#22206608)
Nobody is arguing that there shouldn't be IdP-based WireGuard management systems. The point is that they are out of scope for the WireGuard project itself. WireGuard has an extremely straightforward configuration interface; if Okta wanted to manage WireGuard, they'd likely have no problem doing it.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by yardstick on Friday January 31, 2020 @05:40PM (#22206661)
Is there any decent open source 2FA / IdP management systems at the moment that work with WireGuard?
Re:Ubuntu 20.04 LTS Adds WireGuard Support by marsokod on Sunday February 02, 2020 @10:40AM (#22217365)
There are some attempts like subspace: https://github.com/subspacecloud/subspace but I have not found anything stable yet.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by ficklepickle on Saturday February 01, 2020 @03:12AM (#22209387)
It has just landed in one distro. If there isn't yet, there certainly will be.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by yardstick on Saturday February 01, 2020 @07:56AM (#22210256)
You don’t need a distro for this, and WireGuard has been available and in use for several years. So in that time has anyone developed a practical 2FA solution that is compatible with it?
Re:Ubuntu 20.04 LTS Adds WireGuard Support by tptacek on Saturday February 01, 2020 @09:50PM (#22214834)
People have. I'm unaware of any published. It's not hard. Implementing a new IdP-integrated WireGuard authorizer is probably easier than understanding IPSEC or OpenVPN in sufficient detail to secure it.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by pa7ch on Friday January 31, 2020 @04:12PM (#22205803)
Wireguard doesn't need to change at the protocol level to add those features and I think thats the point. Userspace programs can be written to fetch keys from a server based on SSO or w/e.
Re:Ubuntu 20.04 LTS Adds WireGuard Support by jrockway on Friday January 31, 2020 @06:03PM (#22206864)
I think you might like something like Tailscale: https://tailscale.com/
Re:Ubuntu 20.04 LTS Adds WireGuard Support by big_chungus on Friday January 31, 2020 @07:50PM (#22207635)
It looks quite good, but I don't see any information on:

1. Is it open-source?

2. When am I going to see the "you have to pay us now" screen, and how much will it cost? I realize it's a business and am fine with that, but want to know what I'm spending before setting stuff up.

Re:Ubuntu 20.04 LTS Adds WireGuard Support by jrockway on Friday January 31, 2020 @08:11PM (#22207768)
I am not affiliated with Tailscale, I merely know that it exists. You should ask them the questions for an authoritative answer.