Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #По умолчанию конфигурируется интерфейс wlan1, если у Вы используете другой интерфейс отредактируйте настройки в соответствии со своими потребностями.
- /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
- /ip dns static add address=10.0.0.1 name=wifi.rootoo.ru
- /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
- /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
- /ip address add interface=wlan1 address=10.133.35.1/24
- /ip pool add name=hotspot-clients ranges=10.133.35.2-10.133.35.254
- /ip dhcp-server add name=dhcp_hotspot interface=wlan1 address-pool=hotspot-clients disabled=no
- /ip dhcp-server network add address=10.133.35.0/24 gateway=10.133.35.1 dns-server=10.133.35.1
- /radius add disabled=no service=hotspot address=10.0.0.1 secret=ovKmnPZ7uA38
- /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
- /ip hotspot add name=35.hotspot-online.ru interface=wlan1 address-pool=hotspot-clients profile=hotspot-online.ru disabled=no
- /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
- /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