zdeneksvarc Ja som si práve pripravil export, že v tom niekto niečo zbadá, ale keď to nešlo ani po restore, zaskočilo ma to. Ale rád skúsim 🙂
PPPoE pripojenie, scr-nat maškaráda. Tri krát bridge, tri krát vlan, základné fw pravidlá, pár krát drop medzi sieťami, nejaký script na backup + upload na NAS, takto celý config
/interface bridge
add dhcp-snooping=yes name=Guest
add dhcp-snooping=yes name=Home
add name=Samko
add name=VLAN1
/interface ethernet
set [ find default-name=ether1 ] name=ether1_gateway
set [ find default-name=ether2 ] name=ether2_Trunk_VLAN1_Unifi
set [ find default-name=ether3 ] name="ether3_obyvacka 1"
set [ find default-name=ether4 ] name="ether4_chodba 1"
set [ find default-name=ether5 ] name="ether5_obyvacka 2"
set [ find default-name=ether6 ] name="ether6_obyvacka 5"
set [ find default-name=ether7 ] name="ether7_obyvacka 7"
set [ find default-name=ether8 ] name="ether8_chodba 2"
set [ find default-name=ether9 ] name=ether9_Trunk_VLAN1_Izba
set [ find default-name=ether10 ] name="ether10_obyvacka 6"
set [ find default-name=ether12 ] name="ether12_kuchyna 1"
set [ find default-name=ether14 ] name="ether14_obyvacka 8"
set [ find default-name=ether16 ] name=ether16_NAS
set [ find default-name=ether17 ] name="ether17_detska 3"
set [ find default-name=ether18 ] name="ether18_detska 4"
set [ find default-name=ether19 ] name="ether19_spalna 2"
set [ find default-name=ether20 ] name="ether20_spalna 1"
set [ find default-name=ether21 ] name="ether21_detska 2"
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1_gateway name=pppoe_ISP \
user=***********
/interface vlan
add interface=VLAN1 name=vlan10_Home vlan-id=10
add interface=VLAN1 name=vlan20_Guest vlan-id=20
add interface=VLAN1 name=vlan30_Samko vlan-id=30
/interface list
add name=WAN
add name=LAN
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys \
supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool_Home ranges=172.17.15.2-172.17.15.254
add name=dhcp_pool_Guest ranges=172.18.15.2-172.18.15.254
add name=dhcp_pool_Trunk ranges=10.0.0.2-10.0.0.254
add name=dhcp_pool_Samko ranges=172.19.15.2-172.19.15.199
/ip dhcp-server
add address-pool=dhcp_pool_Home interface=Home lease-time=1d name=dhcp_Home
add address-pool=dhcp_pool_Guest interface=Guest lease-time=1d name=\
dhcp_Guets
add address-pool=dhcp_pool_Trunk interface=VLAN1 lease-time=1d name=\
dhcp_VLAN1
add address-pool=dhcp_pool_Samko interface=Samko lease-time=1d name=\
dhcp_Samko
/port
set 0 name=serial0
/system logging action
set 0 memory-lines=99999
add name=Syslog remote=172.17.15.15 src-address=172.17.15.1 target=remote
/interface bridge port
add bridge=Home ingress-filtering=no interface="ether3_obyvacka 1"
add bridge=Home ingress-filtering=no interface="ether4_chodba 1"
add bridge=Home ingress-filtering=no interface="ether7_obyvacka 7"
add bridge=Guest ingress-filtering=no interface="ether12_kuchyna 1"
add bridge=Guest ingress-filtering=no interface="ether6_obyvacka 5"
add bridge=Guest ingress-filtering=no interface="ether10_obyvacka 6"
add bridge=Home ingress-filtering=no interface="ether17_detska 3"
add bridge=Home ingress-filtering=no interface="ether18_detska 4"
add bridge=Home ingress-filtering=no interface="ether19_spalna 2"
add bridge=Home ingress-filtering=no interface="ether20_spalna 1"
add bridge=Guest ingress-filtering=no interface="ether5_obyvacka 2"
add bridge=Guest ingress-filtering=no interface="ether21_detska 2"
add bridge=Home interface=ether16_NAS
add bridge=Home interface=vlan10_Home
add bridge=Guest interface=vlan20_Guest
add bridge=Samko interface=vlan30_Samko
add bridge=VLAN1 interface=ether2_Trunk_VLAN1_Unifi
/ip settings
set max-neighbor-entries=8192
/ipv6 settings
set disable-ipv6=yes
/interface ovpn-server server
set auth=sha1,md5
/ip address
add address=172.17.15.1/24 interface=Home network=172.17.15.0
add address=172.18.15.1/24 interface=Guest network=172.18.15.0
add address=10.0.0.1/24 interface=VLAN1 network=10.0.0.0
add address=172.19.15.1/24 interface=Samko network=172.19.15.0
/ip dhcp-server lease
add address=172.17.15.15 client-id=1:0:11:32:9c:a8:b8 comment=NAS \
mac-address=00:11:32:9C:A8:B8 server=dhcp_Home
add address=172.17.15.5 client-id=1:90:dd:5d:ca:21:3d comment="Apple TV" \
mac-address=90:DD:5D:CA:21:3D server=dhcp_Home
add address=172.17.15.12 client-id=1:64:b:d7:0:fe:60 comment="Mac Wifi" \
mac-address=64:0B:D7:00:FE:60 server=dhcp_Home
add address=172.17.15.17 comment="Philips Hue" mac-address=EC:B5:FA:89:61:D4 \
server=dhcp_Home
add address=172.17.15.22 client-id=1:d0:21:f9:8c:57:4d comment="Unifi AP" \
mac-address=D0:21:F9:8C:57:4D server=dhcp_Home
add address=172.17.15.4 client-id=1:0:e0:4c:68:4:b2 comment="Mac eth" \
mac-address=00:E0:4C:68:04:B2 server=dhcp_Home
add address=172.17.15.7 client-id=1:a6:38:13:73:61:1a comment="iPad mirec" \
mac-address=A6:38:13:73:61:1A server=dhcp_Home
add address=172.17.15.9 client-id=1:4a:58:a9:e5:6b:38 comment="iPhone Liska" \
mac-address=4A:58:A9:E5:6B:38 server=dhcp_Home
add address=172.17.15.2 client-id=1:76:fc:9a:12:fc:68 comment="iPhone mirec" \
mac-address=76:FC:9A:12:FC:68 server=dhcp_Home
/ip dhcp-server network
add address=10.0.0.0/24 gateway=10.0.0.1
add address=172.17.15.0/24 gateway=172.17.15.1
add address=172.18.15.0/24 dhcp-option=*7 gateway=172.18.15.1
add address=172.19.15.0/24 gateway=172.19.15.1
/ip dns
set servers=1.1.1.1,1.0.0.1
/ip firewall filter
add action=accept chain=input comment="Estabilished, related" \
connection-state=established,related
add action=accept chain=input comment="Home in yes" src-address=\
172.17.15.0/24
add action=drop chain=input comment=Invalid connection-state=invalid \
log-prefix=_AA_
add action=drop chain=input comment="Everything else" log-prefix=_AB_
add action=accept chain=forward comment="Estabilished, related" \
connection-state=established,related
add action=accept chain=forward comment="Home net yes" in-interface=Home \
log-prefix=_CC_ out-interface=pppoe_ISP
add action=accept chain=forward comment="Guest net yes" in-interface=Guest \
out-interface=pppoe_ISP
add action=accept chain=forward comment="Samko net yes" in-interface=Samko \
out-interface=pppoe_ISP
add action=drop chain=forward comment=Invalid connection-state=invalid \
log-prefix=_AA_
add action=drop chain=forward comment="Everything else" log-prefix=_AB_
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe_ISP
/ip kid-control device
add mac-address=14:C9:13:15:45:7F name="LG TV" user=*1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Europe/Bratislava
/system logging
add action=Syslog topics=warning
add action=Syslog topics=info
add action=Syslog topics=error
add action=Syslog topics=critical
add disabled=yes topics=debug
add action=Syslog disabled=yes topics=debug
/system ntp client
set enabled=yes
/system ntp client servers
add address=0.sk.pool.ntp.org
/system routerboard settings
set boot-os=router-os
/system scheduler
add interval=1d name="Autobackup create" on-event=Autobackup policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
start-date=may/30/2021 start-time=21:00:00
add interval=1d name="Backup to NAS" on-event="Backup to NAS" policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
start-date=may/30/2021 start-time=21:05:00
/system script
add dont-require-permissions=no name=Autobackup owner=mirmo policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
\_Set local variables. Change the value in \"\" to reflect your environmen\
t.\r\r\
\n\r\r\
\n:local hostname \"mirmo_mikrotik\";\r\r\
\n\r\r\
\n# Set Filename variables. Do not change this unless you want to edit the\
\_format of the filename.\r\r\
\n\r\r\
\n:local time [/system clock get time];\r\r\
\n:local date ([:pick [/system clock get date] 0 3] \\\r\r\
\n. [:pick [/system clock get date] 4 6] \\\r\r\
\n. [:pick [/system clock get date] 7 11]);\r\r\
\n:local filename \"\$hostname-\$date-\$time\";\r\r\
\n\r\r\
\n# Create backup file and export the config.\r\r\
\n\r\r\
\nexport compact file=\"\$filename\"\r\r\
\n/system backup save name=\"\$filename\"\r\r\
\n\r\r\
\n:log info \"Backup Created Successfully\"\r\r\
\n"
add dont-require-permissions=no name="Backup to NAS" owner=mirmo policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
system backup save name=\"mirmo\"\r\r\
\ndelay 3s\r\r\
\n/tool fetch address=172.17.15.15 src-path=mirmo.backup user=miroslav mod\
e=ftp password=************* dst-path=/Mirec/Mikrotik/Backups/mirmo.b\
ackup upload=yes\r\
\ndelay 3s\r\r\
\n/file remove \"mirmo.backup\"\r\r\
\n:log info \"Backup to NAS Created Successfully\"\r\r\
\n\r\r\
\n"