I've connected my mobile to WireGuard, but now I don't know what it's doing. It's not prompting me to log in or anything. This WireGuard connection only grants access to my network; that is, it has an "allow" range like 192.168.xxx.0/24, which is what I want it to access. How do I configure it so that when WireGuard connects, it prompts me to log in to the captive portal?
Sadly, dont see any examples out in the wild, that have explored the combination yet.
Trying search the forum and youtube for simply 2FA examples, and hotspot examples and then marry the two together via the MT documentation ( and perhaps the MT ai bot ).
I think I suspect what's happening...
In my case, I don't use a pool to connect via WireGuard; I usually assign myself a static IP address on the peer. I don't see WireGuard accepting IPs via DHCP; it forces me to create an IP address on the interface, and this is where the problem lies, I understand. The system isn't sending me to the hotspot and doesn't know how to notify the connected device that there's a portal. I try to open the browser, and it says it can't find anything... So, the hotspot isn't working in WireGuard!
I think I've found the problem; is it a bug?
I created WireGuard from scratch, and I created a specific one for testing. This WireGuard has the IP address 192.168.200.1/24. I created a peer without assigning it an IP address, but in the configuration, it assigns me an IP address that seems random: 192.168.177.2/32.
I created a hotspot using Hotspot Setup with the following interface:
/ip hotspot profile
add dns-name=rb4011.lan hotspot-address=192.168.200.1 name=hsprof1
/ip hotspot
add address-pool=hs-pool-21 disabled=no interface=WgDakHotSpot name=hotspot1 profile=hsprof1
/ip hotspot user
add name=admin
add name=Dakota server=hotspot1
When I connect, DHCP is supposed to assign me an IP address and launch the captive portal... but it doesn't assign an IP address or launch the portal!
I don't understand how to fix this. The documentation doesn't say anything about it; it just says to create WireGuard, create a hotspot, and that's it! But it's not like that.
It's incomplete and it doesn't work. They added the functionality, but it doesn't work.
Has anyone managed to get hotspot working with WireGuard?
I still can't get hotspot working with my WireGuard. I've tried it on a test Mikrotik router with no success. WireGuard works when I connect and it doesn't require a portal.