Integration of WireGuard to UserManager

I have been looking for information and investigating.

I already have a functional Scritp that controls the consumption of a WireGuard peer with the functionality of suspension due to time or traffic consumption, very similar to UserManager with L2TP.

It would be very useful if the RouterOS Development Group integrated this functionality from the UserManager to control users in terms of time and transfer in sales of VPN services.

I leave you some screenshots of the service working.

It uses:

  • Peers WireGuard
  • Brigue
  • Mangrove
  • Scheduler
    -Scritp
    Scheduler.png
    mangle.png
    Peers.png
    Interfaz.png
    Brigue.png

if the router reboots what happens?

It does not matter if the Router restarts, the traffic and time counting continues.

Impressive you got something working here! Another poster was trying to use Hotspot+WG to do this (http://forum.mikrotik.com/t/use-mikrotiks-hotspot-solution-to-unblock-wireguard/174364/1) and that approach didn’t work out so well it seems…

But +1 - MT should have some way to directly integrate User Manager into WireGuard. I’d add ideally combined with the self-hosting the BTH proxy, so service providers can offer a “Back to Work” feature with WG+RADIUS+proxy.

I’ve been reading the post you shared with me. From what I have analyzed, the Engineer needs to control WireGuard in some way through HotSpot, even if he fails in this aspect, it is not possible. Mikrotik apparently completely separated the WireGuard protocol from all those previously implemented on Radius and UserManager.

It is for this reason that I implemented the current variant.

The ideal is for Mikrotik to implement both WireGuard and Zerotier, the administration of its users using Radius and UserManager and not keep it separate in the end, they are all VPN protocols.