Advertisement
Guest User

Untitled

a guest
Aug 28th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. # jan/13/2016 08:51:07 by RouterOS 6.33.3
  2. # software id = TY0Z-TRGX
  3. #
  4. /interface bridge
  5. add name=bridgeHotspot
  6. add name=bridgeWork
  7. /interface l2tp-client
  8. add allow=chap connect-to=185.41.160.223 disabled=no mrru=1600 name=l2tp-out1 \
  9. password=DegQswG user=ap_mik366
  10.  
  11. /interface wireless
  12. set [ find default-name=wlan1 ] disabled=no mode=ap-bridge ssid=test
  13. /interface wireless security-profiles
  14. set [ find default=yes ] supplicant-identity=CloudWiFi
  15. add authentication-types=wpa-psk,wpa2-psk eap-methods="" \
  16. management-protection=allowed mode=dynamic-keys name=wlan2 \
  17. supplicant-identity="" wpa-pre-shared-key=DegQswGwifi \
  18. wpa2-pre-shared-key=DegQswGwifi
  19. /interface wireless
  20. add disabled=no hide-ssid=yes master-interface=\
  21. wlan1 name=wlan2 security-profile=wlan2 ssid=work wds-cost-range=0 \
  22. wds-default-cost=0
  23. /ip hotspot profile
  24. add hotspot-address=177.10.0.1 login-by=http-chap,trial name=hsprof1 \
  25. trial-uptime-limit=0s trial-uptime-reset=1m
  26. /ip hotspot user profile
  27. set [ find default=yes ] keepalive-timeout=15m rate-limit=5m/5m shared-users=\
  28. unlimited
  29. /ip pool
  30. add name=hs-pool-7 ranges=177.10.0.2-177.10.0.254
  31. add name=dhcp_pool1 ranges=177.100.0.2-177.100.0.254
  32. /ip dhcp-server
  33. add address-pool=hs-pool-7 disabled=no interface=bridgeHotspot lease-time=1h \
  34. name=dhcp1
  35. add address-pool=dhcp_pool1 disabled=no interface=bridgeWork lease-time=1d \
  36. name=dhcp2
  37. /ip dns
  38. set allow-remote-requests=yes servers=8.8.8.8
  39. /ip hotspot
  40. add address-pool=hs-pool-7 disabled=no interface=bridgeHotspot name=hotspot1 \
  41. profile=hsprof1
  42. /interface bridge port
  43. add bridge=bridgeWork interface=ether3
  44. add bridge=bridgeHotspot interface=wlan1
  45. add bridge=bridgeHotspot interface=ether2
  46. add bridge=bridgeWork interface=wlan2
  47. /ip address
  48. add address=177.10.0.1/24 interface=bridgeHotspot network=177.10.0.0
  49. add address=177.100.0.1/24 interface=bridgeWork network=177.100.0.0
  50. /ip dhcp-server network
  51. add address=177.10.0.0/24 comment="hotspot network" dns-server=177.10.0.1 \
  52. gateway=177.10.0.1
  53. add address=177.100.0.0/24 gateway=177.100.0.1
  54. /ip firewall filter
  55. add action=passthrough chain=unused-hs-chain comment=\
  56. "place hotspot rules here" disabled=yes
  57. /ip firewall nat
  58. add action=passthrough chain=unused-hs-chain comment=\
  59. "place hotspot rules here" disabled=yes
  60. add action=masquerade chain=srcnat comment="masquerade hotspot network" \
  61. src-address=177.10.0.0/24
  62. add action=masquerade chain=srcnat src-address=177.100.0.0/24
  63. /ip hotspot user
  64. add name=admin
  65. /ip hotspot walled-garden
  66. add comment="place hotspot rules here" disabled=yes
  67. /ip hotspot walled-garden ip
  68. add action=accept disabled=no dst-address=185.41.160.223
  69. add action=accept disabled=no dst-host=maxcdn.bootstrapcdn.com
  70. add action=accept disabled=no dst-host=code.ionicframework.com
  71. add action=accept disabled=no dst-host=code.jquery.com
  72. add action=accept disabled=no dst-host=oauth.vk.com
  73. add action=accept disabled=no dst-host=pp.vk.me
  74. add action=accept disabled=no dst-host=login.vk.com
  75. add action=accept disabled=no dst-host=m.vk.com
  76. add action=accept disabled=no dst-host=connect.ok.ru
  77. add action=accept disabled=no dst-host=st.mycdn.me
  78. add action=accept disabled=no dst-host=www.facebook.com
  79. add action=accept disabled=no dst-host=m.facebook.com
  80. add action=accept disabled=no dst-host=static.xx.fbcdn.net
  81. add action=accept disabled=no dst-host=scontent.fhen1-1.fna.fbcdn.net
  82. /system clock
  83. set time-zone-name=Asia/Yekaterinburg
  84. /system identity
  85. set name=4C5E0CB0B92E
  86. /user
  87. set 0 name=ap_mik366
  88.  
  89. set 0 password=DegQswG
  90.  
  91. /tool
  92. fetch url=http://185.41.160.223/files/login.html dst-path=hotspot/login.html
  93. fetch url=http://185.41.160.223/files/alogin.html dst-path=hotspot/alogin.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement