Besides three vlans, three pools, three dhcp-server, three dhcp server networ and 3 associated IP addresses…
Please explain this wireguard client… I assume it is another router with two subnets? WHich router is server peer for handshake???
If indeed its a router but a client peer then the allowed address should in the form /32
/interface wireguard peers
add allowed-address=10.10.90.0/24,192.168.88.0/24 comment=
“WG client on BI PC” interface=wireguard1 name=peer9 public-key=
“R5SjZucQPhyu5CQyXLvxf/RFr9FogUr5iBSC0jt9TV4=”
This is not the correct format:
add action=accept chain=input comment=“Allow WG Handshake” dst-address=
0.0.0.0 dst-port=51880 protocol=udp
Change TO:
add action=accept chain=input comment=“Allow WG Handshake” dst-port=51880 protocol=udp
For what purpose you trying to be cute??? Simply make wireguard address.
/ip address
add address=10.10.100.1/24 interface=wireguard1 network=10.10.100.0
Okay it gets more confusing, how many wireguard interfaces to you have, you have several different addresses at play???
GRE is not a secure protocol why are you accepting it in input chain… what is its purpose in the config…
These rules are highly suspect why are they needed" This is traffic to the router, NOT for port forwarding!!
add action=accept chain=input comment=“allow 67 68 to 10.0.0.1” dst-address=
10.0.0.1 dst-port=67,68 log=yes log-prefix=“allow 67 68 to 10.0.0.1”
protocol=udp
add action=drop chain=input comment=“drop all to 10.0.0.1” dst-address=
10.0.0.1 in-interface=!lo log=yes log-prefix=“drop all to 10.0.0.1”
Replace this incoherent access to the router by something better.
add action=accept chain=input comment=“Alow wireguard to router”
in-interface=wireguard1
add action=accept chain=input comment=“Allow all from LAN ifaces (bridge)”
in-interface-list=LAN
add action=accept chain=input src-address-list=admin
add action=accept chain=input src-address-list=212
add action=accept chain=input src-address-list=XXXXX
add action=accept chain=input comment=“admin access” in-interface-list=TRUSTED src-address-list=Authorized
add action=accept chain=input comment=“users to services” in-interface-list=LAN dst-port=53 protocol=udp
add action=accept chain=input comment=“users to services” in-interface-list=LAN dst-port=53 protocol=tcp
add action=drop chain=input comment=“Drop all else” { insert here but last rule ensuring address list and above rules are in place }
/firewall address list
add address=homesubnet-IP1 list=Authorized comment=“local admin PC”
add address=homesubnet-IP1 list=Authorized comment=“local admin laptop”
add address=homesubnet-IP1 list=Authorized comment=“local admin smartphone/ipad”
add address=wireguard-IP1 list=Authorized comment=“remote admin laptop”
add address=wireguard-IP1 list=Authorized comment=“remote admin smartphone/ipad”
add address=192.168.55.2 list=Authorized comment=“offbridge access”
/ip address
add address=192.168.55.1/30 interface=OffBridge5 network=192.168.55.0
Lets fix the forward chain rules … TO:
add action=fasttrack chain=forward connect-state=established,related
add action=accept chain=forward connect-state=established,related,untracked
add action=drop chain=forward connection-state=invalid
add action=accept chain=forward comment=“internet traffic” in-interface-list=LAN out-interface-list=WAN
add action=accept chain=forward comment=“wireguard to subnet of choice” in-interface=wireguard1 dst-address=subnet-address
add action=accept chain=forward comment=“Local subnet to wireguard” src-address=subnet-address out-interface=wireguard { but for what purpose, to where? }
add action=accept chain=forward comment" port forwarding" connection-nat-state=dstnat
add action=drop chain=forward comment=“drop all else”
WHY these two rules… running your own server on port 80? What is the IP address of the server? surely not .1
add action=dst-nat chain=dstnat disabled=yes dst-port=80 log=yes protocol=tcp
to-addresses=192.168.4.1 to-ports=80
add action=src-nat chain=srcnat disabled=yes dst-address=192.168.4.0/24 log=
yes to-addresses=192.168.4.2
/interface list
add comment=defconf name=WAN
add name=LAN
add name=TRUSTED
/ip neighbor discovery-settings
set discover-interface-list=TRUSTED
/interface list member
add comment=defconf interface=ether1 list=WAN
add interface=vlan10-home list=LAN
add interface=vlan20-iot list=LAN
add interface=vlan30-guest list=LAN
add interface=wireguard1 list=LAN
add interface=OffBridge5 list=LAN
add interface=OffBridge5 list=TRUSTED
add interface=wireguard1 list=TRUSTED
/interface bridge port
add bridge=bridge ingress-filtering=yes frame-types=admit-only-priority-and-untagged interface=ether2 pvid=10
add bridge=bridge ingress-filtering=yes frame-types=admit-only-priority-and-untagged interface=ether3 pvid=10
add bridge=bridge ingress-filtering=yes frame-types=admit-only-priority-and-untagged interface=ether4 pvid=10
add bridge=bridge ingress-filtering=yes frame-types=admit-only-priority-and-untagged interface=wifi1 pvid=10
add bridge=bridge ingress-filtering=yes frame-types=admit-only-priority-and-untagged interface=wifi2 pvid=10
add bridge=bridge ingress-filtering=yes frame-types=admit-only-priority-and-untagged interface=iotWLAN pvid=20
add bridge=bridge ingress-filtering=yes frame-types=admit-only-priority-and-untagged interface=guest5 pvid=30
add bridge=bridge ingress-filtering=yes frame-types=admit-only-priority-and-untagged interface=guest2 pvid=30
/interface bridge port { I am not clear on bridge ports or bridge vlans when using capsman so this config assumes no capsman )
add bridge=bridge tagged=bridge untagged=ether2,ether3,ether4, wifi1,wifi2 vlan-id=10
add bridge=bridge tagged=bridge untagged=iotWLAN vlan-id=20
add bridge=bridge tagged=bridge untagged=guest5,guest2 vlan-id=30
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=TRUSTED