Hi
I need help in a configuration that is not working as I would like, and I tried several things like routes, gateway changes with no sucess. I work with mikrotik router for some time but still consider myself an advance newbie ![]()
Some details of the network and what is the objective. (Diagram attached and configurations of the router MKT bellow)
- Both Mikrotiks are on normal home internet provides behind a ISP Router.
-A wireguard tunnel is created between them.
-All trafic from MKT2 should go thru the tunnel and get to the internet on MKT1.
-For now all lan on MKT1 is bloqued (firewall rule) from devices conected on MKT2, in the future i will give access only to one IP, if there is a better way to do it than with firewall rules i also apreciate you input, but for now my main goal is the tunnel.

I can create the tunnel and is working but all devices conected on MKT 2 get internet directly and not going thru the tunnel.
I can ping the wireguard IP thru the Winbox Terminal but not on Comand Promt win windows.
Thank for your time in helping me.
ROUTER 1 MKT1 CONFIG
# feb/19/2023 23:05:18 by RouterOS 7.7
# software id = *********
#
# model = RB4011iGS+5HacQ2HnD
# serial number = **************
/interface bridge
add admin-mac=E4:8D:8C:C8:0B:79 auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] l2mtu=1598 mac-address=E4:8D:8C:C8:0B:78 \
speed=100Mbps
set [ find default-name=ether2 ] l2mtu=1598 mac-address=E4:8D:8C:C8:0B:79 \
speed=100Mbps
set [ find default-name=ether3 ] l2mtu=1598 mac-address=E4:8D:8C:C8:0B:7A \
speed=100Mbps
set [ find default-name=ether4 ] l2mtu=1598 mac-address=E4:8D:8C:C8:0B:7B \
speed=100Mbps
/interface wireless
set [ find default-name=wlan1 ] name=wlan2 ssid=MikroTik
set [ find default-name=wlan2 ] name=wlan3 ssid=MikroTik
/interface wireguard
add listen-port=13231 mtu=1420 name=WGSERVER
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip ipsec profile
set [ find default=yes ] enc-algorithm=aes-256,aes-192,aes-128,3des
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=sha256,sha1
/ip pool
add name=dhcp ranges=192.168.5.10-192.168.5.254
/ip dhcp-server
add address-pool=dhcp disabled=yes interface=bridge name=defconf
/port
set 0 name=serial0
set 1 name=serial1
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=*1
/ip settings
set max-neighbor-entries=2048
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=1024
/interface l2tp-server server
set use-ipsec=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=sfp-sfpplus1 list=WAN
/interface wireguard peers
add allowed-address=10.10.10.0/24,192.168.2.0/24 comment="Teste Martins" \
interface=WGSERVER persistent-keepalive=10s public-key=\
"************************************"
/ip address
add address=192.168.5.1/24 comment=defconf interface=bridge network=\
192.168.5.0
add address=10.10.10.1/24 interface=WGSERVER network=10.10.10.0
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add comment=defconf interface=sfp-sfpplus1
/ip dhcp-server network
add address=192.168.5.0/24 comment=defconf dns-server=192.168.5.1 gateway=\
192.168.5.1 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.5.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=accept chain=input in-interface=WGSERVER
add action=accept chain=input comment="Enable Wireguard Traffic" \
src-address-list=10.10.10.0/24
add action=accept chain=input comment="Enable WireGuard" dst-port=13231 \
protocol=udp
add action=drop chain=input connection-state=invalid
add action=drop chain=forward connection-state=invalid
add action=drop chain=forward disabled=yes dst-address=\
192.168.1.2-192.168.1.254 in-interface=WGSERVER
add action=add-src-to-address-list address-list="port scanners" \
address-list-timeout=2w chain=input comment="Port scanners to list " \
protocol=tcp psd=21,3s,3,1
add action=add-src-to-address-list address-list="port scanners" \
address-list-timeout=2w chain=input comment="NMAP FIN Stealth scan" \
protocol=tcp tcp-flags=fin,!syn,!rst,!psh,!ack,!urg
add action=add-src-to-address-list address-list="port scanners" \
address-list-timeout=2w chain=input comment="SYN/FIN scan" protocol=tcp \
tcp-flags=fin,syn
add action=add-src-to-address-list address-list="port scanners" \
address-list-timeout=2w chain=input comment="SYN/RST scan" protocol=tcp \
tcp-flags=syn,rst
add action=add-src-to-address-list address-list="port scanners" \
address-list-timeout=2w chain=input comment="FIN/PSH/URG scan" protocol=\
tcp tcp-flags=fin,psh,urg,!syn,!rst,!ack
add action=add-src-to-address-list address-list="port scanners" \
address-list-timeout=2w chain=input comment="ALL/ALL scan" protocol=tcp \
tcp-flags=fin,syn,rst,psh,ack,urg
add action=add-src-to-address-list address-list="port scanners" \
address-list-timeout=2w chain=input comment="NMAP NULL scan" protocol=tcp \
tcp-flags=!fin,!syn,!rst,!psh,!ack,!urg
add action=jump chain=input comment="Protect Winbox from brute force" \
dst-port=8291 in-interface=sfp-sfpplus1 jump-target=winbox protocol=tcp
add action=drop chain=winbox comment="Drop Winbox brute forcers" dst-port=\
8291 protocol=tcp src-address-list=winbox_blacklist
add action=add-src-to-address-list address-list=winbox_blacklist \
address-list-timeout=1w3d chain=winbox connection-state=new dst-port=8291 \
protocol=tcp src-address-list=winbox_stage3
add action=add-src-to-address-list address-list=winbox_stage3 \
address-list-timeout=1m chain=winbox connection-state=new dst-port=8291 \
protocol=tcp src-address-list=winbox_stage2
add action=add-src-to-address-list address-list=winbox_stage2 \
address-list-timeout=1m chain=winbox connection-state=new dst-port=8291 \
protocol=tcp src-address-list=winbox_stage1
add action=add-src-to-address-list address-list=winbox_stage1 \
address-list-timeout=1m chain=winbox connection-state=new dst-port=8291 \
protocol=tcp
add action=accept chain=winbox connection-state=new dst-port=8291 protocol=\
tcp
add action=drop chain=input comment="drop ftp brute forcers" dst-port=21 \
protocol=tcp src-address-list=ftp_blacklist
add action=accept chain=output content="530 Login incorrect" dst-limit=\
1/1m,9,dst-address/1m protocol=tcp
add action=add-dst-to-address-list address-list=ftp_blacklist \
address-list-timeout=3h chain=output content="530 Login incorrect" \
protocol=tcp
add action=drop chain=input comment="drop ssh brute forcers" dst-port=22 \
protocol=tcp src-address-list=ssh_blacklist
add action=add-src-to-address-list address-list=ssh_blacklist \
address-list-timeout=1w3d chain=input connection-state=new dst-port=22 \
protocol=tcp src-address-list=ssh_stage3
add action=add-src-to-address-list address-list=ssh_stage3 \
address-list-timeout=1m chain=input connection-state=new dst-port=22 \
protocol=tcp src-address-list=ssh_stage2
add action=add-src-to-address-list address-list=ssh_stage2 \
address-list-timeout=1m chain=input connection-state=new dst-port=22 \
protocol=tcp src-address-list=ssh_stage1
add action=add-src-to-address-list address-list=ssh_stage1 \
address-list-timeout=1m chain=input connection-state=new dst-port=22 \
protocol=tcp
add action=drop chain=forward comment="drop ssh brute downstream" dst-port=22 \
protocol=tcp src-address-list=ssh_blacklist
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=\
192.168.89.0/24
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set h323 disabled=yes
set sip disabled=yes
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Europe/Lisbon
/system identity
set name="HOME SERVER"
/system leds
set 0 interface=wlan3 leds="wlan3_signal1-led,wlan3_signal2-led,wlan3_signal3-\
led,wlan3_signal4-led,wlan3_signal5-led" type=wireless-signal-strength
add interface=wlan3 leds=wlan3_tx-led type=interface-transmit
add interface=wlan3 leds=wlan3_rx-led type=interface-receive
/system ntp client
set enabled=yes
/system ntp client servers
add address=pt.pool.ntp.org
add address=ntp1.tecnico.ulisboa.pt
/system resource irq rps
set ether1 disabled=no
set ether2 disabled=no
set ether3 disabled=no
set ether4 disabled=no
set sfp-sfpplus1 disabled=no
ROUTER 2 MKT2 CONFIG
# feb/19/2023 23:06:15 by RouterOS 7.7
# software id = *******
#
# model = RB931-2nD
# serial number = ***********
/interface bridge
add name=bridge1
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n country=portugal disabled=no \
mode=ap-bridge ssid=******** wireless-protocol=802.11
/interface wireguard
add listen-port=13231 mtu=1420 name=WGCLIENT
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=\
dynamic-keys supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=192.168.2.2-192.168.2.200
/ip dhcp-server
add address-pool=dhcp interface=bridge1 name=dhcp1
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=wlan1
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface list member
add interface=ether1 list=WAN
add interface=bridge1 list=LAN
/interface wireguard peers
add allowed-address=10.10.10.0/24,192.168.2.0/24 endpoint-address=\
96890a0d246e.sn.mynetname.net endpoint-port=13231 interface=WGCLIENT \
persistent-keepalive=30s public-key=\
"*****************************************"
/ip address
add address=192.168.2.1/24 interface=bridge1 network=192.168.2.0
add address=10.10.10.111/24 interface=WGCLIENT network=10.10.10.0
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add interface=ether1
/ip dhcp-server network
add address=0.0.0.0/24 dns-server=0.0.0.0 gateway=0.0.0.0 netmask=24
add address=192.168.2.0/24 dns-server=8.8.8.8 gateway=192.168.2.1 netmask=24
/ip dns
set servers=192.168.2.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Europe/Lisbon
/system identity
set name=*****CLT