Zdravím,
řeším domácí síť, pokrytí celého domu WiFi jsem nakonec realizoval třema mikrotikama spravovanými CapsManem.
chtěl jsem pro hosty zřídit Hotspot , vše funguje až do chvíle kdy zapnu virtuální wifi capsmanu na hlavním routeru .
Klient který se připojí k hlavnímu routeru nedostane IP adresu, klient který se připojí ke kterému koliv ze zbývajících dvou nemá problém. Nemohu přijít na to kde jeproblém. Přikládám export. Doufám že mi pomůžete někdo najít chybu. Děkuji
`[admin@MikroTik] > /export
jan/31/2021 16:08:25 by RouterOS 6.48
software id = D88U-VWUC
#
model = RB962UiGS-5HacT2HnT
serial number = C5610BA54139
/interface bridge
add admin-mac=C4:AD:34😃E:90:2C auto-mac=no comment=defconf name=bridge
/interface wireless
managed by CAPsMAN
channel: 2447/20-eC/gn(27dBm), SSID: wifi_u_mecu, local forwarding
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
country="united states" disabled=no distance=indoors frequency=auto \
installation=indoor mode=ap-bridge ssid=wifi_u_mecu wireless-protocol=\
802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
20/40/80mhz-XXXX country="united states" disabled=no distance=indoors \
frequency=auto installation=indoor mode=ap-bridge ssid=wifi_u_mecu_5G \
wireless-protocol=802.11
/interface vlan
add interface=bridge name=vlan1 vlan-id=10
/caps-man datapath
add bridge=bridge client-to-client-forwarding=yes local-forwarding=yes name=\
datapath1
add bridge=bridge local-forwarding=yes name=datapath2 vlan-id=10 vlan-mode=\
use-tag
/caps-man security
add authentication-types=wpa2-psk name=security1 passphrase=LLLLLLL
add name=security2
/caps-man configuration
add country="united states" datapath=datapath1 mode=ap name=cfg1 security=\
security1 ssid=wifi_u_mecu
add datapath=datapath2 name=cfg2 security=security2 \
security.authentication-types="" ssid=HOTSPOT
/caps-man interface
add configuration=cfg1 disabled=no l2mtu=1600 mac-address=C4:AD:34😃E:90:32 \
master-interface=none name=MikroTik radio-mac=C4:AD:34😃E:90:32 \
radio-name=C4AD34DE9032
add configuration=cfg1 disabled=no l2mtu=1600 mac-address=48:8F:5A:8F:68:E8 \
master-interface=none name=MikroTik_2 radio-mac=48:8F:5A:8F:68:E8 \
radio-name=488F5A8F68E8
add configuration=cfg2 datapath=datapath2 disabled=no l2mtu=1600 mac-address=\
4A:8F:5A:8F:68:E8 master-interface=MikroTik_2 name=MikroTik_2_HOTSPOT \
radio-mac=00:00:00:00:00:00 radio-name="" security=security2
add arp=enabled configuration=cfg2 disabled=yes l2mtu=1600 mac-address=\
C6:AD:34😃E:90:32 master-interface=MikroTik name=MikroTik_HOTSPOT \
radio-mac=00:00:00:00:00:00 radio-name="" security=security2
add configuration=cfg1 disabled=no l2mtu=1600 mac-address=08:55:31:08:34:AE \
master-interface=none name=MikroTik_terasa radio-mac=08:55:31:08:34:AE \
radio-name=0855310834AE
add configuration=cfg2 datapath=datapath2 disabled=no l2mtu=1600 mac-address=\
0A:55:31:08:34:AE master-interface=MikroTik_terasa name=\
MikroTik_terasa_HOTSPOT radio-mac=00:00:00:00:00:00 radio-name="" \
security=security2
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=\
dynamic-keys supplicant-identity=MikroTik wpa-pre-shared-key=\
LLLLLLL wpa2-pre-shared-key=LLLLLLL
/ip hotspot profile
add dns-name=www.hotspotumecu.cz hotspot-address=192.168.20.1 html-directory=\
flash/hotspot login-by=cookie,http-chap,trial name=hsprof1
/ip pool
add name=dhcp ranges=192.168.2.30-192.168.2.254
add name=hs-pool-13 ranges=192.168.20.2-192.168.20.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
add address-pool=hs-pool-13 disabled=no interface=vlan1 lease-time=1h name=\
dhcp1
/ip hotspot
add address-pool=hs-pool-13 disabled=no interface=vlan1 name=hotspot1 \
profile=hsprof1
/tool user-manager customer
set admin access=\
own-routers,own-users,own-profiles,own-limits,config-payment-gw
/caps-man access-list
add action=accept allow-signal-out-of-range=always disabled=no mac-address=\
A4:CF:12:B6:35:0C signal-range=-120..120 ssid-regexp=""
/caps-man manager
set enabled=yes
/caps-man provisioning
add action=create-enabled master-configuration=cfg1 slave-configurations=cfg2
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface detect-internet
set detect-interface-list=all
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/interface wireless cap
#
set caps-man-addresses=127.0.0.1 enabled=yes interfaces=wlan1
/ip address
add address=192.168.2.1/24 comment=defconf interface=bridge network=\
192.168.2.0
add address=192.168.20.1/24 comment="hotspot network" interface=vlan1 \
network=192.168.20.0
/ip dhcp-client
add comment=defconf disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.2.0/24 caps-manager=192.168.2.1 comment=defconf gateway=\
192.168.2.1 netmask=24
add address=192.168.20.0/24 comment="hotspot network" gateway=192.168.20.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.2.1 comment=defconf name=router.lan
add address=192.168.2.20 name=homeassistant
add address=192.168.2.10 name=nsa310s
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
add action=reject chain=forward dst-address=192.168.2.0/24 reject-with=\
icmp-host-unreachable src-address=192.168.20.0/24
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.20.0/24
/ip hotspot user
set [ find default=yes ] limit-bytes-total=10000000
add name=admin password=LLLLLLL
add limit-uptime=5h name=verca password=verca123
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=bridge type=internal
add interface=ether1 type=external
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
add address=::224.0.0.0/100 comment="defconf: other" list=bad_ipv6
add address=::127.0.0.0/104 comment="defconf: other" list=bad_ipv6
add address=::/104 comment="defconf: other" list=bad_ipv6
add address=::255.0.0.0/104 comment="defconf: other" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" port=\
33434-33534 protocol=udp
add action=accept chain=input comment=\
"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=input comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
add action=accept chain=forward comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=\
"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=\
500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=forward comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
/system clock
set time-zone-name=Europe/Prague
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
/tool user-manager database
set db-path=flash/user-manager
[admin@MikroTik] >
`