Re:Show HN: Wag, MFA and Enrollment for WireGuard
by ta1243 on Sunday May 12, 2024 @12:39PM
(#40335716)
The problem I've seen when I've looked at this is signalling to the user that the session has ended. Sure your EBF filter stops passing traffic, but the user as to know that they need to visit a page to reauthenticate
That requires integration with a client, which is a massive pain to integrate
Re:Show HN: Wag, MFA and Enrollment for WireGuard
by hnarn on Monday May 13, 2024 @02:48AM
(#40340404)
It sounds like upon expiry, you could redirect all 80/443 traffic to the same node, serving an error page. In my mind, that's better than having to install a client.
To answer your last question, eBPF XDP which is what I use can only do PASS, DROP or REDIRECT. So I stick with the easiest possible outcome and do PASS/DROP, which means your connections will just stop working.
However you can always set up the detection yourself by adding the captive portal detection pages to your wag MFA list then the browser should do everything else for you.
Unfortunately doing interception or acting like a proxy isnt something Im looking to do with wag (which makes authorisation timeout/logout a bit easier to deal with)
Hope that answers things!