MikroTik Solutions

Diff
Login

Diff

Differences From Artifact [3234391e50]:

To Artifact [0b959323cf]:


1
2
3
4
5
6
7
8
9
10





11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 1970-01-01 00:00:00 by RouterOS 7.15.2
#
# model = C53UiG+5HPaxD2HPaxD
/interface bridge add admin-mac=**ELIDED** auto-mac=no comment=defconf name=bridge
/interface wifi set [ find default-name=wifi1 ] channel.band=5ghz-ax .skip-dfs-channels=10min-cac .width=20/40/80mhz configuration.mode=ap .ssid=MikroTik-**ELIDED** disabled=no security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes .passphrase=**ELIDED**
/interface wifi set [ find default-name=wifi2 ] channel.band=2ghz-ax .skip-dfs-channels=10min-cac .width=20/40mhz configuration.mode=ap .ssid=MikroTik-**ELIDED** disabled=no security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes .passphrase=**ELIDED**
/interface list add comment=defconf name=WAN
/interface list add comment=defconf name=LAN
/ip pool add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/disk settings set auto-media-interface=bridge auto-media-sharing=yes auto-smb-sharing=yes





/interface bridge port add bridge=bridge comment=defconf interface=ether2
/interface bridge port add bridge=bridge comment=defconf interface=ether3
/interface bridge port add bridge=bridge comment=defconf interface=ether4
/interface bridge port add bridge=bridge comment=defconf interface=ether5
/interface bridge port add bridge=bridge comment=defconf interface=wifi1
/interface bridge port add bridge=bridge comment=defconf interface=wifi2
/ip neighbor discovery-settings set discover-interface-list=LAN
/interface list member add comment=defconf interface=bridge list=LAN
/interface list member 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 interface=ether1
/ip dhcp-server add address-pool=default-dhcp interface=bridge name=defconf
/ip dhcp-server network 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
/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 established,related,untracked" connection-state=established,related,untracked

/ip firewall filter add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
/ip firewall filter add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
/ip firewall filter add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
/ip firewall filter add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
/ip firewall filter add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
/ip firewall filter add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
/ip firewall filter add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related hw-offload=yes
/ip firewall filter add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
/ip firewall filter add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
/ip firewall filter add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/ipv6 firewall address-list add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
/ipv6 firewall address-list add address=::1/128 comment="defconf: lo" list=bad_ipv6
/ipv6 firewall address-list add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
/ipv6 firewall address-list add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
/ipv6 firewall address-list add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
/ipv6 firewall address-list add address=100::/64 comment="defconf: discard only " list=bad_ipv6
/ipv6 firewall address-list add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
/ipv6 firewall address-list add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
/ipv6 firewall address-list add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 firewall filter add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
/ipv6 firewall filter add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
/ipv6 firewall filter add action=accept chain=input comment="defconf: accept ICMPv6" protocol=icmpv6
/ipv6 firewall filter add action=accept chain=input comment="defconf: accept UDP traceroute" dst-port=33434-33534 protocol=udp
/ipv6 firewall filter add action=accept chain=input comment="defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=udp src-address=fe80::/10
/ipv6 firewall filter add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 protocol=udp
/ipv6 firewall filter add action=accept chain=input comment="defconf: accept ipsec AH" protocol=ipsec-ah
/ipv6 firewall filter add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=ipsec-esp
/ipv6 firewall filter add action=accept chain=input comment="defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
/ipv6 firewall filter add action=drop chain=input comment="defconf: drop everything else not coming from LAN" in-interface-list=!LAN
/ipv6 firewall filter add action=accept chain=forward comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
/ipv6 firewall filter add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
/ipv6 firewall filter add action=drop chain=forward comment="defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
/ipv6 firewall filter add action=drop chain=forward comment="defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
/ipv6 firewall filter add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" hop-limit=equal:1 protocol=icmpv6
/ipv6 firewall filter add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=icmpv6
/ipv6 firewall filter add action=accept chain=forward comment="defconf: accept HIP" protocol=139
/ipv6 firewall filter add action=accept chain=forward comment="defconf: accept IKE" dst-port=500,4500 protocol=udp
/ipv6 firewall filter add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=ipsec-ah
/ipv6 firewall filter add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=ipsec-esp
/ipv6 firewall filter add action=accept chain=forward comment="defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
/ipv6 firewall filter add action=drop chain=forward comment="defconf: drop everything else not coming from LAN" in-interface-list=!LAN
/system routerboard settings set auto-upgrade=yes
/system routerboard wps-button set enabled=yes on-event=wps-accept
/system script add comment=defconf dont-require-permissions=no name=wps-accept owner=*sys policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="\r\
    \n   :foreach iface in=[/interface/wifi find where (configuration.mode=\"ap\" && disabled=no)] do={\r\
    \n     /interface/wifi wps-push-button \$iface;}\r\
    \n "
/tool mac-server set allowed-interface-list=LAN
/tool mac-server mac-winbox set allowed-interface-list=LAN



|
|
|
|
|
|
|
>
>
>
>
>
|
|
|
|
|
|
|
<
<
<
|
<
|

<
|
>
|
|
|
|
|
|
|
|
|
|
|
<
|
<
<
<
|
<
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22



23

24
25

26
27
28
29
30
31
32
33
34
35
36
37
38

39



40

41
42






























# 1970-01-01 00:00:00 by RouterOS 7.15.2
#
# model = C53UiG+5HPaxD2HPaxD
/interface bridge add name=LanBridge port-cost-mode=short
/interface ethernet set [ find default-name=ether1 ] advertise=10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-half,2.5G-baseT comment=Eth1 l2mtu=1598 name=LAN1
/interface ethernet set [ find default-name=ether2 ] comment=Eth2 l2mtu=1598 name=LAN2
/interface ethernet set [ find default-name=ether3 ] comment=Eth3 l2mtu=1598 name=LAN3
/interface ethernet set [ find default-name=ether4 ] comment=Eth4 l2mtu=1598 name=LAN4
/interface ethernet set [ find default-name=ether5 ] comment=Eth5 l2mtu=1598 name=LAN5
/interface wifi security add authentication-types=wpa2-psk,wpa3-psk disabled=no encryption=ccmp,gcmp,ccmp-256,gcmp-256 group-key-update=1h management-protection=allowed name=WifiSec wps=disable
/interface wifi set [ find default-name=wifi2 ] channel.band=2ghz-ax .frequency=2412,2432,2462 .skip-dfs-channels=10min-cac .width=20mhz comment=House configuration.country="United States" .mode=ap .ssid=MyHouse disabled=no name=House2.4GHz security=WifiSec
/interface wifi set [ find default-name=wifi1 ] channel.band=5ghz-ax .frequency=5180,5250,5745 .skip-dfs-channels=10min-cac .width=20/40/80mhz comment=House5GHz configuration.country="United States" .mode=ap .ssid=MyHouse5GHz disabled=no name=House5GHz security=WifiSec
/interface bridge port add bridge=LanBridge ingress-filtering=no interface=LAN4 internal-path-cost=10 path-cost=10
/interface bridge port add bridge=LanBridge ingress-filtering=no interface=LAN5 internal-path-cost=10 path-cost=10
/interface bridge port add bridge=LanBridge ingress-filtering=no interface=LAN2 internal-path-cost=10 path-cost=10
/interface bridge port add bridge=LanBridge interface=LAN3 internal-path-cost=10 path-cost=10
/interface bridge port add bridge=LanBridge interface=House5GHz internal-path-cost=10 path-cost=10
/interface bridge port add bridge=LanBridge interface=House2.4GHz internal-path-cost=10 path-cost=10
/interface bridge port add bridge=LanBridge interface=LAN1
/interface bridge port add bridge=LanBridge interface=*B
/interface bridge port add bridge=LanBridge interface=all
/ip neighbor discovery-settings set discover-interface-list=!dynamic



/ip dhcp-client add interface=LanBridge

/ip dhcp-relay add dhcp-server=192.168.50.1 disabled=no interface=LanBridge name=dhcpRelay
/ip dns set allow-remote-requests=yes

/ip firewall service-port set ftp disabled=yes
/ip service set telnet disabled=yes port=23
/ip service set ftp disabled=yes port=21
/ip service set www port=80
/ip service set ssh disabled=yes port=22
/ip service set api port=8728
/ip service set winbox port=8291
/ip service set api-ssl port=8729
/system clock set time-zone-autodetect=no time-zone-name=US/Pacific
/system clock manual set dst-delta=+01:00 time-zone=-07:00
/system identity set name=AP1-AX-House
/system note set show-at-login=no
/system ntp client set enabled=yes

/system ntp client servers add address=0.us.pool.ntp.org



/system ntp client servers add address=1.us.pool.ntp.org

/system ntp client servers add address=2.us.pool.ntp.org
/system ntp client servers add address=3.us.pool.ntp.org