Guest User

Untitled

a guest
Oct 1st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. # oct/01/2019 13:21:26 by RouterOS 6.45.6
  2. # software id = 4L42-C3TX
  3. #
  4. # model = RB941-2nD
  5. # serial number = A1C30A560349
  6. /interface bridge
  7. add name=bridge-hotspot
  8. /interface wireless
  9. set [ find default-name=wlan1 ] disabled=no mode=ap-bridge ssid=\
  10. "Hot spot Nasa"
  11. /interface wireless security-profiles
  12. set [ find default=yes ] supplicant-identity=MikroTik
  13. /ip hotspot profile
  14. add dns-name=hot.spot hotspot-address=10.10.4.1 login-by=http-chap name=\
  15. hsprof1 use-radius=yes
  16. /ip pool
  17. add name=hs-pool-7 ranges=10.10.4.2-10.10.4.254
  18. /ip dhcp-server
  19. add address-pool=hs-pool-7 disabled=no interface=bridge-hotspot lease-time=1h \
  20. name=dhcp1
  21. /ip hotspot
  22. add address-pool=hs-pool-7 addresses-per-mac=1 disabled=no interface=\
  23. bridge-hotspot name=hotspot1 profile=hsprof1
  24. /interface bridge port
  25. add bridge=bridge-hotspot interface=wlan1
  26. /ip address
  27. add address=192.168.1.2/24 comment="main subnet router/modem" interface=\
  28. ether1 network=192.168.1.0
  29. add address=10.10.3.1/24 comment=\
  30. "subnet 10.10.3.0 \E4\DF\EA\F4\F5\EF mikrotik" interface=ether2 network=\
  31. 10.10.3.0
  32. add address=10.10.4.1/24 comment="ip address assign to bridge" interface=\
  33. bridge-hotspot network=10.10.4.0
  34. /ip dhcp-server network
  35. add address=10.10.4.0/24 comment="hotspot network" dns-server=10.10.4.1 \
  36. gateway=10.10.4.1
  37. /ip dns
  38. set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
  39. /ip dns static
  40. add address=10.10.4.1 name=hot.spot
  41. /ip firewall filter
  42. add action=passthrough chain=unused-hs-chain comment=\
  43. "place hotspot rules here" disabled=yes
  44. /ip firewall nat
  45. add action=passthrough chain=unused-hs-chain comment=\
  46. "place hotspot rules here" disabled=yes
  47. add action=masquerade chain=srcnat
  48. add action=masquerade chain=srcnat comment="masquerade hotspot network" \
  49. src-address=10.10.4.0/24
  50. add action=dst-nat chain=dstnat dst-port=443 in-interface=ether1 \
  51. in-interface-list=all protocol=tcp to-addresses=10.10.3.231 to-ports=443
  52. /ip hotspot user
  53. add name=admin password=xxxxxxxxxxx
  54. /ip route
  55. add distance=1 gateway=192.168.1.1
  56. add distance=1 dst-address=10.10.10.0/24 gateway=10.10.3.231
  57. /ip ssh
  58. set allow-none-crypto=yes forwarding-enabled=remote
  59. /radius
  60. add address=127.0.0.1 secret="\CE\E9\EC\E1\F1\E1\F35511" service=hotspot
  61. /radius incoming
  62. set accept=yes
  63. /system clock
  64. set time-zone-name=Europe/Athens
Add Comment
Please, Sign In to add comment