RB5009-New:
# 2025-10-24 07:14:59 by RouterOS 7.18.2
# model = RB5009UG+S+
/interface bridge
add admin-mac=F4:1E:57:C3:6E:8A ageing-time=5m arp=enabled arp-timeout=auto \
auto-mac=no comment=defconf dhcp-snooping=no disabled=no ether-type=\
0x8100 fast-forward=yes forward-delay=15s frame-types=\
admit-only-vlan-tagged igmp-snooping=no ingress-filtering=yes \
max-learned-entries=auto max-message-age=20s mtu=auto mvrp=no name=bridge \
port-cost-mode=short priority=0x8000 protocol-mode=rstp pvid=1 \
transmit-hold-count=6 vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] advertise="10M-baseT-half,10M-baseT-full,100M\
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,2.5G-baseT" arp=\
enabled arp-timeout=auto auto-negotiation=yes bandwidth=\
unlimited/unlimited comment=WAN disabled=no l2mtu=1514 loop-protect=\
default loop-protect-disable-time=5m loop-protect-send-interval=5s \
mac-address=F4:1E:57:C3:6E:89 mtu=1500 name=ether1 orig-mac-address=\
F4:1E:57:C3:6E:89 rx-flow-control=off tx-flow-control=off
set [ find default-name=ether2 ] advertise="10M-baseT-half,10M-baseT-full,100M\
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full" arp=enabled \
arp-timeout=auto auto-negotiation=yes bandwidth=unlimited/unlimited \
comment="Switch JRS Office; vlan32 access" disabled=no l2mtu=1514 \
loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mac-address=F4:1E:57:C3:6E:8A mtu=1500 \
name=ether2 orig-mac-address=F4:1E:57:C3:6E:8A rx-flow-control=off \
tx-flow-control=off
set [ find default-name=ether3 ] advertise="10M-baseT-half,10M-baseT-full,100M\
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full" arp=enabled \
arp-timeout=auto auto-negotiation=yes bandwidth=unlimited/unlimited \
comment="Blue Iris Server vlan62 access port" disabled=no l2mtu=1514 \
loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mac-address=F4:1E:57:C3:6E:8B mtu=1500 \
name=ether3 orig-mac-address=F4:1E:57:C3:6E:8B rx-flow-control=off \
tx-flow-control=off
set [ find default-name=ether4 ] advertise="10M-baseT-half,10M-baseT-full,100M\
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full" arp=enabled \
arp-timeout=auto auto-negotiation=yes bandwidth=unlimited/unlimited \
comment="hAPax3-downstairs trunk vlans 2, 12, 32, 42" disabled=no l2mtu=\
1514 loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mac-address=F4:1E:57:C3:6E:8C mtu=1500 \
name=ether4 orig-mac-address=F4:1E:57:C3:6E:8C rx-flow-control=off \
tx-flow-control=off
set [ find default-name=ether5 ] advertise="10M-baseT-half,10M-baseT-full,100M\
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full" arp=enabled \
arp-timeout=auto auto-negotiation=yes bandwidth=unlimited/unlimited \
comment="hAPax3-upstairs trunk vlans 2, 12, 32, 42" disabled=no l2mtu=\
1514 loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mac-address=F4:1E:57:C3:6E:8D mtu=1500 \
name=ether5 orig-mac-address=F4:1E:57:C3:6E:8D rx-flow-control=off \
tx-flow-control=off
set [ find default-name=ether6 ] advertise="10M-baseT-half,10M-baseT-full,100M\
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full" arp=enabled \
arp-timeout=auto auto-negotiation=yes bandwidth=unlimited/unlimited \
comment="Joseph PC access port vlan32" disabled=no l2mtu=1514 \
loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mac-address=F4:1E:57:C3:6E:8E mtu=1500 \
name=ether6 orig-mac-address=F4:1E:57:C3:6E:8E rx-flow-control=off \
tx-flow-control=off
set [ find default-name=ether7 ] advertise="10M-baseT-half,10M-baseT-full,100M\
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full" arp=enabled \
arp-timeout=auto auto-negotiation=yes bandwidth=unlimited/unlimited \
comment="MGMT access port vlan32" disabled=no l2mtu=1514 loop-protect=\
default loop-protect-disable-time=5m loop-protect-send-interval=5s \
mac-address=F4:1E:57:C3:6E:8F mtu=1500 name=ether7 orig-mac-address=\
F4:1E:57:C3:6E:8F rx-flow-control=off tx-flow-control=off
set [ find default-name=ether8 ] advertise="10M-baseT-half,10M-baseT-full,100M\
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full" arp=enabled \
arp-timeout=auto auto-negotiation=yes bandwidth=unlimited/unlimited \
comment=OffBridge disabled=no l2mtu=1514 loop-protect=default \
loop-protect-disable-time=5m loop-protect-send-interval=5s mac-address=\
F4:1E:57:C3:6E:90 mtu=1500 name=ether8 orig-mac-address=F4:1E:57:C3:6E:90 \
rx-flow-control=off tx-flow-control=off
set [ find default-name=sfp-sfpplus1 ] advertise="10M-baseT-half,10M-baseT-ful\
l,100M-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,1G-baseX,2.5\
G-baseT,2.5G-baseX,5G-baseT,10G-baseT,10G-baseSR-LR,10G-baseCR" arp=\
enabled arp-timeout=auto auto-negotiation=yes bandwidth=\
unlimited/unlimited comment=CSS326 disabled=no l2mtu=1514 loop-protect=\
default loop-protect-disable-time=5m loop-protect-send-interval=5s \
mac-address=F4:1E:57:C3:6E:91 mtu=1500 name=sfp-sfpplus1 \
orig-mac-address=F4:1E:57:C3:6E:91 rx-flow-control=off sfp-ignore-rx-los=\
no sfp-rate-select=high sfp-shutdown-temperature=95C tx-flow-control=off
/queue interface
set bridge queue=no-queue
set wireguard1 queue=no-queue
/interface vlan
add arp=enabled arp-timeout=auto comment="TV VLAN42" disabled=no interface=\
bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-TV \
use-service-tag=no vlan-id=42
add arp=enabled arp-timeout=auto comment="Cameras VLAN22" disabled=no \
interface=bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-camera \
use-service-tag=no vlan-id=22
add arp=enabled arp-timeout=auto comment="Guest WiFi VLAN2" disabled=no \
interface=bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-guest \
use-service-tag=no vlan-id=2
add arp=enabled arp-timeout=auto comment="IoT VLAN12" disabled=no interface=\
bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-iot \
use-service-tag=no vlan-id=12
add arp=enabled arp-timeout=auto comment="MGMT VLAN32" disabled=no interface=\
bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-mgmt \
use-service-tag=no vlan-id=32
add arp=enabled arp-timeout=auto comment="MOCA VLAN52" disabled=no interface=\
bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-moca \
use-service-tag=no vlan-id=52
add arp=enabled arp-timeout=auto comment="Printers vlan82" disabled=no \
interface=bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-printers \
use-service-tag=no vlan-id=82
add arp=enabled arp-timeout=auto comment="Servers VLAN62" disabled=no \
interface=bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-server \
use-service-tag=no vlan-id=62
add arp=enabled arp-timeout=auto comment="VONAGE VLAN72" disabled=no \
interface=bridge loop-protect=default loop-protect-disable-time=5m \
loop-protect-send-interval=5s mtu=1500 mvrp=no name=vlan-vonage \
use-service-tag=no vlan-id=72
/interface ethernet switch
set 0 cpu-flow-control=yes mirror-egress-target=none name=switch1
/interface ethernet switch port
set 0 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 1 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 2 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 3 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 4 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 5 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 6 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 7 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 8 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
set 9 !egress-rate !ingress-rate mirror-egress=no mirror-ingress=no \
mirror-ingress-target=none
/interface ethernet switch port-isolation
set 0 !forwarding-override
set 1 !forwarding-override
set 2 !forwarding-override
set 3 !forwarding-override
set 4 !forwarding-override
set 5 !forwarding-override
set 6 !forwarding-override
set 7 !forwarding-override
set 8 !forwarding-override
set 9 !forwarding-override
/interface list
set [ find name=all ] comment="contains all interfaces" exclude="" include="" \
name=all
set [ find name=none ] comment="contains no interfaces" exclude="" include="" \
name=none
set [ find name=dynamic ] comment="contains dynamic interfaces" exclude="" \
include="" name=dynamic
set [ find name=static ] comment="contains static interfaces" exclude="" \
include="" name=static
add comment=defconf exclude="" include="" name=WAN
add comment=defconf exclude="" include="" name=LAN
add exclude="" include="" name=TRUSTED
add exclude="" include="" name=Iot-Cameras
/interface lte apn
set [ find default=yes ] add-default-route=yes apn=internet authentication=\
none default-route-distance=2 ip-type=auto name=default use-network-apn=\
yes use-peer-dns=yes
/interface macsec profile
set [ find default-name=default ] name=default server-priority=10
/ip dhcp-client option
set clientid_duid code=61 name=clientid_duid value="0xff\$(CLIENT_DUID)"
set clientid code=61 name=clientid value="0x01\$(CLIENT_MAC)"
set hostname code=12 name=hostname value="\$(HOSTNAME)"
/ip hotspot profile
set [ find default=yes ] dns-name="" hotspot-address=0.0.0.0 html-directory=\
hotspot html-directory-override="" http-cookie-lifetime=3d http-proxy=\
0.0.0.0:0 install-hotspot-queue=no login-by=cookie,http-chap name=default \
smtp-server=0.0.0.0 split-user-domain=no use-radius=no
/ip pool
add comment=offbridge-dhcp-server name=offbridge-dhcp-server ranges=\
192.168.55.2-192.168.55.200
add name=guest-pool ranges=10.21.2.100-10.21.2.252
add name=iot-pool ranges=10.21.12.100-10.21.12.252
add name=cameras-pool ranges=10.21.22.100-10.21.22.252
add name=mgmt-pool ranges=10.21.32.100-10.21.32.252
add name=TV-pool ranges=10.21.42.100-10.21.42.252
add name=MOCA-pool ranges=10.21.52.100-10.21.52.252
add name=servers-pool ranges=10.21.62.100-10.21.62.252
add name=vonage-pool ranges=10.21.72.100-10.21.72.252
/ip dhcp-server
add address-lists="" address-pool=guest-pool disabled=no interface=vlan-guest \
lease-script="" lease-time=30m name=dhcp-guest use-radius=no
add address-lists="" address-pool=iot-pool disabled=no interface=vlan-iot \
lease-script="" lease-time=30m name=dhcp-iot use-radius=no
add address-lists="" address-pool=mgmt-pool disabled=yes interface=vlan-mgmt \
lease-script="" lease-time=30m name=dhcp-mgmt use-radius=no
# Interface not running
add address-lists="" address-pool=offbridge-dhcp-server comment=\
offbridge-dhcp-server disabled=no interface=ether8 lease-script="" \
lease-time=30m name=offbridge-dhcp-server use-radius=no
add address-lists="" address-pool=MOCA-pool disabled=no interface=vlan-moca \
lease-script="" lease-time=30m name=dhcp-moca use-radius=no
add address-lists="" address-pool=servers-pool disabled=no interface=\
vlan-server lease-script="" lease-time=30m name=dhcp-servers use-radius=\
no
add address-lists="" address-pool=TV-pool disabled=no interface=vlan-TV \
lease-script="" lease-time=30m name=dhcp-TV use-radius=no
add address-lists="" address-pool=vonage-pool disabled=no interface=\
vlan-vonage lease-script="" lease-time=30m name=dhcp-vonage use-radius=no
/queue type
set 0 kind=pfifo name=default pfifo-limit=50
set 1 kind=pfifo name=ethernet-default pfifo-limit=50
set 2 kind=sfq name=wireless-default sfq-allot=1514 sfq-perturb=5
set 3 kind=red name=synchronous-default red-avg-packet=1000 red-burst=20 \
red-limit=60 red-max-threshold=50 red-min-threshold=10
set 4 kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=5
set 5 kind=pcq name=pcq-upload-default pcq-burst-rate=0 pcq-burst-threshold=0 \
pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 \
pcq-dst-address6-mask=128 pcq-limit=50KiB pcq-rate=0 \
pcq-src-address-mask=32 pcq-src-address6-mask=128 pcq-total-limit=2000KiB
set 6 kind=pcq name=pcq-download-default pcq-burst-rate=0 \
pcq-burst-threshold=0 pcq-burst-time=10s pcq-classifier=dst-address \
pcq-dst-address-mask=32 pcq-dst-address6-mask=128 pcq-limit=50KiB \
pcq-rate=0 pcq-src-address-mask=32 pcq-src-address6-mask=128 \
pcq-total-limit=2000KiB
set 7 kind=none name=only-hardware-queue
set 8 kind=mq-pfifo mq-pfifo-limit=50 name=multi-queue-ethernet-default
set 9 kind=pfifo name=default-small pfifo-limit=10
/interface bridge port
add auto-isolate=no bpdu-guard=no bridge=bridge broadcast-flood=yes comment=\
"hAPax3-upstairs trunk vlan1" disabled=no edge=auto fast-leave=no \
frame-types=admit-only-vlan-tagged horizon=none hw=yes ingress-filtering=\
yes interface=ether5 !internal-path-cost learn=auto multicast-router=\
temporary-query mvrp-applicant-state=normal-participant \
mvrp-registrar-state=normal !path-cost point-to-point=auto priority=0x80 \
pvid=1 restricted-role=no restricted-tcn=no tag-stacking=no trusted=no \
unknown-multicast-flood=yes unknown-unicast-flood=yes
add auto-isolate=no bpdu-guard=no bridge=bridge broadcast-flood=yes comment=\
"JRS PC; assign vlan32; access port" disabled=no edge=auto fast-leave=no \
frame-types=admit-only-untagged-and-priority-tagged horizon=none hw=yes \
ingress-filtering=yes interface=ether6 !internal-path-cost learn=auto \
multicast-router=temporary-query mvrp-applicant-state=normal-participant \
mvrp-registrar-state=normal !path-cost point-to-point=auto priority=0x80 \
pvid=32 restricted-role=no restricted-tcn=no tag-stacking=no trusted=no \
unknown-multicast-flood=yes unknown-unicast-flood=yes
add auto-isolate=no bpdu-guard=no bridge=bridge broadcast-flood=yes comment=\
"MGMT; assign vlan32; access port " disabled=no edge=auto fast-leave=no \
frame-types=admit-only-untagged-and-priority-tagged horizon=none hw=yes \
ingress-filtering=yes interface=ether7 !internal-path-cost learn=auto \
multicast-router=temporary-query mvrp-applicant-state=normal-participant \
mvrp-registrar-state=normal !path-cost point-to-point=auto priority=0x80 \
pvid=32 restricted-role=no restricted-tcn=no tag-stacking=no trusted=no \
unknown-multicast-flood=yes unknown-unicast-flood=yes
add auto-isolate=no bpdu-guard=no bridge=bridge broadcast-flood=yes comment=\
"CSS326; trunk vlan1" disabled=no edge=auto fast-leave=no frame-types=\
admit-only-vlan-tagged horizon=none hw=yes ingress-filtering=yes \
interface=sfp-sfpplus1 !internal-path-cost learn=auto multicast-router=\
temporary-query mvrp-applicant-state=normal-participant \
mvrp-registrar-state=normal !path-cost point-to-point=auto priority=0x80 \
pvid=1 restricted-role=no restricted-tcn=no tag-stacking=no trusted=no \
unknown-multicast-flood=yes unknown-unicast-flood=yes
add auto-isolate=no bpdu-guard=no bridge=bridge broadcast-flood=yes comment=\
"JRS office switch; vlan32; access port" disabled=no edge=auto \
fast-leave=no frame-types=admit-only-untagged-and-priority-tagged \
horizon=none hw=yes ingress-filtering=yes interface=ether2 \
internal-path-cost=10 learn=auto multicast-router=temporary-query \
mvrp-applicant-state=normal-participant mvrp-registrar-state=normal \
path-cost=10 point-to-point=auto priority=0x80 pvid=32 restricted-role=no \
restricted-tcn=no tag-stacking=no trusted=no unknown-multicast-flood=yes \
unknown-unicast-flood=yes
add auto-isolate=no bpdu-guard=no bridge=bridge broadcast-flood=yes comment=\
"Blue Iris; assign vlan62 tag; access port" disabled=no edge=auto \
fast-leave=no frame-types=admit-only-untagged-and-priority-tagged \
horizon=none hw=yes ingress-filtering=yes interface=ether3 \
internal-path-cost=10 learn=auto multicast-router=temporary-query \
mvrp-applicant-state=normal-participant mvrp-registrar-state=normal \
path-cost=10 point-to-point=auto priority=0x80 pvid=62 restricted-role=no \
restricted-tcn=no tag-stacking=no trusted=no unknown-multicast-flood=yes \
unknown-unicast-flood=yes
add auto-isolate=no bpdu-guard=no bridge=bridge broadcast-flood=yes comment=\
"hAPax3-downstairs; trunk vlan1" disabled=no edge=auto fast-leave=no \
frame-types=admit-only-vlan-tagged horizon=none hw=yes ingress-filtering=\
yes interface=ether4 internal-path-cost=10 learn=auto multicast-router=\
temporary-query mvrp-applicant-state=normal-participant \
mvrp-registrar-state=normal path-cost=10 point-to-point=auto priority=\
0x80 pvid=1 restricted-role=no restricted-tcn=no tag-stacking=no trusted=\
no unknown-multicast-flood=yes unknown-unicast-flood=yes
/interface bridge settings
set allow-fast-path=yes use-ip-firewall=no use-ip-firewall-for-pppoe=no \
use-ip-firewall-for-vlan=no
/ip firewall connection tracking
set enabled=auto generic-timeout=10m icmp-timeout=10s loose-tcp-tracking=yes \
tcp-close-timeout=10s tcp-close-wait-timeout=10s tcp-established-timeout=\
1d tcp-fin-wait-timeout=10s tcp-last-ack-timeout=10s \
tcp-max-retrans-timeout=5m tcp-syn-received-timeout=5s \
tcp-syn-sent-timeout=5s tcp-time-wait-timeout=10s tcp-unacked-timeout=5m \
udp-stream-timeout=3m udp-timeout=30s
/ip neighbor discovery-settings
set discover-interface-list=all discover-interval=30s lldp-mac-phy-config=no \
lldp-max-frame-size=no lldp-med-net-policy-vlan=disabled lldp-vlan-info=\
no mode=tx-and-rx protocol=cdp,lldp,mndp
/interface bridge vlan
add bridge=bridge comment=\
"ports bridge,4,5,sfp to carry vlan2 (Guest) tagged frames out of 5009" \
disabled=no mvrp-forbidden="" tagged=bridge,ether4,ether5,sfp-sfpplus1 \
untagged="" vlan-ids=2
add bridge=bridge comment=\
"port bridge,4,5,sfp to carry vlan12 (IoT) tagged frames out of 5009" \
disabled=no mvrp-forbidden="" tagged=bridge,ether4,ether5,sfp-sfpplus1 \
untagged="" vlan-ids=12
add bridge=bridge comment="ports bridge,4,5,sfp to carry vlan32 (MGMT) out of \
5009 AND assign vlan32 to frames arriving on ports 6,7; access 32 for ethe\
r2, 6, 7" disabled=no mvrp-forbidden="" tagged=\
bridge,sfp-sfpplus1,ether4,ether5 untagged=ether2,ether6,ether7 vlan-ids=\
32
add bridge=bridge comment=\
"ports bridge,4,5,sfp to carry vlan42 (TV) frames out of 5009" disabled=\
no mvrp-forbidden="" tagged=bridge,ether4,ether5,sfp-sfpplus1 untagged="" \
vlan-ids=42
add bridge=bridge comment=\
"ports bridge,sfp to carry vlan52(MOCA) out of 5009" disabled=no \
mvrp-forbidden="" tagged=bridge,sfp-sfpplus1 untagged="" vlan-ids=52
add bridge=bridge comment="ports bridge,sfp to carry vlan62 (server) frames ou\
t of 5009 AND assign vlan62 to frames arriving at ether3" disabled=no \
mvrp-forbidden="" tagged=bridge,sfp-sfpplus1 untagged=ether3 vlan-ids=62
add bridge=bridge comment=\
"ports bridge,sfp to carry vlan72 (vonage) frames out of 5009" disabled=\
no mvrp-forbidden="" tagged=bridge,sfp-sfpplus1 untagged="" vlan-ids=72
add bridge=bridge comment=\
"ports bridge,sfp to carry vlan 82 (printer) frames out of 5009" \
disabled=no mvrp-forbidden="" tagged=bridge,sfp-sfpplus1 untagged="" \
vlan-ids=82
/interface list member
add comment=defconf disabled=no interface=ether1 list=WAN
add disabled=no interface=wireguard1 list=TRUSTED
add disabled=no interface=ether8 list=TRUSTED
add disabled=no interface=wireguard1 list=LAN
add comment="LAN OffBridge" disabled=no interface=ether5 list=LAN
add comment="TRUSTED OffBridge" disabled=no interface=ether5 list=TRUSTED
add comment="LAN VLAN2" disabled=no interface=vlan-guest list=LAN
add comment="LAN VLAN12" disabled=no interface=vlan-iot list=LAN
add comment="LAN VLAN32" disabled=no interface=vlan-mgmt list=LAN
add comment="TRUSTED VLAN32" disabled=no interface=vlan-mgmt list=TRUSTED
add disabled=no interface=vlan-iot list=Iot-Cameras
add comment="TEMP " disabled=no interface=ether1 list=TRUSTED
add comment="LAN VLAN62" disabled=no interface=vlan-server list=LAN
add comment="LAN VLAN52" disabled=no interface=vlan-moca list=LAN
add comment="LAN VLAN42" disabled=no interface=vlan-TV list=LAN
add disabled=no interface=ether8 list=LAN
/ip address
add address=192.168.55.1/24 disabled=no interface=ether8 network=192.168.55.0
add address=10.10.100.212/24 disabled=no interface=wireguard1 network=\
10.10.100.0
add address=10.21.2.1/24 disabled=no interface=vlan-guest network=10.21.2.0
add address=10.21.12.1/24 disabled=no interface=vlan-iot network=10.21.12.0
add address=10.21.32.1/24 disabled=no interface=vlan-mgmt network=10.21.32.0
add address=10.21.42.1/24 disabled=no interface=vlan-TV network=10.21.42.0
add address=10.21.52.1/24 disabled=no interface=vlan-moca network=10.21.52.0
add address=10.21.62.1/24 disabled=no interface=vlan-server network=\
10.21.62.0
add address=10.21.72.1/24 disabled=no interface=vlan-vonage network=\
10.21.72.0
add address=10.21.82.1/24 disabled=no interface=vlan-printers network=\
10.21.82.0
/ip dhcp-client
add add-default-route=yes comment=defconf default-route-distance=1 \
default-route-tables=default dhcp-options=hostname,clientid disabled=no \
interface=ether1 use-peer-dns=yes use-peer-ntp=yes
/ip dhcp-server config
set accounting=yes interim-update=0s radius-password=empty store-leases-disk=\
5m
/ip dhcp-server network
add address=10.21.2.0/24 caps-manager="" dhcp-option="" dns-server=10.21.2.1 \
gateway=10.21.2.1 !next-server ntp-server="" wins-server=""
add address=10.21.12.0/24 caps-manager="" dhcp-option="" dns-server=\
10.21.12.1 gateway=10.21.12.1 !next-server ntp-server="" wins-server=""
add address=10.21.22.0/24 caps-manager="" dhcp-option="" dns-server=\
10.21.22.1 gateway=10.21.22.1 !next-server ntp-server="" wins-server=""
add address=10.21.32.0/24 caps-manager="" dhcp-option="" dns-server=1.1.1.1 \
gateway=10.21.32.1 !next-server ntp-server="" wins-server=""
add address=10.21.42.0/24 caps-manager="" dhcp-option="" dns-server=\
10.21.42.1 gateway=10.21.42.1 !next-server ntp-server="" wins-server=""
add address=10.21.52.0/24 caps-manager="" dhcp-option="" dns-server=\
10.21.52.1 gateway=10.21.52.1 !next-server ntp-server="" wins-server=""
add address=10.21.62.0/24 caps-manager="" dhcp-option="" dns-server=\
10.21.62.1 gateway=10.21.62.1 !next-server ntp-server="" wins-server=""
add address=10.21.72.0/24 caps-manager="" dhcp-option="" dns-server=\
10.21.72.1 gateway=10.21.72.1 !next-server ntp-server="" wins-server=""
add address=192.168.55.0/24 caps-manager="" dhcp-option="" dns-server=1.1.1.1 \
gateway=192.168.55.1 netmask=24 !next-server ntp-server="" wins-server=""
/ip dns
set address-list-extra-time=0s allow-remote-requests=yes cache-max-ttl=1w \
cache-size=10000KiB doh-max-concurrent-queries=50 \
doh-max-server-connections=5 doh-timeout=5s max-concurrent-queries=100 \
max-concurrent-tcp-sessions=20 max-udp-packet-size=4096 \
mdns-repeat-ifaces="" query-server-timeout=2s query-total-timeout=10s \
servers=1.1.1.1,9.9.9.9 use-doh-server="" verify-doh-cert=no vrf=main
/ip dns static
add address=10.21.32.1 disabled=no name=212-rb5009-new.212.internal ttl=1d \
type=A
add address=10.21.32.1 disabled=no name=RB5009-new.212.internal ttl=\
9w6d10h40m type=A
add address=10.21.32.1 disabled=no name=212.10.10.100.212.internal ttl=\
9w6d10h40m type=A
add address=10.21.32.22 disabled=no name=vlan-JRSPC.212.internal ttl=1d type=\
A
add address=192.168.2.2 comment=router.212.internal disabled=no name=\
router.212.internal ttl=1d type=A
add address=10.21.32.1 comment=router.212.internal disabled=no name=\
vlan-router.212.internal ttl=1d type=A
add address=10.10.100.80 comment=729router.internal disabled=no name=\
729router.internal ttl=1d type=A
add address=192.168.2.22 disabled=no name=jrspc.212.internal ttl=1d type=A
/ip firewall address-list
add address=XXXXX.dyndns.org disabled=no dynamic=no list=dynamic-WANIP
add address=192.168.0.103 comment="Home Assistant" disabled=no dynamic=no \
list=ALLOWED-REMOTE-SERVERS
add address=192.168.55.0/24 disabled=no dynamic=no list=admin
add address=10.0.0.0/8 disabled=no dynamic=no list=admin
add address=192.168.2.168 comment="Blue Iris 2" disabled=no dynamic=no list=\
ALLOWED-REMOTE-SERVERS
add address=192.168.0.101 comment="Blue Iris" disabled=no dynamic=no list=\
ALLOWED-REMOTE-SERVERS
/ip 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 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=input comment="Allow INPUT users to services" \
dst-port=53 in-interface-list=LAN log-prefix=users-to-services protocol=\
udp
add action=accept chain=input comment="Allow INPUT users to services" \
dst-port=53 in-interface-list=LAN protocol=tcp
add action=accept chain=input comment="Allow INPUT from TRUSTED" \
in-interface-list=TRUSTED
add action=accept chain=input comment="Allow INPUT WG Handshake" dst-port=\
51880 log-prefix=Allow-WG-Handshake protocol=udp
add action=accept chain=input comment="NTP to Devices" !connection-bytes \
!connection-limit !connection-mark !connection-nat-state !connection-rate \
!connection-state !connection-type !content disabled=no !dscp \
!dst-address !dst-address-list !dst-address-type !dst-limit !dst-port \
!fragment !hotspot !icmp-options !in-bridge-port !in-bridge-port-list \
in-interface=vlan-mgmt !in-interface-list !ingress-priority !ipsec-policy \
!ipv4-options !layer7-protocol !limit log=no log-prefix="" !nth \
!out-bridge-port !out-bridge-port-list !out-interface !out-interface-list \
!packet-mark !packet-size !per-connection-classifier !port !priority \
protocol=udp !psd !random !routing-mark !src-address !src-address-list \
!src-address-type !src-mac-address src-port=123 !tcp-flags !tcp-mss !time \
!tls-host !ttl
add action=drop chain=input comment="Drop all INPUT" !connection-bytes \
!connection-limit !connection-mark !connection-nat-state !connection-rate \
!connection-state !connection-type !content disabled=no !dscp \
!dst-address !dst-address-list !dst-address-type !dst-limit !dst-port \
!fragment !hotspot !icmp-options !in-bridge-port !in-bridge-port-list \
!in-interface !in-interface-list !ingress-priority !ipsec-policy \
!ipv4-options !layer7-protocol !limit log=no log-prefix=DROP-ALL !nth \
!out-bridge-port !out-bridge-port-list !out-interface !out-interface-list \
!packet-mark !packet-size !per-connection-classifier !port !priority \
!protocol !psd !random !routing-mark !src-address !src-address-list \
!src-address-type !src-mac-address !src-port !tcp-flags !tcp-mss !time \
!tls-host !ttl
add action=fasttrack-connection chain=forward comment=\
"defconf: fasttrack established related" 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=accept chain=forward comment="Allow FORWARD LAN to WAN" \
in-interface-list=LAN log-prefix=Allow-LAN-WAN out-interface-list=WAN
add action=accept chain=forward comment="Allow FORWARD TRUSTED" \
in-interface-list=TRUSTED log-prefix=Allow-TRUSTED out-interface-list=LAN
add action=accept chain=forward comment=\
"Allow FORWARD Admin & remote wg admin to wireguard" in-interface-list=\
TRUSTED out-interface=wireguard1 src-address-list=admin
add action=accept chain=forward comment=\
"Allow FORWARD IOT-CAMERAS iface to ALLOWED-REMOTE-SERVER" \
dst-address-list=ALLOWED-REMOTE-SERVERS in-interface-list=Iot-Cameras \
out-interface=wireguard1
add action=accept chain=forward comment="Allow WG relay" in-interface=\
wireguard1 out-interface=wireguard1
add action=drop chain=forward comment="Drop all FORWARD" log-prefix=DROP-ALL
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN !to-addresses !to-ports
add action=masquerade chain=srcnat out-interface=wireguard1 !to-addresses \
!to-ports
/ip route
add comment=355 disabled=no distance=1 dst-address=192.168.0.0/24 gateway=\
wireguard1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add comment=255 disabled=no distance=1 dst-address=192.168.1.0/24 gateway=\
wireguard1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add comment=355-Cameras disabled=no distance=1 dst-address=192.168.5.0/24 \
gateway=wireguard1 pref-src="" routing-table=main scope=30 \
suppress-hw-offload=no target-scope=10
add comment=629 disabled=no distance=1 dst-address=192.168.20.0/24 gateway=\
wireguard1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add comment=76 disabled=no distance=1 dst-address=192.168.30.0/24 gateway=\
wireguard1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add comment=371 disabled=no distance=1 dst-address=192.168.40.0/24 gateway=\
wireguard1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add comment=125 disabled=no distance=1 dst-address=192.168.70.0/24 gateway=\
wireguard1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=no distance=1 dst-address=192.168.4.0/24 gateway=10.10.100.80 \
routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=10.0.0.0/8 gateway=wireguard1 \
routing-table=main scope=30 suppress-hw-offload=no target-scope=10
/system identity
set name=212-RB5009-New
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=TRUSTED
/tool mac-server ping
set enabled=yes
/tool romon
set enabled=yes id=00:00:00:00:00:00
/tool romon port
set [ find default=yes ] cost=100 disabled=no forbid=no interface=all