Advertisement
Guest User

Untitled

a guest
Oct 31st, 2016
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. #По умолчанию конфигурируется интерфейс wlan1, если у Вы используете другой интерфейс отредактируйте настройки в соответствии со своими потребностями.
  2. /interface l2tp-client add name=l2tp-rootoo max-mtu=1450 max-mru=1450 mrru=1600 connect-to=136.243.20.240 user=vpn_user_35 password=4THrMwl9JEQb profile=default-encryption keepalive-timeout=60 add-default-route=no dial-on-demand=no allow=pap,chap,mschap1,mschap2 disabled=no
  3.  
  4. /ip dns static add address=10.0.0.1 name=wifi.rootoo.ru
  5.  
  6. /ip firewall nat add action=masquerade chain=srcnat dst-address=10.0.0.1 out-interface=l2tp-rootoo src-address=10.133.35.1/24
  7.  
  8. /interface wireless set numbers=0 mode=ap-bridge band=2ghz-b/g/n frequency=2412 ssid=HOTSPOT wireless-protocol=802.11 distance=indoors hw-protection-mode=rts-cts preamble-mode=long disabled=no
  9.  
  10. /ip address add interface=wlan1 address=10.133.35.1/24
  11.  
  12. /ip pool add name=hotspot-clients ranges=10.133.35.2-10.133.35.254
  13.  
  14. /ip dhcp-server add name=dhcp_hotspot interface=wlan1 address-pool=hotspot-clients disabled=no
  15.  
  16. /ip dhcp-server network add address=10.133.35.0/24 gateway=10.133.35.1 dns-server=10.133.35.1
  17.  
  18. /radius add disabled=no service=hotspot address=10.0.0.1 secret=ovKmnPZ7uA38
  19.  
  20. /ip hotspot profile add name=hotspot-online.ru hotspot-address=10.133.35.1 dns-name=hello.hotspot-online.ru html-directory=hotspot use-radius=yes radius-accounting=yes nas-port-type=wireless-802.11 login-by=http-pap radius-mac-format=XX:XX:XX:XX:XX:XX
  21.  
  22. /ip hotspot add name=35.hotspot-online.ru interface=wlan1 address-pool=hotspot-clients profile=hotspot-online.ru disabled=no
  23.  
  24. /ip hotspot walled-garden ip add action=accept disabled=no dst-host=wifi.rootoo.ru server=35.hotspot-online.ru src-address=10.133.35.1/24
  25.  
  26. /tool fetch url=http://wifi.rootoo.ru/auth_form/rootoo.html dst-path=([/ip hotspot profile get hotspot-online.ru html-directory ] . "/login.html")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement