# model = RB952Ui-5ac2nD
# serial number =
/interface bridge
add name=bridge1
/interface list
add name=WAN
add name=LAN
/interface list member
add interface=ether1 list=WAN
add interface=wg1 list=WAN
add interface=bridge1 list=LAN
/ip pool
add name=bridge-pool ranges=192.168.88.2-192.168.88.254
/ip dhcp-server
add address-pool=bridge-pool interface=bridge1 name=bridge-server
/interface wireguard
add listen-port=62220 mtu=1420 name=wg1
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
etc.
/interface wireguard peers
add allowed-address=0.0.0.0/0 endpoint-address=XX.XX.XX.XX endpoint-port=51820 \
interface=wg1 name=peer1 preshared-key="=" private-key="-=" public-key="="
/ip address
add address=10.8.0.7/24 interface=wg1 network=10.8.0.0
add address=192.168.88.1/24 interface=bridge1 network=192.168.88.0
/ip dns
set allow-remote-requests=yes servers=1.1.1.1
/ip dhcp-server network
add address=192.168.88.0/24 dns-server=192.168.88.1 gateway=192.168.88.1
/ip dhcp-client
add interface=ether1 default route=yes peer-dns=yes
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
I did the config but still the mikrotik is not doing the handshaking. I can use the same wireguard configuration in other devices connected to the same network where the mikrotik gets the ip from and i can connect to the wireguard server successfully. here is the config:
# 2025-01-10 18:52:59 by RouterOS 7.16.2
# software id = U13N-3S1V
#
# model = RB952Ui-5ac2nD
# serial number =
/interface bridge
add name=bridge1
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
set [ find default-name=wlan2 ] disabled=no mode=ap-bridge ssid=MikroTik
/interface wireguard
add listen-port=51820 mtu=1420 name=wg1
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=bridge-pool ranges=192.168.88.2-192.168.88.254
/ip dhcp-server
add address-pool=bridge-pool interface=bridge1 name=bridge-server
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=wlan2
add bridge=bridge1 interface=wlan1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add interface=ether1 list=WAN
add interface=bridge1 list=LAN
add interface=wg1 list=WAN
/interface wireguard peers
add allowed-address=0.0.0.0/0 endpoint-address=66.179.XX.XX endpoint-port=\
51820 interface=wg1 name="VPN 66" persistent-keepalive=25s preshared-key=\
"+FRlZLci8s37J6Hv2kS3IfeTpAp6AJVX6o//287zc8w=" private-key=\
"aPulCKJTSxqdIZltXWROU9xQjPj7uErfbuqKhyTZHXc=" public-key=\
"iA1OmT/fKNfLeQyh5OrK04/qyfQBtW0wLpcRvJLi22w="
/ip address
add address=10.8.0.2/24 interface=wg1 network=10.8.0.0
add address=192.168.88.1/24 interface=bridge1 network=192.168.88.0
/ip dhcp-client
add interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 dns-server=192.168.88.1 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=1.1.1.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
/system clock
set time-zone-name=
/system note
set show-at-login=no