Hi,
I using Mikrotik products for a long time and I do have another site with a similar config, but this time I do not find the error
Basics: main site with multiple VLANs and a OPNSense Firewall acting as wireguard server.
I need to reach 192.168.206.0/24 and 172.23.1.0/24 and 10.113.7.0/24 on the main site, the wireguard net is 10.10.10.0/24 (wg server is 10.10.10.1)
I bought a D53G-5HacD2HnD set up as wireguard client connecting to main site as client IP 10.10.10.13
There’ll be 2 clients on the LTE site, they need to access the VLANs on the main site. A real “site to site” is not needed, masquerading will do.
The prolem: after setting up everything and testing from winbox/CLI the router is able to reach everything.
Now I connect a client to ether5 (my test port), the client reaches everything EXCEPT the wg_net and the nets 192.168.206.0/24 and 172.23.1.0/24 and 10.113.7.0/24
And … this will be a small error hiding in plain sight, but I don’t get it.
# apr/27/2023 08:29:51 by RouterOS 7.8
# software id = K95U-DUDN
#
# model = D53G-5HacD2HnD
# serial number = HD508964DBW
/interface bridge
add admin-mac=18:FD:74:A8:EA:B1 auto-mac=no comment=defconf frame-types=\
admit-only-untagged-and-priority-tagged ingress-filtering=no name=bridge \
vlan-filtering=yes
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
country=estonia disabled=no distance=indoors frequency=auto installation=\
indoor mode=ap-bridge ssid=MikroTik-A8EAB6 wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
20/40/80mhz-XXXX country=estonia disabled=no distance=indoors frequency=\
auto installation=indoor mode=ap-bridge ssid=MikroTik-A8EAB7 \
wireless-protocol=802.11
/interface wireguard
add listen-port=51820 mtu=1420 name=wg_if
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface lte apn
add apn=web.vodafone.de use-network-apn=yes
/interface lte
set [ find default-name=lte1 ] allow-roaming=no apn-profiles=web.vodafone.de \
band="" nr-band=""
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp interface=ether5 name=defconf
/interface bridge port
add bridge=bridge comment=defconf frame-types=\
admit-only-untagged-and-priority-tagged ingress-filtering=no interface=\
ether1 pvid=316
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=wlan1
add bridge=bridge comment=defconf interface=wlan2
add bridge=bridge ingress-filtering=no interface=*A
add bridge=bridge interface=*10
add bridge=bridge interface=*11
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set disable-ipv6=yes
/interface bridge vlan
add bridge=bridge tagged=*A vlan-ids=300
add bridge=bridge tagged=*A vlan-ids=316
add bridge=bridge tagged=*A vlan-ids=821
add bridge=bridge tagged=*A vlan-ids=909
add bridge=bridge tagged=*A vlan-ids=940
add bridge=bridge tagged=*A vlan-ids=399
add bridge=bridge tagged=*A vlan-ids=102
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=lte1 list=WAN
add interface=ether5 list=LAN
add interface=wg_if list=LAN
/interface wireguard peers
add allowed-address=\
10.10.10.13/24,192.168.206.0/24,172.23.1.0/24,10.113.7.0/24 comment=\
145.253.95.226 endpoint-address=145.253.95.226 endpoint-port=51820 \
interface=wg_if persistent-keepalive=5s public-key=\
"xxx"
/ip address
add address=192.168.88.1/24 comment=defconf interface=ether5 network=\
192.168.88.0
add address=10.10.10.13/24 interface=wg_if network=10.10.10.0
/ip dhcp-client
add add-default-route=no disabled=yes interface=*10 use-peer-dns=no \
use-peer-ntp=no
add add-default-route=no disabled=yes interface=*D use-peer-dns=no \
use-peer-ntp=no
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=\
192.168.88.1
/ip dns
set allow-remote-requests=yes servers=192.168.206.37
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall address-list
add address=192.168.88.0/24 list=reifenlager_subnet
/ip firewall filter
add action=accept chain=forward in-interface=wg_if
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid disabled=yes
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
/ip firewall nat
add action=masquerade chain=srcnat dst-address=10.10.10.0/24 out-interface=\
wg_if
add action=masquerade chain=srcnat dst-address=172.23.1.0/24 out-interface=\
wg_if
add action=masquerade chain=srcnat dst-address=172.16.16.0/21 log=yes \
log-prefix=masq out-interface=wg_if
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
/ip route
add disabled=no dst-address=192.168.206.0/24 gateway=10.10.10.1 \
routing-table=main suppress-hw-offload=no
add disabled=no dst-address=10.113.7.0/24 gateway=10.10.10.1 routing-table=\
main suppress-hw-offload=no
add disabled=no dst-address=172.16.16.0/21 gateway=10.10.10.1 routing-table=\
main suppress-hw-offload=no
add disabled=no dst-address=172.20.209.0/24 gateway=10.10.10.1 routing-table=\
main suppress-hw-offload=no
add disabled=no distance=1 dst-address=172.20.240.0/24 gateway=10.10.10.1 \
pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=no dst-address=172.23.1.0/24 gateway=10.10.10.1 routing-table=\
main suppress-hw-offload=no
add disabled=no distance=1 dst-address=172.23.102.0/24 gateway=10.10.10.1 \
pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=no distance=1 dst-address=172.23.199.0/24 gateway=10.10.10.1 \
pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=no dst-address=172.24.0.0/16 gateway=10.10.10.1 routing-table=\
main suppress-hw-offload=no
add disabled=no distance=1 dst-address=172.28.121.0/24 gateway=10.10.10.1 \
pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" port=\
33434-33534 protocol=udp
add action=accept chain=input comment=\
"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=input comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
add action=accept chain=forward comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=\
"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=\
500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=forward comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
/mpls ldp
add disabled=yes lsr-id=10.10.10.13 transport-addresses=10.10.10.13
/mpls ldp interface
add disabled=yes interface=wg_if
/snmp
set enabled=yes
/system clock
set time-zone-name=Europe/Berlin
/system identity
set name=ReifenlagerRouter
/system routerboard mode-button
set enabled=yes on-event=dark-mode
/system script
add comment=defconf dont-require-permissions=no name=dark-mode owner=*sys \
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
source="\r\
\n :if ([system leds settings get all-leds-off] = \"never\") do={\r\
\n /system leds settings set all-leds-off=immediate \r\
\n } else={\r\
\n /system leds settings set all-leds-off=never \r\
\n }\r\
\n "
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN