Advertisement
Guest User

Untitled

a guest
Sep 30th, 2019
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.79 KB | None | 0 0
  1. # sep/30/2019 12:41:41 by RouterOS 6.45.6
  2. # software id = 4L42-C3TX
  3. #
  4. # model = RB941-2nD
  5. # serial number = A1C30A560349
  6. /interface bridge
  7. add admin-mac=74:4D:28:40:EF:59 auto-mac=no comment=defconf name=bridge
  8. add name=bridge-hotspot
  9. /interface wireless
  10. set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
  11. disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=\
  12. "Hot Spot Nasa" wireless-protocol=802.11
  13. /interface ethernet
  14. set [ find default-name=ether1 ] advertise=\
  15. 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
  16. set [ find default-name=ether2 ] advertise=\
  17. 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
  18. set [ find default-name=ether3 ] advertise=\
  19. 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
  20. set [ find default-name=ether4 ] advertise=\
  21. 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
  22. /interface list
  23. add comment=defconf name=WAN
  24. add comment=defconf name=LAN
  25. /interface wireless security-profiles
  26. set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk eap-methods="" \
  27. supplicant-identity=MikroTik wpa-pre-shared-key=xxxxxxxxxxxx\
  28. wpa2-pre-shared-key=xxxxxxxxxx
  29. add authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys name=profile \
  30. supplicant-identity=MikroTik wpa-pre-shared-key=xxxxxxxxxxxxx \
  31. wpa2-pre-shared-key=xxxxxxxxxxxxx
  32. /ip hotspot profile
  33. add dns-name=hot.spot hotspot-address=10.10.4.1 login-by=http-chap,mac-cookie \
  34. name=hsprof1 use-radius=yes
  35. /ip pool
  36. add name=dhcp ranges=10.10.3.2-10.10.3.253
  37. add name=hs-pool-9 ranges=10.10.4.2-10.10.4.254
  38. /ip dhcp-server
  39. add address-pool=dhcp disabled=no interface=bridge name=defconf
  40. add address-pool=hs-pool-9 disabled=no interface=bridge-hotspot lease-time=1h \
  41. name=dhcp1
  42. /ip hotspot
  43. add address-pool=hs-pool-9 addresses-per-mac=1 disabled=no interface=\
  44. bridge-hotspot name=hotspot1 profile=hsprof1
  45. /interface bridge filter
  46. # no interface
  47. add action=drop chain=forward in-interface=*8
  48. # no interface
  49. add action=drop chain=forward out-interface=*8
  50. /interface bridge port
  51. add bridge=bridge comment=defconf interface=ether2
  52. add bridge=bridge comment=defconf interface=ether3
  53. add bridge=bridge comment=defconf interface=ether4
  54. add bridge=bridge-hotspot comment=defconf interface=wlan1
  55. add bridge=bridge interface=*8
  56. /ip neighbor discovery-settings
  57. set discover-interface-list=LAN
  58. /interface list member
  59. add comment=defconf interface=bridge list=LAN
  60. add comment=defconf interface=ether1 list=WAN
  61. /interface wireless access-list
  62. add ap-tx-limit=40000000
  63. /ip address
  64. add address=10.10.3.1/24 comment=defconf interface=ether2 network=10.10.3.0
  65. add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
  66. add address=10.10.4.1/24 interface=bridge-hotspot network=10.10.4.0
  67. /ip dhcp-client
  68. add comment=defconf dhcp-options=hostname,clientid interface=ether1
  69. /ip dhcp-server network
  70. add address=10.10.3.0/24 comment=defconf gateway=10.10.3.1 netmask=24
  71. add address=10.10.4.0/24 comment="hotspot network" gateway=10.10.4.1
  72. /ip dns
  73. set allow-remote-requests=yes servers=1.1.1.1,1.0.0.1
  74. /ip dns static
  75. add address=10.10.3.1 name=router.lan
  76. /ip firewall filter
  77. add action=passthrough chain=unused-hs-chain comment=\
  78. "place hotspot rules here" disabled=yes
  79. add action=accept chain=input comment=\
  80. "defconf: accept established,related,untracked" connection-state=\
  81. established,related,untracked
  82. add action=drop chain=input comment="defconf: drop invalid" connection-state=\
  83. invalid
  84. add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
  85. add action=drop chain=input comment="defconf: drop all not coming from LAN" \
  86. in-interface-list=!LAN
  87. add action=accept chain=forward comment="defconf: accept in ipsec policy" \
  88. ipsec-policy=in,ipsec
  89. add action=accept chain=forward comment="defconf: accept out ipsec policy" \
  90. ipsec-policy=out,ipsec
  91. add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
  92. connection-state=established,related
  93. add action=accept chain=forward comment=\
  94. "defconf: accept established,related, untracked" connection-state=\
  95. established,related,untracked
  96. add action=drop chain=forward comment="defconf: drop invalid" \
  97. connection-state=invalid
  98. add action=drop chain=forward comment=\
  99. "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
  100. connection-state=new in-interface-list=WAN
  101. /ip firewall nat
  102. add action=passthrough chain=unused-hs-chain comment=\
  103. "place hotspot rules here" disabled=yes
  104. add action=masquerade chain=srcnat comment="defconf: masquerade" \
  105. ipsec-policy=out,none out-interface-list=WAN
  106. add action=dst-nat chain=dstnat comment=OpenVPN dst-address=192.168.1.2 \
  107. dst-port=443 protocol=tcp to-addresses=10.10.3.231 to-ports=443
  108. add action=masquerade chain=srcnat comment="masquerade hotspot network" \
  109. src-address=10.10.4.0/24
  110. /ip hotspot user
  111. add name=admin password=xxxxxxxxxxxxxxxx
  112. add comment="mark account" name=mark password=xxxxxxxxxxxx server=hotspot1
  113. add comment="welcome jimaras how are you \?" name=Jimaras password=\
  114. xxxxxxxxxxxxx server=hotspot1
  115. add comment=welcome name=john password=xxxxxxxxxxxxxx server=hotspot1
  116. add comment="asus laptop" name=babas password=xxxxxxxxxxx server=hotspot1
  117. add name=Asus password=xxxxxxxxxxxx server=hotspot1
  118. add name=laptopMark password=xxxxxxxxxxxxx server=hotspot1
  119. /ip route
  120. add distance=1 gateway=192.168.1.254
  121. add distance=1 dst-address=10.10.10.0/24 gateway=10.10.3.231
  122. /ip ssh
  123. set allow-none-crypto=yes forwarding-enabled=remote
  124. /radius
  125. add address=127.0.0.1 secret=xxxxxxxxxx service=hotspot
  126. /radius incoming
  127. set accept=yes
  128. /system clock
  129. set time-zone-name=Europe/Athens
  130. /tool mac-server
  131. set allowed-interface-list=LAN
  132. /tool mac-server mac-winbox
  133. set allowed-interface-list=LAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement