2 ms·
Wireguard isn't designed or set up to do that kind of authentication, it's basically the encryption and networking part of OpenVPN with none of the other fluff.
by jeroenhd 5y ago
Wireguard isn't designed or set up to do that kind of authentication, it's basically the encryption and networking part of OpenVPN with none of the other fluff. You tell it where to connect to with what key and how to deal with basic IP stuff and the rest is up to you.
To do what you'd require with 2FA, someone would need to write a front end for Wireguard that either reconfigures the public key for a session or uses one encrypted tunnel to connect, execute 2FA and then another to do the real connection part.
That quickly turns a simple VPN protocol into a complex management system for IP addresses and secrets, so it probably won't ever be part of any standard Wireguard tooling. I can see the business use case here, but as long as no business is willing to write such a tool and open source it, I don't think we'll see anything in this area soon.
- sandGorgon 5y agounderstood. I was just qualifying the request so that Firezone can add it. Quick question however - is there a plan to add any bindings to wireguard to make this stuff more easier to do? i might be wrong, but it seems from a few comments on these bugs that it is quite tricky to get Wireguard core to read from OpenSC encrypted storage, etc. I think there was an attempt to make a python library for this...but it was given up. Wireguard is definitely the most exciting tool in enterprise security, but its a bit hard to make it work with the existing ecosystem of tooling out there.