Guest User

Untitled

a guest
Oct 2nd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. # jan/04/1970 17:48:11 by RouterOS 6.37.3
  2. # software id = PDRN-FTSL
  3. #
  4. /interface bridge
  5. add admin-mac=E4:8D:8C:AA:F3:D4 auto-mac=no comment=defconf name=bridge
  6. /interface ethernet
  7. set [ find default-name=ether2 ] name=ether2-master
  8. set [ find default-name=ether3 ] master-port=ether2-master
  9. set [ find default-name=ether4 ] master-port=ether2-master
  10. set [ find default-name=ether5 ] master-port=ether2-master
  11. /interface wireless
  12. set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
  13. distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-AAF3DA \
  14. wireless-protocol=802.11
  15. set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
  16. 20/40/80mhz-Ceee distance=indoors frequency=auto ssid=MikroTik-AAF3D9 \
  17. wireless-protocol=802.11
  18. /ip neighbor discovery
  19. set ether1 discover=no
  20. set bridge comment=defconf
  21. /interface wireless security-profiles
  22. set [ find default=yes ] supplicant-identity=MikroTik
  23. /ip hotspot profile
  24. set [ find default=yes ] html-directory=flash/hotspot
  25. /ip pool
  26. add name=default-dhcp ranges=192.168.88.10-192.168.88.254
  27. /ip dhcp-server
  28. add address-pool=default-dhcp disabled=no interface=bridge name=defconf
  29. /interface bridge port
  30. add bridge=bridge comment=defconf interface=ether2-master
  31. add bridge=bridge comment=defconf interface=sfp1
  32. add bridge=bridge comment=defconf interface=wlan1
  33. add bridge=bridge comment=defconf disabled=yes interface=wlan2
  34. add bridge=bridge interface=ether1
  35. /ip address
  36. add address=192.168.20.6/24 comment=defconf disabled=yes interface=wlan2 \
  37. network=192.168.20.0
  38. add address=192.168.20.5/24 interface=ether5 network=192.168.20.0
  39. add address=192.168.50.2/30 interface=ether1 network=192.168.50.0
  40. /ip dhcp-client
  41. add dhcp-options=hostname,clientid interface=wlan2
  42. /ip dhcp-server network
  43. add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
  44. /ip dns
  45. set allow-remote-requests=yes
  46. /ip dns static
  47. add address=192.168.20.5 name=router
  48. /ip firewall filter
  49. add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
  50. connection-state=established,related
  51. add action=accept chain=forward comment="defconf: accept established,related" \
  52. connection-state=established,related
  53. add action=drop chain=forward comment="defconf: drop invalid" \
  54. connection-state=invalid
  55. # in/out-interface matcher not possible when interface (ether1) is slave - use master instead (bridge)
  56. add action=drop chain=forward comment=\
  57. "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
  58. connection-state=new in-interface=ether1
  59. add action=accept chain=input protocol=icmp
  60. add action=accept chain=input connection-state=established
  61. add action=accept chain=input connection-state=related
  62. add action=drop chain=input in-interface=wlan2
  63. /ip route
  64. add distance=1 gateway=192.168.50.1
  65. add distance=1 dst-address=192.168.10.0/24 gateway=192.168.50.1
  66. /system identity
  67. set name=Lawrence-Edge
  68. /system routerboard settings
  69. set cpu-frequency=720MHz protected-routerboot=disabled
  70. /tool mac-server
  71. set [ find default=yes ] disabled=yes
  72. add interface=ether1
  73. add interface=ether2-master
  74. add interface=sfp1
  75. add interface=wlan1
  76. /tool mac-server mac-winbox
  77. set [ find default=yes ] disabled=yes
  78. add interface=ether1
  79. add interface=ether2-master
  80. add interface=sfp1
  81. add interface=wlan1
Add Comment
Please, Sign In to add comment