# may/28/2024 23:01:09 by RouterOS 6.49.10 # software id = 52AR-xxx # # model = RouterBOARD 952Ui-xxx # serial number = 71AF097Exxx /interface ethernet set [ find default-name=ether1 ] advertise=10M-full,100M-full set [ find default-name=ether3 ] advertise=10M-full,100M-full speed=1Gbps /interface wireless xxx /interface bridge add admin-mac=B8:69:F4:1D:6B:C0 auto-mac=no comment=defconf fast-forward=no \ name=bridge /interface list add comment=defconf name=WAN add comment=defconf name=LAN /interface wireless security-profiles xxx /ip pool add name=default-dhcp ranges=192.168.88.10-192.168.88.254 add name=pool10 ranges=10.10.10.10-10.10.10.19 /ip dhcp-server add address-pool=default-dhcp disabled=no interface=bridge name=defconf add address-pool=pool10 always-broadcast=yes bootp-support=dynamic disabled=\ no interface=ether3 name=server10 /interface bridge port add bridge=bridge comment=defconf interface=ether2 add bridge=bridge comment=defconf disabled=yes interface=ether3 add bridge=bridge comment=defconf interface=ether4 add bridge=bridge comment=defconf interface=ether5 add bridge=bridge comment=defconf interface=wlan1 add bridge=bridge comment=defconf interface=wlan2 /ip firewall connection tracking set tcp-syn-received-timeout=10s tcp-syn-sent-timeout=10s /ip neighbor discovery-settings set discover-interface-list=LAN /ip settings set allow-fast-path=no /interface list member add comment=defconf interface=bridge list=LAN add comment=defconf interface=ether1 list=WAN add interface=ether3 list=LAN /ip address add address=192.168.88.1/24 comment=defconf interface=bridge network=\ 192.168.88.0 add address=10.10.10.1/24 interface=ether3 network=10.10.10.0 /ip dhcp-client add comment=defconf disabled=no interface=ether1 /ip dhcp-server lease add address=192.168.88.245 mac-address=1C:6F:65:xxx server=defconf add address=192.168.88.239 client-id=1:14:cb:19:xxx mac-address=\ 14:CB:19:xxx server=defconf add address=10.10.10.10 client-id=1:b8:69:f4:xxx mac-address=\ B8:69:F4:xxx server=server10 add address=192.168.88.228 mac-address=B0:A4:60:xxx server=defconf add address=192.168.88.249 client-id=1:14:4f:8a:xxx mac-address=\ 14:4F:8A:xxx server=defconf add address=192.168.88.244 client-id=1:b4:b6:86:xxx mac-address=\ B4:B6:86:xxx server=defconf /ip dhcp-server network add address=10.10.10.0/24 gateway=10.10.10.10 netmask=24 add address=192.168.2.0/24 comment="IP pbx subnet" gateway=10.10.10.10 \ netmask=24 add address=192.168.55.0/24 gateway=10.10.10.10 netmask=24 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 cache-size=64KiB servers=1.1.1.1 /ip dns static add address=192.168.88.1 comment=defconf name=router.lan /ip firewall filter add action=accept chain=input comment="defconf: accept dstnat" \ connection-nat-state=dstnat disabled=yes in-interface=all-ethernet add action=drop chain=input comment="drop icmp from eth1" disabled=yes \ in-interface=ether1 protocol=icmp add action=passthrough chain=input comment="pass dst-nat" \ connection-nat-state=dstnat add action=drop chain=input comment="defconf: drop invalid" connection-state=\ invalid add action=tarpit chain=input comment="tarpit new dns from wan" \ connection-state=new disabled=yes dst-port=53 protocol=tcp add action=accept chain=forward comment="accept new dns from wan" dst-port=53 \ protocol=udp src-address=71.252.0.12 add action=accept chain=forward comment="accept new dns from wan" \ src-address=1.1.1.1 add action=accept chain=forward comment="accept new dns to wan" dst-address=\ 1.1.1.1 add action=accept chain=forward comment="drop new dns from wan" dst-port=53 \ protocol=udp src-address=71.242.0.12 add action=passthrough chain=forward comment="pass any from eth3" disabled=\ yes in-interface=ether3 add action=accept chain=forward comment="pass dst-nat" connection-nat-state=\ dstnat in-interface=ether1 add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \ connection-state=established,related disabled=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="acpt icmp from Br" in-interface=\ bridge protocol=icmp add action=accept chain=forward comment=" accept icmp from eth3" \ in-interface=ether3 protocol=icmp add action=accept chain=forward comment=" accept icmp from eth1" disabled=yes \ in-interface=ether1 protocol=icmp add action=passthrough chain=forward comment="count dstnat out eth3" \ connection-nat-state=dstnat out-interface=ether3 protocol=tcp add action=accept chain=forward comment="accept dst-nat" \ connection-nat-state=dstnat add action=accept chain=forward comment="fwd any not from wan" in-interface=\ !ether1 add action=accept chain=forward comment="defconf: accept in ipsec policy" \ disabled=yes ipsec-policy=in,ipsec add action=drop chain=input comment="drop new dns from wan" dst-port=53 \ in-interface=ether1 protocol=udp add action=accept chain=forward comment="defconf: accept out ipsec policy" \ disabled=yes ipsec-policy=out,ipsec add action=passthrough chain=forward comment="pass any to eth3" \ out-interface=ether3 add action=accept chain=forward comment=" accept icmp from Br" in-interface=\ bridge out-interface=ether1 protocol=icmp add action=drop chain=forward comment=\ "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \ connection-state=new disabled=yes in-interface-list=WAN add action=drop chain=input comment="defconf: drop telnet 23 from wan" \ dst-port=23 in-interface=ether1 protocol=tcp add action=tarpit chain=input comment="defconf: drop ftp 80 from wan" \ dst-port=80 in-interface=ether1 protocol=tcp add action=drop chain=input comment="defconf: drop ssh 22 from wan" dst-port=\ 22 in-interface=ether1 protocol=tcp add action=drop chain=input comment="defconf: drop ftp 21 from wan" dst-port=\ 21 in-interface=ether1 protocol=tcp add action=accept chain=input comment=" accept new from Br" connection-state=\ new in-interface=bridge add action=accept chain=input comment=" accept new icmp from eth1" \ connection-state=new in-interface=ether1 protocol=icmp add action=accept chain=input comment=\ "defconf: accept established,related,untracked" connection-state=\ established,related,untracked add action=accept chain=input comment="accept tcp" disabled=yes in-interface=\ all-ethernet protocol=tcp add action=accept chain=input comment=\ "defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1 add action=passthrough chain=input comment="pass any from eth3" in-interface=\ ether3 add action=accept chain=output dst-port=22 out-interface=ether3 protocol=tcp add action=drop chain=input comment="defconf: drop all not coming from LAN" \ disabled=yes in-interface-list=!LAN add action=accept chain=output protocol=icmp /ip firewall mangle add action=passthrough chain=prerouting comment=dst-nat connection-nat-state=\ dstnat dst-port=54403 protocol=tcp add action=passthrough chain=postrouting connection-nat-state=dstnat \ protocol=tcp add action=passthrough chain=prerouting in-interface=ether3 protocol=icmp add action=passthrough chain=forward comment="any to eth3" in-interface=\ ether3 add action=passthrough chain=output protocol=icmp add action=passthrough chain=postrouting protocol=icmp /ip firewall nat add action=masquerade chain=srcnat comment="defconf: masquerade" \ ipsec-policy=out,none out-interface-list=WAN add action=dst-nat chain=dstnat comment=sb2 dst-port=xxxx02 in-interface=\ ether1 protocol=tcp to-addresses=192.168.55.247 to-ports=22 add action=dst-nat chain=dstnat comment=sb3 dst-port=xxxx03 in-interface=\ ether1 protocol=tcp to-addresses=192.168.55.248 to-ports=22 add action=dst-nat chain=dstnat dst-port=xxxx49 in-interface=ether1 protocol=\ tcp to-addresses=192.168.55.249 to-ports=22 add action=dst-nat chain=dstnat dst-port=xxxx50 in-interface=ether1 protocol=\ tcp to-addresses=192.168.55.228 to-ports=22 add action=dst-nat chain=dstnat dst-port=xxxx80 in-interface=ether1 protocol=\ tcp to-addresses=192.168.88.1 to-ports=80 add action=dst-nat chain=dstnat comment="xxx\ in-interface=ether1 protocol=tcp to-addresses=192.168.55.244 to-ports=22 add action=dst-nat chain=dstnat dst-port=xxxx30 protocol=tcp to-addresses=\ 192.168.88.1 to-ports=22 /ip firewall raw add action=passthrough chain=output out-interface=ether1 protocol=tcp /ip firewall service-port set irc disabled=yes set sip disabled=yes /ip route add distance=1 dst-address=192.168.55.0/24 gateway=10.10.10.10 /ip route rule add action=unreachable dst-address=192.168.55.0/24 interface=ether1 /ip service set ssh address=0.0.0.0/0 set api disabled=yes set api-ssl disabled=yes /system clock set time-zone-name=America/New_York /system identity set name=MikroTik-gw /tool mac-server set allowed-interface-list=LAN /tool mac-server mac-winbox set allowed-interface-list=LAN /tool sniffer set filter-interface=ether1 filter-mac-protocol=ip filter-port=xxxx03 \ streaming-server=0.0.0.0:ssh