Ah. So the emergency port directly has an IP address, e.g. /ip address add interface=ether2 address…?
I continued with the ac³ (not ax³ … unfortunately
), and when I got to CAPs mode, stuff stopped working. First, it created hidden SSIDs. I then enabled caps logging and found that:
19:16:56 caps,debug CAP Select->Sulking
19:17:01 caps,debug CAP Sulking->Discover
19:17:01 caps,debug CAP discovery target list:
19:17:03 caps,debug CAP discovery over, no results
19:17:03 caps,debug CAP Discover->Select
19:17:03 caps,debug CAP did not find suitable CAPsMAN
So I set the /interface/wireless/cap discovery-interface to vlanBase, and it found the CAPsMAN, but still had a hidden SSID.
Then I found out that I still had VLAN filtering disabled on the router. I enabled it, and there goes connectivity. When I connect to a ac³ trunk port, I can ping its address, but pinging the router has 90 % packet loss. When I connect to the router trunk port, pinging ac³ has huge packet loss.
If I add two switches (RB260GS) in-between, i.e. Router → Sw1 → Sw2 → ac³, and I get the same results. From Router, I can only work the router reliably. From Sw1, Sw2, or ac³, I can reach all devices except for the router reliably. When I disable vlan filtering, ping works fine again in both directions.
That's confusing because it is not all-or-nothing. And also because I lose packets in the first place.
Here is the router configuration I am using now:
/interface bridge
add admin-mac=64:D1:54:8D:B9:0F auto-mac=no comment=defconf name=bridge vlan-filtering=yes
/interface vlan
add interface=bridge name=vlan10 vlan-id=10
add interface=bridge name=vlanBase vlan-id=99
add interface=bridge name=vlanHome vlan-id=5
/caps-man configuration
add channel.band=2ghz-g/n .frequency=2412 country=switzerland datapath.bridge=bridge .local-forwarding=yes .vlan-id=10 .vlan-mode=no-tag hide-ssid=no installation=indoor mode=ap name=AP10 \
security.authentication-types=wpa2-psk ssid=Game
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
add name=BASE
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=pool_home ranges=192.168.88.160-192.168.88.254
add name=pool_vlan10 ranges=10.10.10.160-10.10.10.199
add name=pool_base ranges=10.10.99.160-10.10.99.199
/ip dhcp-server
add address-pool=pool_home interface=vlanHome name=dhcp_home
add address-pool=pool_vlan10 interface=vlan10 name=dhcp_vlan10
add address-pool=pool_base interface=vlanBase name=dhcp_base
/port
set 0 name=serial0
/caps-man manager
set enabled=yes
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=AP10
/interface bridge port
add bridge=bridge comment=defconf frame-types=admit-only-untagged-and-priority-tagged interface=ether2 pvid=5
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether3
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether4
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=BASE
/interface bridge vlan
add bridge=bridge tagged=bridge,ether3,ether4,ether5 vlan-ids=10
add bridge=bridge tagged=bridge,ether3,ether4,ether5 vlan-ids=99
add bridge=bridge tagged=bridge untagged=ether2 vlan-ids=5
/interface list member
add comment=defconf interface=ether1 list=WAN
add interface=vlan10 list=LAN
add interface=vlanBase list=LAN
add interface=vlanHome list=LAN
add interface=vlanBase list=BASE
/ip address
add address=10.10.99.1/24 interface=vlanBase network=10.10.99.0
add address=10.10.10.1/24 interface=vlan10 network=10.10.10.0
add address=192.168.99.1/24 interface=vlanHome network=192.168.99.0
/ip dhcp-client
add comment=defconf interface=ether1
/ip dhcp-server network
add address=10.10.10.0/24 gateway=10.10.10.1
add address=10.10.99.0/24 gateway=10.10.99.1
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 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=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 hw-offload=yes
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=accept chain=input comment="Allow management access" in-interface-list=BASE
add action=accept chain=input comment="Users: Services access" dst-port=53 in-interface-list=LAN protocol=tcp
add action=accept chain=input comment="Users: Services access" dst-port=53 in-interface-list=LAN protocol=udp
add action=drop chain=input comment="Drop all other traffic"
add action=accept chain=forward comment="internet traffic" in-interface-list=LAN out-interface-list=WAN
add action=accept chain=forward comment="port forwarding" connection-nat-state=dstnat disabled=yes
add action=drop chain=forward comment="drop all else"
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/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
/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/Zurich
/system identity
set name=hEX
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=BASE
And the ac³ configuration: (With ether2 as emergency port if I got it right)
/interface bridge
add admin-mac=18:FD:74:39:29:1D auto-mac=no comment=defconf name=bridge vlan-filtering=yes
/interface wireless
# managed by CAPsMAN
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX distance=indoors frequency=auto installation=indoor mode=ap-bridge ssid=MikroTik-392921 wireless-protocol=802.11
# managed by CAPsMAN
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX distance=indoors frequency=auto installation=indoor mode=ap-bridge ssid=MikroTik-392922 wireless-protocol=802.11
/interface vlan
add interface=bridge name=vlanBase vlan-id=99
/interface list
add comment=defconf name=LAN
add name=MANAGE
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether1
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether3
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether4
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether5 pvid=10
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=wlan1 pvid=10
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=wlan2 pvid=10
/ip neighbor discovery-settings
set discover-interface-list=MANAGE
/interface bridge vlan
add bridge=bridge tagged=bridge,ether1,ether3,ether4 untagged=ether5,wlan1,wlan2 vlan-ids=10
add bridge=bridge tagged=bridge,ether1,ether3,ether4 vlan-ids=99
/interface list member
add comment=defconf interface=bridge list=LAN
add interface=vlanBase list=MANAGE
/interface wireless cap
#
set bridge=bridge discovery-interfaces=vlanBase enabled=yes interfaces=wlan1,wlan2
/ip address
add address=192.168.99.1/24 interface=ether2 network=192.168.99.0
add address=10.10.99.4/24 interface=vlanBase network=10.10.99.0
/ip dns
set allow-remote-requests=yes servers=10.10.99.1
/ip route
add comment="ensures route avail through trusted subnet gateway" disabled=no dst-address=0.0.0.0/0 gateway=10.10.99.1
/system clock
set time-zone-name=Europe/Zurich
/system identity
set name=ac3
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=MANAGE
What am I doing wrong? Why is the router dropping most of the packages?