Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /interface bridge
- add admin-mac=BRIDGE_MACCIM auto-mac=no name=bridge
- /interface wireless
- set [ find default-name=wlan1 ] band=2ghz-b/g/n country=hungary disabled=no \
- distance=indoors mode=ap-bridge radio-name="" security-profile=main ssid=\
- SSID24 wireless-protocol=802.11 wmm-support=enabled wps-mode=disabled
- set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
- 20/40/80mhz-XXXX country=hungary disabled=no distance=indoors \
- mode=ap-bridge radio-name="" security-profile=main ssid=SSID50 \
- wireless-protocol=802.11 wmm-support=enabled wps-mode=disabled
- /interface vlan
- add interface=bridge name=vlan_guest vlan-id=100
- /interface wireless security-profiles
- add authentication-types=wpa2-psk mode=dynamic-keys name=main \
- supplicant-identity=MikroTik wpa2-pre-shared-key=WIFIJELSZO123
- add authentication-types=wpa2-psk mode=dynamic-keys name=guest \
- supplicant-identity=MikroTik wpa2-pre-shared-key=GUESTJELSZO123
- /interface wireless
- add disabled=no keepalive-frames=disabled mac-address=WLAN24_MACCIM \
- master-interface=wlan1 multicast-buffering=disabled name=wlan1_guest \
- security-profile=guest ssid=SSID24_GUEST vlan-id=100 vlan-mode=use-tag \
- wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
- add disabled=no keepalive-frames=disabled mac-address=WLAN50_MACCIM \
- master-interface=wlan2 multicast-buffering=disabled name=wlan2_guest \
- security-profile=guest ssid=SSID50_GUEST vlan-id=100 vlan-mode=use-tag \
- wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
- /ip pool
- add name=pool_dhcp ranges=192.168.10.10-192.168.10.254
- add name=pool_guest ranges=192.168.100.10-192.168.100.254
- /ip dhcp-server
- add address-pool=pool_dhcp interface=bridge lease-time=1d name=dhcp
- add address-pool=pool_guest interface=vlan_guest lease-time=1d name=\
- dhcp_guest
- /interface bridge port
- add bridge=bridge interface=ether1
- add bridge=bridge interface=wlan1
- add bridge=bridge interface=wlan2
- add bridge=bridge interface=wlan1_guest
- add bridge=bridge interface=wlan2_guest
- /ip neighbor discovery-settings
- set discover-interface-list=none
- /ipv6 settings
- set disable-ipv6=yes
- /interface list member
- add interface=bridge list=LAN
- add interface=ether1 list=WAN
- add interface=vlan_guest list=LAN
- /ip address
- add address=192.168.10.1/24 interface=bridge network=192.168.10.0
- add address=192.168.100.1/24 interface=vlan_guest network=192.168.100.0
- /ip dns
- set allow-remote-requests=yes
- /ip firewall address-list
- add address=192.168.10.0/24 list=Subnets
- add address=192.168.100.0/24 list=Subnets
- /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
- add action=accept chain=input comment="defconf: accept ICMP" 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" \
- src-address-list=!Subnets
- 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 hw-offload=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=drop chain=forward comment=\
- "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
- connection-state=new in-interface=ether1
- add action=drop chain=forward comment="subnets insulation" dst-address-list=\
- Subnets src-address-list=Subnets
- /ip firewall nat
- add action=masquerade chain=srcnat comment="defconf: masquerade" \
- ipsec-policy=out,none out-interface=ether1 src-address-list=Subnets
- /ip service
- set telnet disabled=yes
- set ftp disabled=yes
- set www address=192.168.10.0/24
- set ssh address=192.168.10.0/24
- set api disabled=yes
- set winbox address=192.168.10.0/24
- set api-ssl disabled=yes
- /ipv6 firewall address-list
- add address=::/128 comment="defconf: unspecified address" disabled=yes list=\
- bad_ipv6
- add address=::1/128 comment="defconf: lo" disabled=yes list=bad_ipv6
- add address=fec0::/10 comment="defconf: site-local" disabled=yes list=\
- bad_ipv6
- add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" disabled=yes \
- list=bad_ipv6
- add address=::/96 comment="defconf: ipv4 compat" disabled=yes list=bad_ipv6
- add address=100::/64 comment="defconf: discard only " disabled=yes list=\
- bad_ipv6
- add address=2001:db8::/32 comment="defconf: documentation" disabled=yes list=\
- bad_ipv6
- add address=2001:10::/28 comment="defconf: ORCHID" disabled=yes list=bad_ipv6
- add address=3ffe::/16 comment="defconf: 6bone" disabled=yes list=bad_ipv6
- /ipv6 firewall filter
- add action=accept chain=input comment=\
- "defconf: accept established,related,untracked" connection-state=\
- established,related,untracked disabled=yes
- add action=drop chain=input comment="defconf: drop invalid" connection-state=\
- invalid disabled=yes
- add action=accept chain=input comment="defconf: accept ICMPv6" disabled=yes \
- protocol=icmpv6
- add action=accept chain=input comment="defconf: accept UDP traceroute" \
- disabled=yes port=33434-33534 protocol=udp
- add action=accept chain=input comment=\
- "defconf: accept DHCPv6-Client prefix delegation." disabled=yes dst-port=\
- 546 protocol=udp src-address=fe80::/10
- add action=accept chain=input comment="defconf: accept IKE" disabled=yes \
- dst-port=500,4500 protocol=udp
- add action=accept chain=input comment="defconf: accept ipsec AH" disabled=yes \
- protocol=ipsec-ah
- add action=accept chain=input comment="defconf: accept ipsec ESP" disabled=\
- yes protocol=ipsec-esp
- add action=accept chain=input comment=\
- "defconf: accept all that matches ipsec policy" disabled=yes \
- ipsec-policy=in,ipsec
- add action=drop chain=input comment=\
- "defconf: drop everything else not coming from LAN" disabled=yes \
- in-interface-list=!LAN
- add action=accept chain=forward comment=\
- "defconf: accept established,related,untracked" connection-state=\
- established,related,untracked disabled=yes
- add action=drop chain=forward comment="defconf: drop invalid" \
- connection-state=invalid disabled=yes
- add action=drop chain=forward comment=\
- "defconf: drop packets with bad src ipv6" disabled=yes src-address-list=\
- bad_ipv6
- add action=drop chain=forward comment=\
- "defconf: drop packets with bad dst ipv6" disabled=yes dst-address-list=\
- bad_ipv6
- add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
- disabled=yes hop-limit=equal:1 protocol=icmpv6
- add action=accept chain=forward comment="defconf: accept ICMPv6" disabled=yes \
- protocol=icmpv6
- add action=accept chain=forward comment="defconf: accept HIP" disabled=yes \
- protocol=139
- add action=accept chain=forward comment="defconf: accept IKE" disabled=yes \
- dst-port=500,4500 protocol=udp
- add action=accept chain=forward comment="defconf: accept ipsec AH" disabled=\
- yes protocol=ipsec-ah
- add action=accept chain=forward comment="defconf: accept ipsec ESP" disabled=\
- yes protocol=ipsec-esp
- add action=accept chain=forward comment=\
- "defconf: accept all that matches ipsec policy" disabled=yes \
- ipsec-policy=in,ipsec
- add action=drop chain=forward comment=\
- "defconf: drop everything else not coming from LAN" disabled=yes \
- in-interface-list=!LAN
- /system clock
- set time-zone-name=Europe/Budapest
- /system identity
- set name=kovacsr-backup
- /system ntp client
- set enabled=yes
- /system ntp client servers
- add address=time.google.com
- /tool bandwidth-server
- set enabled=no
- /tool mac-server
- set allowed-interface-list=none
- /tool mac-server mac-winbox
- set allowed-interface-list=none
- /tool mac-server ping
- set enabled=no
Add Comment
Please, Sign In to add comment