i have a CHR router, where i have created wireguard links to several mikrotik routers. Up to here works fine. The problem is when i try to run OSPF for routing networks behind router.
this is my setup in wireguard server:
Code: Select all
Wireguard server
/interface wireguard
add listen-port=14567 mtu=1420 name=WG-SRV
/interface wireguard peers
add allowed-address=10.129.200.2/32,10.107.14.0/24 comment=Libero interface=WG-SRV persistent-keepalive=30s public-key=\
"Kz3zip6JJDuKin7tRYipM5j/aW6ynRe3RoJGuFlW2E4="
add allowed-address=10.129.200.3/32,10.122.2.0/24 comment=M6 interface=WG-SRV persistent-keepalive=30s public-key=\
"kUR/r2ggqx1JAJYBVfmOnjxGzVzWuMqkvBli4kkCEHk="
/interface list
add name=LAN
/interface list member
add interface=WG-SRV list=LAN
/ip firewall filter
add action=accept chain=input comment="allow wireguard" dst-port=14567 protocol=udp
/ip address
add address=10.129.200.1/24 interface=WG-SRV network=10.129.200.0
OSPF Server
/routing ospf instance
add disabled=no name=default redistribute=connected,static,ospf router-id=10.107.13.1 routing-table=main
/routing ospf area
add disabled=no instance=default name=default
/routing ospf interface-template
add area=default auth=simple auth-key=twmn cost=5 disabled=no interfaces=WG-SRV networks=10.0.0.0/8 type=ptp
Code: Select all
Wireguard client 1
/interface wireguard
add listen-port=13231 mtu=1420 name=WG-AD110
/interface wireguard peers
add allowed-address=0.0.0.0/0 endpoint-address=xxxxxxx.sn.mynetname.net endpoint-port=14567 interface=\
WG-AD110 persistent-keepalive=25s public-key="3NgniWi9PX+uTaa/Kk/5/BzmuXPURaGeRmJrnEpcPyQ="
/interface list
add name=LAN
/interface list member
add interface=WG-AD110 list=LAN
OSPF client 1
/routing ospf instance
add disabled=no name=default redistribute=connected,static,ospf router-id=10.122.2.1 routing-table=main
/routing ospf area
add disabled=no instance=default name=default
/routing ospf interface-template
add area=default auth=simple auth-key=twmn cost=5 disabled=no interfaces=WG-AD110 networks=10.0.0.0/8 type=ptp