I got running CAPsMAN on a RB2011UiAS-2HnD, there're three CAPs RB951Ui-2HnD.
All four devices have latest firmware 6.45.3
Initially I have a single SSID, it's a corporative network.
On the RB2011:
Code: Select all
/interface wireless
# managed by CAPsMAN
# channel: 2412/20-Ce/gn(20dBm), SSID: DL, CAPsMAN forwarding
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX country=argentina distance=indoors frequency=auto installation=indoor mode=ap-bridge ssid=DL wireless-protocol=802.11
/caps-man configuration
add country=argentina datapath.bridge=bridge name=cfg_general security.authentication-types=wpa-psk,wpa2-psk security.encryption=aes-ccm,tkip security.passphrase=xxxxxxxxxxx ssid=DL
I want to add a second SSID with its own DHCP (10.10.0.0/24) for cellphones and guests, so they wont connect to corporative network.
So I made a vlan10 interface on the bridge, created a pool and a dhcp server and assigned to the vlan10 interface (VLAN ID=10).
I assigned 10.10.0.1 to the vlan10 interface.
I added the second configuration to CAPsMAN, and assigned it as slave configuration in provisioning (VLAN MODE=use tag and VLAN ID=10)
I see the second SSID, it accepts the passphrase but got no IP, and obvious, no internet.
Also no internet on primary SSID, so I freaked out and rolled back to the working configuration.
Hopefully, someone can point me in the right direction.
I'm posting what is working right now on RB2011:
Code: Select all
[admin@DL0] > export compact
# aug/17/2019 16:41:02 by RouterOS 6.45.3
# software id = RUXP-CVQF
#
# model = 2011UiAS-2HnD
# serial number = 731606E9B648
/interface bridge
add admin-mac=6C:3B:6B:7B:79:88 auto-mac=no comment=defconf name=bridge
/interface wireless
# managed by CAPsMAN
# channel: 2412/20-Ce/gn(20dBm), SSID: DL, CAPsMAN forwarding
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX country=argentina distance=indoors frequency=auto installation=indoor mode=ap-bridge ssid=DL wireless-protocol=802.11
/caps-man configuration
add country=argentina datapath.bridge=bridge name=cfg_general security.authentication-types=wpa-psk,wpa2-psk security.encryption=aes-ccm,tkip security.passphrase=xxxxxxxx ssid=DL
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add name=dhcp ranges=10.0.0.100-10.0.0.199
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge lease-time=1d name=dhcp1
/caps-man manager
set enabled=yes
/caps-man manager interface
add disabled=no interface=bridge
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=cfg_general name-format=identity
/interface bridge port
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=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=ether9
add bridge=bridge comment=defconf interface=ether10
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge interface=wlan1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=INTERNET interface=ether1 list=WAN
add comment=INTERNET interface=ether2 list=WAN
/interface wireless cap
#
set bridge=bridge caps-man-addresses=127.0.0.1 discovery-interfaces=bridge enabled=yes interfaces=wlan1
/ip address
add address=10.0.0.2/24 interface=bridge network=10.0.0.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
add default-route-distance=10 dhcp-options=hostname,clientid disabled=no interface=ether2
/ip dhcp-server network
add address=10.0.0.0/24 dns-server=10.0.0.2 gateway=10.0.0.2
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=10.0.0.2 comment=defconf name=router.lan
/ip 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 ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=accept chain=output dst-address=127.0.0.1 port=5246,5247 protocol=udp src-address=127.0.0.1
add action=accept chain=input dst-address=127.0.0.1 port=5246,5247 protocol=udp src-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
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether1
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface=ether2
/ip route
add check-gateway=ping distance=1 dst-address=XX.XX.XX.XX gateway=ether1 pref-src=XX.XX.XX.XX routing-mark=Gigared scope=10
add check-gateway=ping distance=2 dst-address=XX.XX.XX.XX gateway=ether2 pref-src=XX.XX.XX.XX routing-mark=ARNET scope=10
/ip service
set telnet disabled=yes
/system clock
set time-zone-name=America/Argentina/Cordoba
/system identity
set name=DL0
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
NOTE: I already have a second SSID on my home router (also a RB951) and got it working: wlan1 -> bridge_vlan -> vlan10
so my guests can connect, but with CAPsMAN I think it's a different approach but can't see how.