# nov/20/2015 15:30:27 by RouterOS 6.33
# software id = K4NT-T8XL
#
/interface bridge
add mtu=1500 name=TEST
add mtu=1500 name=locale
/ip hotspot profile
add hotspot-address=10.5.50.1 name=hsprof1
add hotspot-address=10.5.50.1 name=hsprof2
/ip pool
add name=hs-pool-3 ranges=192.168.88.2-192.168.88.254
add name=hs-pool-12 ranges=10.5.50.2-10.5.50.254
/ip dhcp-server
# DHCP server can not run on slave interface!
add address-pool=hs-pool-3 disabled=no interface=ether2 lease-time=1h name=\
dhcp1
add address-pool=hs-pool-12 disabled=no interface=TEST lease-time=1h name=dhcp2
/ip hotspot
add address-pool=hs-pool-12 disabled=no interface=TEST name=hotspot1 profile=\
hsprof2
/interface bridge port
add bridge=TEST interface=ether3
add bridge=TEST interface=ether4
add bridge=TEST interface=ether5
add bridge=TEST interface=ether2
add bridge=locale interface=ether6
add bridge=locale interface=ether7
/ip address
add address=192.168.1.13/24 comment=WAN interface=ether1 network=192.168.1.0
add address=10.5.50.1/24 comment="hotspot network" interface=TEST network=\
10.5.50.0
add address=10.0.0.2/24 comment="LAN PRIVATA" interface=locale network=10.0.0.0
/ip dhcp-server network
add address=10.5.50.0/24 comment="hotspot network" gateway=10.5.50.1
add address=192.168.88.0/24 comment="hotspot network" gateway=192.168.88.1
/ip dns
set servers=192.168.1.1
/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
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.88.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=10.5.50.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=10.5.50.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=10.5.50.0/24
/ip hotspot user
add name=admin
/ip hotspot walled-garden
add comment="place hotspot rules here" disabled=yes
/ip hotspot walled-garden ip
add action=accept disabled=no dst-host=www.facebook.it
add action=accept disabled=no dst-host=https://www.facebook.com/
add action=accept disabled=no dst-host=https://instagram.com
add action=accept disabled=no dst-host=www.capriwebdesign.com
/ip route
add distance=1 gateway=192.168.1.1
/system clock
set time-zone-name=Europe/Rome
/tool romon port
set [ find default=yes ] cost=100 forbid=no interface=all secrets=""
[admin@MikroTik] >
