Hello
have probem with WireGurd, can find and explain, and it is strange.
RB3011, Wireguard server, Withpublic IP:
add comment=LoraGateways listen-port=56658 mtu=1420 name=wireguard2
/interface wireguard peers
add allowed-address=20.99.99.1/24 comment=“LoraGateway1” endpoint-port=56658 interface=wireguard2
is-responder=yes name=Lora1_Gateway persistent-keepalive=30s public-key=
“Q35lC4z6H9P8IlAwQNDIb81YaoKk2KZcHJf+41kNhBM=”
add allowed-address=20.99.99.4/24 comment=“LoraGateway4” endpoint-port=56658 interface=
wireguard2 is-responder=yes name=Lora4_Gateway persistent-keepalive=30s preshared-key=
“MJOA/fprZCthgz3WC0PeQWsN06s7JhXEN6q/oPLTl0o=” public-key=“Er5ohu9TAUQ5NZmvuGE5VN2hhYdI9xZLXhtCaYSPBxM=”
add allowed-address=20.99.99.2/24 comment=“LoraGateway2” endpoint-port=56658 interface=
wireguard2 is-responder=yes name=LoraGateway2 persistent-keepalive=30s preshared-key=
“2J/eF3HaH+SZv9ITwS+u4ifrkNLqO3FfqpEub2sYKG0=” public-key=“hsePqlq552j86MRayoiBHfNMy/MWMetnXuZCEKHp3F4=”
add allowed-address=20.99.99.3/24 comment=“LoraGateway3” endpoint-port=56658 interface=
wireguard2 is-responder=yes name=LoraGateway3 persistent-keepalive=30s public-key=
“Xm3Uiafrh9CsrbVsWjZNoSbgC819hjJrf48PpjDF0k0=”
/ip address
add address=20.99.99.254/24 interface=wireguard2 network=20.99.99.0
add address=192.168.200.1/24 comment=Security+Management interface=vlan20 network=192.168.200.0
/ip firewall filter
add action=accept chain=forward comment=IoT src-address=20.99.99.0/24
/ip firewall nat
add action=masquerade chain=srcnat comment=“WireGuard LoraWan” src-address=20.99.99.0/24
/ip route
add dst-address=10.99.99.0/24 gateway=wireguard2
Site 1 (Mikoritk LoraGateway1) no public ip
/interface wireguard
add listen-port=56658 mtu=1420 name=wireguard1
/interface wireguard peers
add allowed-address=20.99.99.254/24,192.168.200.0/24 endpoint-address=77.105.63.227 endpoint-port=56658 interface=wireguard1 name=Server-Lora persistent-keepalive=30s public-key=“BWzbgLQaTKU+R0ewRJ9yRLVlsN8XV50ke+Qnv/rRDz4=”
/ip address
add address=20.99.99.1/24 interface=wireguard1 network=20.99.99.0
/ip route
add disabled=no dst-address=192.168.200.0/24 gateway=wireguard1 routing-table=main suppress-hw-offload=no
Site 2 (Mikoritk LoraGateway2) no public ip
/interface wireguard
add listen-port=56658 mtu=1420 name=wireguard1
/interface wireguard peers
add allowed-address=20.99.99.254/24,192.168.200.0/24 endpoint-address=77.105.63.227 endpoint-port=56658 interface=wireguard1 name=Server-LoraWAN persistent-keepalive=30s preshared-key=“2J/eF3HaH+SZv9ITwS+u4ifrkNLqO3FfqpEub2sYKG0=” public-key=
“BWzbgLQaTKU+R0ewRJ9yRLVlsN8XV50ke+Qnv/rRDz4=”
/ip address
add address=20.99.99.2/24 interface=wireguard1 network=20.99.99.0
/ip route
add disabled=no distance=1 dst-address=192.168.88.0/24 gateway=wireguard1 routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=no dst-address=192.168.200.0/24 gateway=wireguard1 routing-table=main suppress-hw-offload=no
rEst 2 site are the same…
Wireguardis up, there is tunnel betwen server and all 4 peer, but routing is problem.
From server (20.99.99.254)I can ping all peer in best case 1-2. Same settup is all 4 peers.
What is problem ? Is my bed understandig or MT don’t work how it need ?
Alsto trydo this:
Site 1 (Mikoritk LoraGateway1) no public ip
/interface wireguard
add listen-port=56658 mtu=1420 name=wireguard1
/interface wireguard peers
add allowed-address=20.99.99.0/24,192.168.200.0/24 endpoint-address=77.105.63.227 endpoint-port=56658 interface=wireguard1 name=Server-Lora persistent-keepalive=30s public-key=“BWzbgLQaTKU+R0ewRJ9yRLVlsN8XV50ke+Qnv/rRDz4=”
on all ppers and stil same
and liek this
Site 1 (Mikoritk LoraGateway1) no public ip
/interface wireguard
add listen-port=56658 mtu=1420 name=wireguard1
/interface wireguard peers
add allowed-address=20.99.99.254/30,192.168.200.0/24 endpoint-address=77.105.63.227 endpoint-port=56658 interface=wireguard1 name=Server-Lora persistent-keepalive=30s public-key=“BWzbgLQaTKU+R0ewRJ9yRLVlsN8XV50ke+Qnv/rRDz4=”
Same…
Any help ?
Idea is to have access to all 4 peer from server, and peers tohave acces to lokal network 192.168.200.0/24
