[nikitakiselev@RouterOS] > export
# feb/08/2023 00:22:08 by RouterOS 6.48.6
# software id = 3IFJ-5VRK
#
# model = RB2011UiAS
# serial number = HCY08DHS9YS
/interface bridge
add admin-mac=18:FD:74:74:A9:5C auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether2 ] name=ether_nas
set [ find default-name=ether4 ] name=ether_pc
set [ find default-name=ether3 ] name=ether_server
set [ find default-name=ether5 ] name=ether_wifi
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether_nas
add bridge=bridge comment=defconf interface=ether_server
add bridge=bridge comment=defconf interface=ether_pc
add bridge=bridge comment=defconf interface=ether_wifi
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=ether9
add bridge=bridge comment=defconf interface=ether10
add bridge=bridge comment=defconf interface=sfp1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
    192.168.88.0
/ip dhcp-client
add comment=defconf disabled=no interface=ether1
/ip dhcp-server lease
add address=192.168.88.253 client-id=1:14:eb:b6:4a:e4:99 mac-address=\
    14:EB:B6:4A:E4:99 server=defconf
add address=192.168.88.249 client-id=1:80:47:86:19:7f:94 mac-address=\
    80:47:86:19:7F:94 server=defconf
add address=192.168.88.251 client-id=1:e0:d5:5e:7a:8f:46 mac-address=\
    E0:D5:5E:7A:8F:46 server=defconf
add address=192.168.88.254 client-id=\
    ff:b6:22:f:eb:0:2:0:0:ab:11:9d:19:41:17:db:5c:6a:d4 mac-address=\
    00:23:24:E9:F0:63 server=defconf
add address=192.168.88.250 client-id=1:2a:11:a1:6:14:5a mac-address=\
    2A:11:A1:06:14:5A server=defconf
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,1.1.1.1
/ip dns static
add address=192.168.88.254 regexp=".+\\.nikitakiselev\\.ru"
add address=192.168.88.254 name=server.local
add address=192.168.88.253 name=mesh.local
/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 log=yes log-prefix=drop_invalid
add action=accept chain=input comment="defconf: accept ICMP" packet-size=0-128 \
    protocol=icmp
add action=accept chain=input comment=\
    "defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
    in-interface-list=!LAN log-prefix=not_LAN
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
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 log=yes log-prefix=forward_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="drop all else" in-interface=ether1 log=yes \
    log-prefix=drop_all_else_
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=\
    out,none out-interface-list=WAN to-addresses=5.167.50.136
add action=redirect chain=dstnat comment="redirect to proxy" disabled=yes \
    dst-port=80,443 in-interface=ether1 protocol=tcp to-addresses=\
    192.168.88.254 to-ports=8080
add action=dst-nat chain=dstnat comment="NAS Direct IP access" disabled=yes \
    log=yes log-prefix=nas_6690 to-addresses=192.168.88.251
add action=dst-nat chain=dstnat comment=\
    "Translate all http(s) requests to ubuntu server" dst-port=80,443 \
    in-interface-list=WAN protocol=tcp to-addresses=192.168.88.254
/ip route
add disabled=yes distance=1 dst-address=192.168.68.0/24 gateway=192.168.88.253
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set winbox disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Europe/Moscow
/system identity
set name=RouterOS
/tool bandwidth-server
set enabled=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
Brand