вопрос про hotspot через wi-fi

Обсуждение ПО и его настройки
Ответить
mitas
Сообщения: 2
Зарегистрирован: 31 май 2017, 13:59

привет сетевые инженеры, микротиком занимаюсь второй день потому не пинайте) девайс - RB951G-2HnD

суть вопроса - по инструкции настраивал hotspot
и в итоге он переадресует на свой сайт только если в браузере ввести ип адрес типа "8.8.8.8", а если имя сайта типа "ya.ru" то пишет страница не найдена
хочу сразу сказать - к интернету он не подключен т.к. принципе он не нужен для настройки хотспота.. или нет?
вот конфиг, сам я в нем не разбираюсь, настраивал через web интерфейс, к тому же много отсебятины настроил лишней.. :ne_vi_del:

Код: Выделить всё

# may/30/2017 20:43:59 by RouterOS 6.39.1
# software id = UIMM-LCQK
#
/interface bridge
add name=bridge2
/interface wireless
set [ find default-name=wlan1 ] country="united states" disabled=no frequency=2422 mode=ap-bridge ssid=tik wireless-protocol=802.11
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys wpa-pre-shared-key=11998811 wpa2-pre-shared-key=11998811
add authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys name=profile wpa-pre-shared-key=11998811 wpa2-pre-shared-key=11998811
/ip hotspot profile
set [ find default=yes ] login-by=http-chap,trial trial-uptime-limit=2m
add hotspot-address=192.168.2.1 login-by=http-chap,trial name=hsprof1 trial-uptime-limit=2m
/ip pool
add name=dhcp ranges=192.168.2.10-192.168.2.20
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge2 name=dhcp1
/ip hotspot
add address-pool=dhcp disabled=no interface=bridge2 name=hotspot1 profile=hsprof1
/ip hotspot user profile
set [ find default=yes ] address-pool=dhcp open-status-page=http-login shared-users=unlimited transparent-proxy=yes
/interface bridge filter
# no interface
add action=drop chain=forward in-interface=*8
# no interface
add action=drop chain=forward out-interface=*8
/interface bridge port
add bridge=bridge2 interface=ether2
add bridge=bridge2 interface=ether3
add bridge=bridge2 interface=ether4
add bridge=bridge2 interface=ether5
add bridge=bridge2 interface=wlan1
add bridge=bridge2
/interface l2tp-server server
set caller-id-type=ip-address
/ip address
add address=192.168.2.1/8 interface=bridge2 network=192.0.0.0
add address=192.168.2.1/24 comment="hotspot network" interface=bridge2 network=192.168.2.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.0.0.0/8 dns-server=192.168.2.1 gateway=192.168.2.1 netmask=8
add address=192.168.2.0/24 comment="hotspot network" dns-server=192.168.2.1 gateway=192.168.2.1
/ip dns
set allow-remote-requests=yes servers=192.168.2.1
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
/ip firewall nat
add action=redirect chain=hotspot dst-port=80 hotspot=local-dst protocol=tcp to-ports=64873
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes src-address=!192.168.2.0 src-address-list=""
add action=masquerade chain=srcnat disabled=yes out-interface=ether1
add action=masquerade chain=srcnat comment="masquerade hotspot network" disabled=yes src-address=192.0.0.0/8
/ip hotspot user
add name=admin
/system routerboard settings
set init-delay=0s


Аватара пользователя
algerka
Сообщения: 407
Зарегистрирован: 14 дек 2011, 12:31

mitas писал(а):add address=192.168.2.1/8 interface=bridge2 network=192.0.0.0
add address=192.168.2.1/24 comment="hotspot network" interface=bridge2 network=192.168.2.0

вы уверены что это нужно ?


Александр
mitas
Сообщения: 2
Зарегистрирован: 31 май 2017, 13:59

algerka писал(а):
mitas писал(а):add address=192.168.2.1/8 interface=bridge2 network=192.0.0.0
add address=192.168.2.1/24 comment="hotspot network" interface=bridge2 network=192.168.2.0

вы уверены что это нужно ?


я даже не уверен в том, что там написано.. :du_ma_et: ) но направление я понял, спасибо)


Ответить