I'm trying to build a Hub and Spoke Construction (as you can see in the Picture).
Now following works:
- WireGuard is connecting from Clients to Server
- I can Ping the Server-Addresses with the Clients and so on.
- ONE Client is connecting to the Server with OSPF (as a Neighbor, State: Full).
- The Routing Server-Client / Client-Server works to this one Client, wich is shown as Neighbor (State: Full).
What not works:
- The other Clients do not connect to OSPF of the Server-Router
My Configs (just WireGuard & OSPF):
Server-Router:
Code: Select all
/routing id
add disabled=no id=192.168.250.254 name=id-1 select-dynamic-id=""
/routing ospf instance
add disabled=no name=ospf-instance-1 router-id=id-1
/routing ospf area
add disabled=no instance=ospf-instance-1 name=backbone
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface list member
add interface=Internet list=WAN
add interface=VisuLAN list=LAN
add interface="PEWO VPN" list=LAN
add interface=loopback list=LAN
/interface wireguard peers
add allowed-address=192.168.251.2/32,172.17.2.0/24,224.0.0.0/24,192.168.250.0/24 comment="VPN002 Zuerich Gruenau Tiefgarage" interface="PEWO VPN" \
persistent-keepalive=15s public-key="***********************="
add allowed-address=192.168.251.1/32,172.17.1.0/24,224.0.0.0/24,192.168.250.0/24 comment="VPN001 TestRouter" interface="PEWO VPN" persistent-keepalive=15s public-key=\
"***************************="
/ip route
add disabled=no distance=1 dst-address=10.10.0.0/24 gateway=10.10.0.1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=20 dst-address=0.0.0.0/0 gateway=172.31.1.1%Internet pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
/routing ospf interface-template
add area=backbone disabled=no interfaces="PEWO VPN" networks=192.168.251.0/24 type=ptp
add area=backbone disabled=no interfaces=VisuLAN networks=10.10.0.0/16 passive type=ptp
add area=backbone disabled=no interfaces=loopback networks=192.168.250.254/32 type=ptp
/routing ospf static-neighbor
add address="192.168.251.1%PEWO VPN" area=backbone disabled=no
add address="192.168.251.2%PEWO VPN" area=backbone disabled=no
Client-Router Client 1 (the others are similar, with Changed IP-Addresses):
Code: Select all
/routing id
add disabled=no id=192.168.250.1 name=id-1 select-dynamic-id=""
/routing ospf instance
add disabled=no name=ospf-instance-1 router-id=id-1
/routing ospf area
add disabled=no instance=ospf-instance-1 name=backbone
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add interface=ether1 list=WAN
add interface="PEWO VPN001" list=LAN
add interface=loopback list=LAN
/interface wireguard peers
add allowed-address=192.168.251.254/32,10.10.0.0/16,224.0.0.0/24,192.168.250.0/24 \
endpoint-address=SERVER-IP endpoint-port=PORT interface="PEWO VPN001" \
persistent-keepalive=15s public-key="***********************="
/ip address
add address=172.17.1.1/24 comment=defconf interface=bridge network=172.17.1.0
add address=192.168.250.1 interface=loopback network=192.168.250.1
add address=192.168.251.1/24 interface="PEWO VPN001" network=192.168.251.0
/routing ospf interface-template
add area=backbone disabled=no interfaces="PEWO VPN001" networks=192.168.251.0/24 type=ptp
add area=backbone disabled=no interfaces=bridge networks=172.17.1.0/24 passive type=ptp
add area=backbone disabled=no interfaces=loopback networks=192.168.250.1/32 type=ptp
/routing ospf static-neighbor
add address="192.168.251.254%PEWO VPN001" area=backbone disabled=no
Thank you all for Helping!