Community discussions

MikroTik App
 
User avatar
ROCCAT
just joined
Topic Author
Posts: 9
Joined: Fri Sep 15, 2023 11:11 pm
Location: Havana

Integration of WireGuard to UserManager

Fri Oct 11, 2024 9:27 am

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
You do not have the required permissions to view the files attached to this post.
 
User avatar
abbio90
Member
Member
Posts: 441
Joined: Fri Aug 27, 2021 9:16 pm
Location: Oristano
Contact:

Re: Integration of WireGuard to UserManager

Mon Oct 28, 2024 10:51 am

if the router reboots what happens?
 
User avatar
ROCCAT
just joined
Topic Author
Posts: 9
Joined: Fri Sep 15, 2023 11:11 pm
Location: Havana

Re: Integration of WireGuard to UserManager

Tue Nov 26, 2024 3:09 am

if the router reboots what happens?
It does not matter if the Router restarts, the traffic and time counting continues.
Last edited by ROCCAT on Tue Nov 26, 2024 5:03 am, edited 1 time in total.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4276
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: Integration of WireGuard to UserManager

Tue Nov 26, 2024 4:02 am

Impressive you got something working here! Another poster was trying to use Hotspot+WG to do this (viewtopic.php?t=205625&hilit=hotspot) 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.
 
User avatar
ROCCAT
just joined
Topic Author
Posts: 9
Joined: Fri Sep 15, 2023 11:11 pm
Location: Havana

Re: Integration of WireGuard to UserManager

Tue Nov 26, 2024 5:13 am

Impressive you got something working here! Another poster was trying to use Hotspot+WG to do this (viewtopic.php?t=205625&hilit=hotspot) 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.

Who is online

Users browsing this forum: No registered users and 1 guest