admin@MikroTik] > export compact
# nov/22/2015 01:18:21 by RouterOS 6.33.1
# software id = K4NT-T8XL
#
/interface bridge
add mtu=1500 name=HOTSPOT
add mtu=1500 name=LAN
/ip hotspot profile
add dns-name=capriwebdesign.hotspot hotspot-address=192.168.100.1 name=hsprof1
/ip pool
add name=dhcp_pool1 ranges=10.0.0.2-10.0.0.254
add name=hs-pool-13 ranges=192.168.100.2-192.168.100.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=LAN name=DHCP_LAN
add address-pool=hs-pool-13 disabled=no interface=HOTSPOT lease-time=1h name=\
dhcp1
/ip hotspot
add address-pool=hs-pool-13 disabled=no interface=HOTSPOT name=HOTSPOT_FREE \
profile=hsprof1
/interface bridge port
add bridge=HOTSPOT interface=ether2
add bridge=HOTSPOT interface=ether3
add bridge=HOTSPOT interface=ether4
add bridge=LAN interface=ether5
add bridge=LAN interface=ether6
add bridge=LAN interface=ether7
/ip address
add address=192.168.1.13/24 comment=WAN interface=ether1 network=192.168.1.0
add address=192.168.100.1/24 comment="HOTSPOT CLIENTI" interface=ether2 \
network=192.168.100.0
add address=10.0.0.1/24 comment="LAN PRIVATA" interface=LAN network=10.0.0.0
/ip dhcp-server network
add address=10.0.0.0/24 gateway=10.0.0.1
add address=192.168.100.0/24 comment="hotspot network" gateway=192.168.100.1
/ip dns
set servers=8.8.8.8
/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.100.0/24
/ip hotspot user
add name=admin
/ip route
add distance=1 gateway=192.168.1.1
/system clock
set time-zone-name=Europe/Rome
[admin@MikroTik] >
Come va questa?
