Advertisement
Guest User

Untitled

a guest
Dec 28th, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. # dec/28/2017 08:46:34 by RouterOS 6.41
  2. # software id = 41A0-RV4J
  3. #
  4. # model = 951Ui-2HnD
  5. # serial number = 6BF4070323E1
  6. /interface bridge
  7. add fast-forward=no name="hotspot network"
  8. add fast-forward=no name="local network"
  9. /interface ethernet
  10. set [ find default-name=ether2 ] auto-negotiation=no name=pico
  11. set [ find default-name=ether1 ] auto-negotiation=no name=wan
  12. /interface list
  13. add name=WAN
  14. add name=LAN
  15. /interface wireless security-profiles
  16. set [ find default=yes ] supplicant-identity=MikroTik
  17. add authentication-types=wpa-psk,wpa2-psk eap-methods="" group-ciphers=\
  18. tkip,aes-ccm management-protection=allowed mode=dynamic-keys name=\
  19. profile1 supplicant-identity="" unicast-ciphers=tkip,aes-ccm \
  20. wpa-pre-shared-key=0000000000 wpa2-pre-shared-key=0000000000
  21. /interface wireless
  22. set [ find default-name=wlan1 ] band=2ghz-onlyn disabled=no frequency=auto \
  23. mode=ap-bridge security-profile=profile1 ssid=WIFI
  24. add disabled=no keepalive-frames=disabled mac-address=66:D1:54:CE:56:9F \
  25. master-interface=wlan1 multicast-buffering=disabled name=wlan2 ssid=\
  26. hotspot wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
  27. /ip hotspot profile
  28. add dns-name=mt.hotspot.com hotspot-address=192.168.5.1 name=hsprof1
  29. /ip hotspot user profile
  30. set [ find default=yes ] keepalive-timeout=30m status-autorefresh=30s
  31. /ip pool
  32. add name=dhcp ranges=192.168.5.10-192.168.5.254
  33. add name=dhcp_pool1 ranges=192.168.5.2-192.168.5.254
  34. add name=dhcp_pool2 ranges=192.168.5.2-192.168.5.254
  35. add name=dhcp_pool3 ranges=192.168.5.2-192.168.5.254
  36. add name=dhcp_pool4 ranges=192.168.5.2-192.168.5.254
  37. add name=dhcp_pool5 ranges=192.168.5.2-192.168.5.254
  38. add name=dhcp_pool6 ranges=192.168.5.2-192.168.5.254
  39. add name=dhcp_pool7 ranges=192.168.5.2-192.168.5.254
  40. add name=dhcp_pool8 ranges=192.168.5.2-192.168.5.254
  41. add name=dhcp_pool9 ranges=192.168.5.2-192.168.5.254
  42. add name=dhcp_pool10 ranges=192.168.5.2-192.168.5.254
  43. add name=dhcp_pool11 ranges=192.168.5.2-192.168.5.254
  44. add name=dhcp_pool12 ranges=192.168.5.2-192.168.5.254
  45. add name=dhcp_pool13 ranges=192.168.5.2-192.168.5.254
  46. add name=dhcp_pool14 ranges=192.168.5.2-192.168.5.254
  47. add name=dhcp_pool15 ranges=192.168.5.2-192.168.5.254
  48. add name=dhcp_pool16 ranges=192.168.5.2-192.168.5.254
  49. /ip dhcp-server
  50. add address-pool=dhcp_pool16 disabled=no interface="local network" name=dhcp1
  51. add address-pool=dhcp disabled=no interface="hotspot network" lease-time=1h \
  52. name=dhcp2
  53. /ip hotspot
  54. add address-pool=dhcp disabled=no interface="hotspot network" name=hotspot1 \
  55. profile=hsprof1
  56. /tool user-manager customer
  57. set myhumi access=\
  58. own-routers,own-users,own-profiles,own-limits,config-payment-gw login=\
  59. myhumi password=009207654675
  60. /tool user-manager profile
  61. add name=test name-for-users="" override-shared-users=off owner=myhumi price=\
  62. 0 starts-at=logon validity=0s
  63. /tool user-manager profile limitation
  64. add address-list="" download-limit=0B group-name="" ip-pool="" name=aa owner=\
  65. myhumi rate-limit-min-rx=10485760B rate-limit-min-tx=10485760B \
  66. rate-limit-rx=10485760B rate-limit-tx=10485760B transfer-limit=0B \
  67. upload-limit=0B uptime-limit=1h
  68. /interface bridge port
  69. add bridge="hotspot network" interface=wlan2
  70. add bridge="local network" interface=wlan1
  71. /ip neighbor discovery-settings
  72. set discover-interface-list=!dynamic
  73. /ip settings
  74. set allow-fast-path=no
  75. /interface list member
  76. add interface=wan list=WAN
  77. add interface=pico list=LAN
  78. /interface wireless access-list
  79. add interface=wlan1 mac-address=5C:51:81:B2:45:47 vlan-mode=no-tag
  80. /ip address
  81. add address=192.168.1.4/24 interface=wan network=192.168.1.0
  82. add address=192.168.5.1/24 interface="local network" network=192.168.5.0
  83. add address=192.168.5.1/24 interface="hotspot network" network=192.168.5.0
  84. /ip cloud
  85. set update-time=no
  86. /ip dhcp-server network
  87. add address=192.168.5.0/24 dns-server=\
  88. 192.168.5.1,198.153.192.50,198.153.194.50 gateway=192.168.5.1 netmask=24
  89. /ip dns
  90. set allow-remote-requests=yes servers=198.153.192.50,198.153.194.50
  91. /ip firewall address-list
  92. add address=192.168.5.1 list=no-opendns
  93. /ip firewall filter
  94. add action=passthrough chain=unused-hs-chain comment=\
  95. "place hotspot rules here" disabled=yes
  96. /ip firewall nat
  97. add action=passthrough chain=unused-hs-chain comment=\
  98. "place hotspot rules here" disabled=yes
  99. add action=masquerade chain=srcnat out-interface=wan
  100. add action=masquerade chain=srcnat comment="masquerade hotspot network" \
  101. src-address=192.168.5.0/24
  102. add action=dst-nat chain=dstnat dst-port=53 protocol=tcp to-addresses=\
  103. 192.168.1.4 to-ports=53
  104. add action=dst-nat chain=dstnat dst-port=53 protocol=udp to-addresses=\
  105. 192.168.1.4 to-ports=53
  106. /ip hotspot user
  107. add name=admin password=123
  108. /ip route
  109. add distance=1 gateway=192.168.1.1
  110. /radius
  111. add address=127.0.0.1 secret=1414 service=hotspot
  112. /radius incoming
  113. set accept=yes
  114. /system clock
  115. set time-zone-name=Asia/Manila
  116. /tool user-manager database
  117. set db-path=user-manager
  118. /tool user-manager profile profile-limitation
  119. add from-time=0s limitation=aa profile=test till-time=23h59m59s weekdays=\
  120. sunday,monday,tuesday,wednesday,thursday,friday,saturday
  121. /tool user-manager router
  122. add coa-port=1700 customer=myhumi disabled=no ip-address=127.0.0.1 log=\
  123. auth-fail name=routeros shared-secret=1414 use-coa=no
  124. /tool user-manager user
  125. add caller-id=5C:51:81:B2:45:47 customer=myhumi disabled=no password=a \
  126. shared-users=1 username=a wireless-enc-algo=none wireless-enc-key="" \
  127. wireless-psk=""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement