# aug/27/2018 13:59:22 by RouterOS 6.42.7
# software id = 9MJQ-81B3
#
# model = RouterBOARD 3011UiAS
# serial number = 783E08F90914
/caps-man channel
add band=2ghz-b/g/n control-channel-width=20mhz frequency=2412 name=2412
add band=2ghz-b/g/n control-channel-width=20mhz frequency=2437 name=2437
add band=2ghz-b/g/n control-channel-width=20mhz frequency=2462 name=2462
add band=2ghz-b/g/n control-channel-width=20mhz frequency=2472 name=2472
/interface bridge
add admin-mac=CC:2D:E0:27:C8:59 auto-mac=no comment=defconf name=Adult
add fast-forward=no name=Kids
/interface ethernet
set [ find default-name=ether2 ] comment=NightHawk
/interface vlan
add interface=ether1 name=Sxt vlan-id=200
add interface=ether1 name=vlan10 vlan-id=10
/caps-man datapath
add bridge=Kids name=Kids
add bridge=Adult name=Adult
/caps-man security
add authentication-types=wpa2-psk encryption=aes-ccm,tkip name=Kids
add authentication-types=wpa2-psk encryption=aes-ccm,tkip name=Adults
/caps-man configuration
add channel.frequency="" datapath=Huizenga hide-ssid=yes mode=ap name=\
add datapath=Kids mode=ap name=Kids security=Kids ssid=Kids
add datapath=Adult mode=ap name=Adults security=Adults ssid=Adults
/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=Adults ranges=192.168.1.110-192.168.1.254
add name=Kids ranges=192.168.2.2-192.168.2.254
/ip dhcp-server
add address-pool=Adults disabled=no interface=Adult name=defconf
add address-pool=Kids disabled=no interface=Kids name=dhcp1
/caps-man manager
set enabled=yes
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=Adults name-format=\
prefix-identity slave-configurations=Kids
/interface bridge port
add bridge=Adult comment=defconf interface=ether3
add bridge=Adult comment=defconf interface=ether4
add bridge=Kids comment=defconf interface=ether5
add bridge=Adult comment=defconf interface=ether6
add bridge=Adult comment=defconf interface=ether7
add bridge=Kids comment=defconf interface=ether8
add bridge=Kids comment=defconf interface=ether9
add bridge=Adult comment=defconf interface=ether10
add bridge=Adult comment=defconf interface=sfp1
add bridge=Adult interface=ether1
add bridge=Adult interface=vlan10
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=Adult list=LAN
add interface=Sxt list=WAN
add interface=ether2 list=WAN
add interface=Kids list=LAN
/ip address
add address=192.168.1.1/24 comment=defconf interface=Adult network=\
192.168.1.0
add address=192.168.2.1/24 interface=Kids network=192.168.2.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=Sxt
add dhcp-options=hostname,clientid disabled=no interface=ether2
/ip dhcp-server lease
add address=192.168.1.10 client-id=1:6c:3b:6b:eb:51:e2 mac-address=\
6C:3B:6B:EB:51:E2 server=defconf
add address=192.168.1.11 client-id=1:64:d1:54:ff:d6:6b mac-address=\
64:D1:54:FF:D6:6B server=defconf
add address=192.168.1.104 client-id=1:3c:2a:f4:5
cb mac-address=\
3C:2A:F4:05:0A:CB server=defconf
/ip dhcp-server network
add address=192.168.1.0/24 comment=defconf gateway=192.168.1.1 netmask=24
add address=192.168.2.0/24 gateway=192.168.2.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.1.1 name=router.lan
add address=8.8.8.8 name=8.8.8.8
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=accept chain=forward dst-address=192.168.1.104 src-address=\
0.0.0.0/0
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=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!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
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=forward dst-address=192.168.1.0/24 src-address=\
192.168.2.0/24
add action=drop chain=forward dst-address=192.168.2.0/24 src-address=\
192.168.1.0/24
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=Adults passthrough=\
yes src-address=192.168.1.0/24
add action=mark-routing chain=prerouting new-routing-mark=Kids passthrough=\
yes src-address=192.168.2.0/24
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
/ip route
add distance=1 gateway=192.168.5.1 routing-mark=Adults
add distance=1 gateway=192.168.10.1 routing-mark=Kids
/system clock
set time-zone-name=America/New_York
/system ntp client
set enabled=yes primary-ntp=45.79.111.167 secondary-ntp=45.79.111.114
/system routerboard settings
set auto-upgrade=yes baud-rate=9600 silent-boot=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN