xvo писал(а): ↑17 авг 2021, 10:24
Vlan на котором работает hotspot протянуть до всех точек.
Протянут на всех ТД
Вот конфиг контроллера
У ТД тоже самое только без настроек cpasman и hotspot
/caps-man channel
add band=5ghz-n/ac control-channel-width=20mhz name=channel5 tx-power=20
add band=2ghz-onlyn control-channel-width=20mhz extension-channel=XX \
frequency=2412,2437,2462 name=channel2.4 tx-power=20
/interface bridge
add name=bridge-dev protocol-mode=none
add name=bridge-inf protocol-mode=none
add name=bridgeLAN protocol-mode=none
/interface vlan
add interface=ether1 name=vlan3 vlan-id=3
add interface=ether1 name=vlan16 vlan-id=16
add interface=ether1 name=vlan23 vlan-id=23
/caps-man datapath
add bridge=bridgeLAN local-forwarding=yes name=datapath1
add bridge=bridge-dev local-forwarding=yes name=datapath2
add bridge=bridge-inf local-forwarding=yes name=datapath3
/caps-man configuration
add channel=channel2.4 country=russia3 datapath=datapath2 distance=indoors \
hw-protection-mode=rts-cts hw-retries=6 installation=indoor mode=ap name=\
dev2.4 rx-chains=0,1,2,3 ssid=dev-test tx-chains=0,1,2,3
/caps-man security
add authentication-types=wpa2-psk encryption=aes-ccm group-encryption=aes-ccm \
name=pub passphrase=87654321
add authentication-types=wpa2-psk encryption=aes-ccm group-encryption=aes-ccm \
name=inf passphrase=87654321
/caps-man configuration
add channel=channel2.4 country=russia3 datapath=datapath1 distance=indoors \
guard-interval=long hw-protection-mode=rts-cts hw-retries=6 installation=\
indoor max-sta-count=30 mode=ap multicast-helper=full name=pub2.4 \
rx-chains=0,1,2,3 security=pub ssid=Pub tx-chains=0,1,2,3
add channel=channel2.4 country=russia3 datapath=datapath3 distance=indoors \
guard-interval=long hw-protection-mode=rts-cts hw-retries=6 installation=\
indoor max-sta-count=30 mode=ap multicast-helper=full name=inf2.4 \
rx-chains=0,1,2,3 security=inf ssid=inf-test tx-chains=0,1,2,3
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
add hotspot-address=10.131.41.1 html-directory=flash/hotspot login-by=\
http-pap name=hsprof1 radius-accounting=no use-radius=yes
/ip hotspot
add addresses-per-mac=unlimited disabled=no interface=bridge-dev \
keepalive-timeout=8h name=server1 profile=hsprof1
/ip hotspot user profile
set [ find default=yes ] add-mac-cookie=no keepalive-timeout=8h \
session-timeout=8h transparent-proxy=yes
/user group
set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,pas\
sword,web,sniff,sensitive,api,romon,dude,tikapp"
/caps-man aaa
set mac-format=XXXXXXXXXXXX
/caps-man manager
set enabled=yes
/caps-man provisioning
add action=create-enabled hw-supported-modes=gn master-configuration=\
pub2.4 name-format=identity slave-configurations=dev2.4,inf2.4
/interface bridge port
add bridge=bridgeLAN interface=wlan1
add bridge=bridgeLAN interface=vlan3
add bridge=bridge-dev interface=vlan16
add bridge=bridgeLAN interface=wlan2
add bridge=bridge-dev interface=wlan3
add bridge=bridge-inf interface=vlan23
add bridge=bridge-inf interface=wlan4
/interface bridge vlan
add bridge=bridgeLAN disabled=yes tagged=wlan1,ether1,vlan3,bridgeLAN \
vlan-ids=3
add bridge=bridge-dev disabled=yes tagged=bridge-dev,ether1,vlan16,wlan3 \
vlan-ids=16
/interface wireless cap
set caps-man-addresses=10.129.44.135 interfaces=wlan1 static-virtual=yes
/ip address
add address=10.129.44.135/25 interface=ether1 network=10.129.44.128
add address=10.31.41.1/24 interface=bridge-dev network=10.131.41.0
/ip cloud
set update-time=no
/ip dns
set allow-remote-requests=yes servers=18.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=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
set udplite disabled=yes
set dccp disabled=yes
set sctp disabled=yes
/ip hotspot service-port
set ftp disabled=yes
/ip hotspot user
add name=admin password=qmNU2lGQutABKGq2k
/ip hotspot walled-garden
add comment="place hotspot rules here" disabled=yes
add dst-host=8.8.8.8/32
/ip hotspot walled-garden ip
add action=accept disabled=no dst-address=8.8.8.8 !dst-address-list \
!dst-port !protocol !src-address !src-address-list
/ip route
add distance=1 gateway=10.129.44.129
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/radius
add address=10.36.4.1 secret=******** service=hotspot
add address=10.36.4.2 secret=******** service=hotspot
/snmp
set enabled=yes
/system clock
set time-zone-name=Europe/Moscow
/system identity
set name=test-2
/system logging
add topics=dhcp
/system ntp client
set enabled=yes primary-ntp=8.8.8.8
/user aaa
set use-radius=yes