Всем привет! У меня очень простая настройка хотспота — открытая Wi-Fi сеть. Я создал VLANы, чтобы изолировать точки доступа друг от друга, плюс на каждой точке включена опция изоляции клиентов, чтобы подключённые устройства не «видели» друг друга. Точки доступа в моей сети — NSM2 в режиме моста. AP напрямую подключены к обычному неуправляемому коммутатору, а от коммутатора — к LAN-порту Ethernet на x86 RouterOS. Пока нет бюджета на управляемый коммутатор, но всё прекрасно работает и защищает сеть от сканирующих инструментов. Каждому VLAN назначены свои настройки DHCP, HOTSPOT и NAT. Вот код:
/interface ethernet
set 0 arp=enabled auto-negotiation=yes cable-settings=default disable-running-check=yes disabled=no full-duplex=yes l2mtu=16383 mac-address=xxx mtu=1500 name=LAN speed=1Gbps
set 1 arp=enabled auto-negotiation=yes cable-settings=default disable-running-check=yes disabled=no full-duplex=yes l2mtu=16383 mac-address=xxx mtu=1500 name=WAN speed=1Gbps
/interface vlan
add arp=enabled disabled=no interface=LAN l2mtu=16379 mtu=1500 name=VLAN_A use-service-tag=no vlan-id=11
add arp=enabled disabled=no interface=LAN l2mtu=16379 mtu=1500 name=VLAN_B use-service-tag=no vlan-id=12
add arp=enabled disabled=no interface=LAN l2mtu=16379 mtu=1500 name=VLAN_C use-service-tag=no vlan-id=13
/ip address
add address=192.168.2.1/24 disabled=no interface=LAN network=192.168.2.0
add address=192.168.11.1/24 disabled=no interface=VLAN_A network=192.168.11.0
add address=192.168.12.1/24 disabled=no interface=VLAN_B network=192.168.12.0
add address=192.168.13.1/24 disabled=no interface=VLAN_C network=192.168.13.0
add address=10.0.0.1/24 disabled=no interface=WAN network=10.0.0.0
/ip dhcp-server
add address-pool=VLAN_A authoritative=after-2sec-delay bootp-support=static disabled=no interface=VLAN_A lease-time=4w2d name=VLAN_A
add address-pool=VLAN_B authoritative=after-2sec-delay bootp-support=static disabled=no interface=VLAN_B lease-time=4w2d name=VLAN_B
add address-pool=VLAN_C authoritative=after-2sec-delay bootp-support=static disabled=no interface=VLAN_C lease-time=4w2d name=VLAN_C
/ip dhcp-server network
add address=192.168.11.0/24 dhcp-option="" dns-server="" gateway=192.168.11.1 ntp-server="" wins-server=""
add address=192.168.12.0/24 dhcp-option="" dns-server="" gateway=192.168.12.1 ntp-server="" wins-server=""
add address=192.168.13.0/24 dhcp-option="" dns-server="" gateway=192.168.13.1 ntp-server="" wins-server=""
/ip pool
add name=VLAN_A ranges=192.168.11.2-192.168.11.254
add name=VLAN_B ranges=192.168.12.2-192.168.12.254
add name=VLAN_C ranges=192.168.13.2-192.168.13.254
/ip hotspot profile
set [ find default=yes ] dns-name= hotspot-address=192.168.2.1 html-directory=hotspot http-cookie-lifetime=3d http-proxy=0.0.0.0:0 login-by=cookie,http-chap,https,http-pap name=default nas-port-type=wireless-802.11 radius-accounting=yes radius-default-domain="" radius-interim-update=received radius-location-id="" radius-location-name="" radius-mac-format=XX:XX:XX:XX:XX:XX rate-limit="" smtp-server=0.0.0.0 split-user-domain=no ssl-certificate=none use-radius=yes
/ip hotspot
add disabled=no idle-timeout=5m interface=LAN keepalive-timeout=none name=LAN profile=default
add disabled=no idle-timeout=5m interface=VLAN_A keepalive-timeout=none name=VLAN_A profile=default address-pool=none
add disabled=no idle-timeout=5m interface=VLAN_B keepalive-timeout=none name=VLAN_B profile=default address-pool=none
add disabled=no idle-timeout=5m interface=VLAN_C keepalive-timeout=none name=VLAN_C profile=default address-pool=none
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m name=default on-login="" on-logout="" rate-limit=180k/450k shared-users=1 status-autorefresh=1m transparent-proxy=no
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=WAN src-address=192.168.2.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN src-address=192.168.11.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN src-address=192.168.12.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN src-address=192.168.13.0/24
=====================================
Ребята, я понимаю, что конфигурация очень простая, но вот у меня странная проблема. Скорость интернет-соединения ужасная — всего около половины от реальной скорости моего провайдера, иногда чуть больше. Я понизил версию RouterOS с 6.x до 5.21, но ничего не поменялось. В чем может быть проблема? Если нужно, могу выложить настройки моих точек доступа, чтобы было понятнее. Спасибо заранее за советы и помощь!
/interface ethernet
set 0 arp=enabled auto-negotiation=yes cable-settings=default disable-running-check=yes disabled=no full-duplex=yes l2mtu=16383 mac-address=xxx mtu=1500 name=LAN speed=1Gbps
set 1 arp=enabled auto-negotiation=yes cable-settings=default disable-running-check=yes disabled=no full-duplex=yes l2mtu=16383 mac-address=xxx mtu=1500 name=WAN speed=1Gbps
/interface vlan
add arp=enabled disabled=no interface=LAN l2mtu=16379 mtu=1500 name=VLAN_A use-service-tag=no vlan-id=11
add arp=enabled disabled=no interface=LAN l2mtu=16379 mtu=1500 name=VLAN_B use-service-tag=no vlan-id=12
add arp=enabled disabled=no interface=LAN l2mtu=16379 mtu=1500 name=VLAN_C use-service-tag=no vlan-id=13
/ip address
add address=192.168.2.1/24 disabled=no interface=LAN network=192.168.2.0
add address=192.168.11.1/24 disabled=no interface=VLAN_A network=192.168.11.0
add address=192.168.12.1/24 disabled=no interface=VLAN_B network=192.168.12.0
add address=192.168.13.1/24 disabled=no interface=VLAN_C network=192.168.13.0
add address=10.0.0.1/24 disabled=no interface=WAN network=10.0.0.0
/ip dhcp-server
add address-pool=VLAN_A authoritative=after-2sec-delay bootp-support=static disabled=no interface=VLAN_A lease-time=4w2d name=VLAN_A
add address-pool=VLAN_B authoritative=after-2sec-delay bootp-support=static disabled=no interface=VLAN_B lease-time=4w2d name=VLAN_B
add address-pool=VLAN_C authoritative=after-2sec-delay bootp-support=static disabled=no interface=VLAN_C lease-time=4w2d name=VLAN_C
/ip dhcp-server network
add address=192.168.11.0/24 dhcp-option="" dns-server="" gateway=192.168.11.1 ntp-server="" wins-server=""
add address=192.168.12.0/24 dhcp-option="" dns-server="" gateway=192.168.12.1 ntp-server="" wins-server=""
add address=192.168.13.0/24 dhcp-option="" dns-server="" gateway=192.168.13.1 ntp-server="" wins-server=""
/ip pool
add name=VLAN_A ranges=192.168.11.2-192.168.11.254
add name=VLAN_B ranges=192.168.12.2-192.168.12.254
add name=VLAN_C ranges=192.168.13.2-192.168.13.254
/ip hotspot profile
set [ find default=yes ] dns-name= hotspot-address=192.168.2.1 html-directory=hotspot http-cookie-lifetime=3d http-proxy=0.0.0.0:0 login-by=cookie,http-chap,https,http-pap name=default nas-port-type=wireless-802.11 radius-accounting=yes radius-default-domain="" radius-interim-update=received radius-location-id="" radius-location-name="" radius-mac-format=XX:XX:XX:XX:XX:XX rate-limit="" smtp-server=0.0.0.0 split-user-domain=no ssl-certificate=none use-radius=yes
/ip hotspot
add disabled=no idle-timeout=5m interface=LAN keepalive-timeout=none name=LAN profile=default
add disabled=no idle-timeout=5m interface=VLAN_A keepalive-timeout=none name=VLAN_A profile=default address-pool=none
add disabled=no idle-timeout=5m interface=VLAN_B keepalive-timeout=none name=VLAN_B profile=default address-pool=none
add disabled=no idle-timeout=5m interface=VLAN_C keepalive-timeout=none name=VLAN_C profile=default address-pool=none
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m name=default on-login="" on-logout="" rate-limit=180k/450k shared-users=1 status-autorefresh=1m transparent-proxy=no
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=WAN src-address=192.168.2.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN src-address=192.168.11.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN src-address=192.168.12.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN src-address=192.168.13.0/24
=====================================
Ребята, я понимаю, что конфигурация очень простая, но вот у меня странная проблема. Скорость интернет-соединения ужасная — всего около половины от реальной скорости моего провайдера, иногда чуть больше. Я понизил версию RouterOS с 6.x до 5.21, но ничего не поменялось. В чем может быть проблема? Если нужно, могу выложить настройки моих точек доступа, чтобы было понятнее. Спасибо заранее за советы и помощь!
