da attilioferlisi » gio 8 mar 2012, 15:20
ecco la configurazione:
# mar/08/2012 15:18:41 by RouterOS 5.14
# software id = KREQ-HD69
#
/interface ethernet
set 0 name=LAN speed=1Gbps
set 1 name=ADSL speed=1Gbps
/interface wireless security-profiles
set [ find default=yes ] group-ciphers="" supplicant-identity=MikroTik \
unicast-ciphers=""
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot/lv login-by=http-chap
add dns-name=ALPHACOMUNICATION hotspot-address=10.0.0.1 html-directory=\
hotspot/lv name=hsprof1
/ip pool
add name=dhcp_pool2 ranges=10.0.0.100-10.0.0.254
add name=pppoe ranges=192.168.0.0/24
add name="pppoe remoti" ranges=192.168.3.0/24
/ip dhcp-server
add add-arp=yes address-pool=dhcp_pool2 disabled=no lease-time=30m name=dhcp2
add address-pool=pppoe disabled=no interface=LAN name="dhcp pppoe"
/ip hotspot
add address-pool=dhcp_pool2 idle-timeout=10m keepalive-timeout=10m name=\
server1 profile=hsprof1
/ip hotspot user profile
set [ find default=yes ] address-pool=dhcp_pool2 session-timeout=5m
/ppp profile
set 0 dns-server=62.94.0.41,62.94.0.42 local-address="pppoe remoti" \
rate-limit=4000000/256000 remote-address="pppoe remoti" session-timeout=\
30m
add comment="12 mega 256k" dns-server=62.94.0.41,62.94.0.42 local-address=\
pppoe name="profil0 12 mega" rate-limit=12000000/256000 remote-address=\
pppoe
add comment="20 mega 256k" dns-server=62.94.0.41,62.94.0.42 local-address=\
pppoe name="profilo 20 mega" rate-limit=20000000/256000 remote-address=\
pppoe
add comment="2 mega 128k" local-address=pppoe name="profilo 2 mega" \
rate-limit=2000000/128000 remote-address=pppoe
add comment="40 mega 512k" local-address=pppoe name="profilo 40 mega" \
rate-limit=40000000/512000 remote-address=pppoe
set 6 comment="7 mega 256k" dns-server=62.94.0.41,62.94.0.42 idle-timeout=\
2h30m local-address=pppoe rate-limit=7000000/256000 remote-address=pppoe \
session-timeout=2h30m use-encryption=no
/queue tree
add name=queue1 packet-mark=no-mark
/queue type
set 0 kind=bfifo
set 1 bfifo-limit=150000 kind=bfifo
/queue simple
add burst-time=16s/16s name="adsl queues" queue=\
ethernet-default/ethernet-default total-queue=ethernet-default
/interface l2tp-server server
set default-profile=default enabled=yes max-mru=512 max-mtu=512
/interface ovpn-server server
set mode=ethernet
/interface pppoe-server server
add default-profile=default-encryption disabled=no interface=LAN \
keepalive-timeout=disabled service-name=Alpha5M7mega
add disabled=no interface=LAN keepalive-timeout=disabled service-name=\
"prova connessione remota"
add default-profile="profilo 4 mega" disabled=no interface=LAN \
keepalive-timeout=disabled service-name=Alpha5M4mega
add default-profile="profil0 12 mega" disabled=no interface=LAN \
keepalive-timeout=disabled service-name=Alpha5M12mega
add default-profile="profilo 20 mega" disabled=no interface=LAN \
keepalive-timeout=disabled service-name=Alpha5M20mega
/interface pptp-server server
set authentication=pap,chap,mschap1,mschap2 default-profile="profilo 4 mega" \
enabled=yes keepalive-timeout=disabled mrru=512
/interface wireless access-list
add mac-address=00:27:22:50:36:7D
/interface wireless connect-list
add security-profile=default
/ip accounting
set account-local-traffic=yes enabled=yes
/ip address
add address=192.168.1.56/24 interface=ADSL
add address=10.0.0.1/24 interface=LAN
add address=192.168.0.1/24 interface=LAN
/ip dhcp-server config
set store-leases-disk=immediately
/ip dhcp-server network
add address=10.0.0.0/24 dns-server=62.94.0.41,62.94.0.42 gateway=10.0.0.1 \
netmask=24
/ip dns
set allow-remote-requests=yes max-udp-packet-size=1024 servers=62.94.0.41
/ip dns static
add address=62.94.0.41 name=eutelia
add address=62.94.0.42 name=eutelia
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here"
/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 comment="Added by webbox" out-interface=\
"(unknown)"
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
disabled=yes src-address=10.0.0.0/24 to-addresses=0.0.0.0
/ip hotspot service-port
set ftp ports=21,80,8080
/ip hotspot user
add name=attilio