I configured Wireguard between two Mikrotik routers:
Router-A:
CCR2004-1G-2XS-PCIe v7.15.2
To access the Internet, a pppoe connection and a static IP address are used.
Code: Select all
/interface wireguard
add comment=Router-B listen-port=52203 mtu=1420 name=wireguard203
/interface wireguard peers
add allowed-address=10.0.203.1/32,224.0.0.5/32 endpoint-address=\
Router-В_ip endpoint-port=52203 interface=wireguard203 name=Router-В \
persistent-keepalive=25s preshared-key=\
"preshared-key" public-key=\
"public-key"
/ip address
add address=10.0.203.2/30 comment=Router-B interface=wireguard203 network=\
10.0.203.0
RB450Gx4 v7.15.2
To access the Internet, an IPoE connection and a static IP address are used.
Code: Select all
/interface wireguard
add comment=Router-А listen-port=52203 mtu=1420 name=wireguard203
/interface wireguard peers
add allowed-address=10.0.203.2/32,224.0.0.5/32 interface=wireguard203 \
is-responder=yes name=Router-А persistent-keepalive=25s \
preshared-key="preshared-key=" private-key=\
"private-key" public-key=\
"public-key="
/ip firewall filter
add action=accept chain=input comment=Router-A dst-port=52203 protocol=\
udp
The problems start after rebooting Router-A, solution: change the port from 52203 to any other, for example 52204, but after reboot it doesn’t work again until you change the port.
Has anyone had this problem?
Why might this happen?