Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # may/11/2014 01:24:45 by RouterOS 6.12
- # software id = K6Z0-T31J
- #
- /interface ethernet
- set [ find default-name=ether2 ] master-port=ether1
- set [ find default-name=ether3 ] master-port=ether1
- set [ find default-name=ether4 ] master-port=ether1
- set [ find default-name=ether5 ] master-port=ether1
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- add authentication-types=wpa-psk,wpa2-psk eap-methods="" \
- management-protection=allowed name="I2G WiFi" supplicant-identity=""
- /interface wireless
- set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no frequency=auto \
- l2mtu=2290 mode=ap-bridge name=WiFi security-profile="I2G WiFi" ssid=\
- "IT2GO Hotspot"
- /ip hotspot profile
- add hotspot-address=10.200.0.1 login-by=http-chap name=hsprof1
- /ip hotspot user profile
- set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
- mac-cookie-timeout=3d
- /ip pool
- add name=dhcp_pool1 ranges=10.100.0.100-10.100.0.254
- add name=hs-pool-12 ranges=10.200.0.2-10.200.0.254
- /ip dhcp-server
- add add-arp=yes address-pool=dhcp_pool1 disabled=no interface=ether1 \
- lease-time=15m name=dhcp1
- add add-arp=yes address-pool=hs-pool-12 disabled=no interface=WiFi \
- lease-time=1h name=dhcp2
- /ip hotspot
- add address-pool=hs-pool-12 disabled=no interface=WiFi name=hotspot1 profile=\
- hsprof1
- /port
- set 0 name=serial0
- /tool user-manager customer
- set admin signup-allowed=yes
- /tool user-manager profile
- add name="I2G 1u" name-for-users="" override-shared-users=off owner=admin \
- price=0 starts-at=logon validity=0s
- /tool user-manager profile limitation
- add address-list="" download-limit=0B group-name="" ip-pool="" name="I2G 1U" \
- rate-limit-burst-rx=2097152B rate-limit-burst-time-rx=10s \
- rate-limit-burst-time-tx=10s rate-limit-burst-treshold-rx=1048576B \
- rate-limit-burst-treshold-tx=1048576B rate-limit-burst-tx=2097152B \
- rate-limit-min-rx=1048576B rate-limit-min-tx=1048576B rate-limit-rx=\
- 1048576B rate-limit-tx=1048576B transfer-limit=0B upload-limit=0B \
- uptime-limit=1h
- /ip address
- add address=10.100.0.1/24 interface=ether1 network=10.100.0.0
- add address=10.200.0.1/24 interface=WiFi network=10.200.0.0
- /ip dhcp-client
- add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
- interface=ether10 use-peer-dns=no use-peer-ntp=no
- /ip dhcp-server network
- add address=10.100.0.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.100.0.1
- add address=10.200.0.0/24 comment="hotspot network" dns-server=\
- 8.8.8.8,8.8.4.4 gateway=10.200.0.1
- /ip dns
- set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
- /ip firewall filter
- add action=passthrough chain=unused-hs-chain comment=\
- "place hotspot rules here" disabled=yes
- /ip firewall nat
- add action=passthrough chain=unused-hs-chain comment=\
- "place hotspot rules here" disabled=yes to-addresses=0.0.0.0
- add action=masquerade chain=srcnat out-interface=ether10
- add action=masquerade chain=srcnat comment="masquerade hotspot network" \
- out-interface=ether10 src-address=10.200.0.0/24
- /ip hotspot user
- add name=admin
- /ip upnp
- set allow-disable-external-interface=no
- /lcd
- set backlight-timeout=never default-screen=informative-slideshow \
- read-only-mode=yes
- /lcd interface
- set sfp1 interface=sfp1
- set ether1 interface=ether1
- set ether2 interface=ether2
- set ether3 interface=ether3
- set ether4 interface=ether4
- set ether5 interface=ether5
- set ether6 interface=ether6
- set ether7 interface=ether7
- set ether8 interface=ether8
- set ether9 interface=ether9
- set ether10 interface=ether10
- set WiFi interface=WiFi
- /lcd screen
- set 0 timeout=3s
- set 1 timeout=3s
- set 2 timeout=3s
- set 3 timeout=3s
- set 4 timeout=3s
- set 5 timeout=3s
- /system identity
- set name=Hotspot
- /system lcd
- set contrast=0 enabled=no port=parallel type=24x4
- /system lcd page
- set time disabled=no display-time=3s
- set resources disabled=no display-time=3s
- set uptime disabled=no display-time=3s
- set packets disabled=no display-time=3s
- set bits disabled=no display-time=3s
- set version disabled=no display-time=3s
- set identity disabled=no display-time=3s
- set WiFi disabled=yes display-time=5s
- set sfp1 disabled=yes display-time=5s
- set ether1 disabled=yes display-time=5s
- set ether2 disabled=yes display-time=5s
- set ether3 disabled=yes display-time=5s
- set ether4 disabled=yes display-time=5s
- set ether5 disabled=yes display-time=5s
- set ether6 disabled=yes display-time=5s
- set ether7 disabled=yes display-time=5s
- set ether8 disabled=yes display-time=5s
- set ether9 disabled=yes display-time=5s
- set ether10 disabled=yes display-time=5s
- /system ntp client
- set enabled=yes primary-ntp=195.130.132.18 secondary-ntp=195.13.23.5
- /tool user-manager profile profile-limitation
- add from-time=0s limitation="I2G 1U" profile="I2G 1u" till-time=23h59m59s \
- weekdays=sunday,monday,tuesday,wednesday,thursday,friday,saturday
- /tool user-manager user
- add customer=admin disabled=no name=kris password=password12345 shared-users=1 \
- wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
- add customer=admin disabled=no name=isa password=password12345 shared-users=1 \
- wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
Advertisement
Add Comment
Please, Sign In to add comment