DHCP server not working

Hi everyone,

I’m trying to set up a specific WLAN SSID on my hAP ax² (running the latest stable routeros version: 7.15.3), with the intent to route connected stations traffic into a VPN tunnel. Here’s what I have done so far:

  • the wifi interface,
  • a bridge with the wifi interface attached to it, the bridge has IP 192.168.0.254/24
  • the wireguard VPN interface
  • a VRF, with the bridge and wireguard attached to it
  • routes for the VRF.

Tested with the ping tool from the bridge interface, routing through the VPN is working fine.

Problem is when trying to set up the DHCP server for the wifi clients. No matter how I try to configure it, manually or by using the setup tool, it never works.

Here is an extract of the configuration:

/interface bridge
add name=tunnelednetwork-netbr

/interface wireguard
add listen-port=13231 mtu=1420 name=tunnelednetwork-vpn

/interface wifi
add channel.reselect-interval=6h configuration=\
    tunnelednetwork-wifi-cfg configuration.mode=ap datapath.client-isolation=yes \
    disabled=no mac-address=xx:xx:xx:xx:xx:xx master-interface=wifi1 name=\
    tunnelednetwork-wifi50 security.connect-priority=0

/ip pool
add name=tunnelednetwork-dhcp-pool ranges=192.168.0.10-192.168.0.199

/ip vrf
add interfaces=tunnelednetwork-vpn,tunnelednetwork-netbr name=tunnelednetwork-vrf

/interface bridge port
add bridge=tunnelednetwork-netbr interface=tunnelednetwork-wifi50

/ip address
add address=192.168.0.254/24 interface=tunnelednetwork-netbr network=192.168.0.0

/ip dhcp-server
add address-pool=tunnelednetwork-dhcp-pool interface=tunnelednetwork-netbr name=tunnelednetwork-dhcp

/ip dhcp-server network
add address=192.168.0.0/24 dns-server=9.9.9.9,1.1.1.1 gateway=192.168.0.254

I have seen on this forum other people having problems with DHCP, did you find a workaround?

Thanks!