Hope you having a good time and still just that little bit of patience to help me here
I have been reading the forum on the wifi part and docs, been testing all i can come up with that makes sense to me but is clear that my sense is way off ; so kindly ask for your support to achieve my goal.
My setup:
RB5009
HEX S
2 cAP AX
2 cAP Lite
Zyxel GS-12008
Goal:
Centrally managed wired and wifi network all by mikrotik, ditch the fritz wifi repeaters and have the 5009 managing the network along with the Zyxel to segment traffic in vlans.
Above all at least have close wifi performance as i had with the Fritz 1200ax repeaters where applicable.
Achieved:
All wired network works (no vlans for now) as expeted (well almost all or less but that is another topic);
All APs are managed by the RB5009 with the 2 wifi packages doing his job for the matching cAPs they should with auto provisioning and using most config templates;
Wifi clients roam perfect along the house, all devices connect;
WAN link speed:
Internet link is 1Gbit dl / 120Mbps upload
Problem:
And after trying all i could find/read/test/etc i can not make my wifi work to a level i consider acceptable.
I can be like 30cm from any of the APs and run some speed tests and get like:
-> 2ghz cAP Lite - 20/24Mbps dl
-> 2ghz cAP AX - 20/24Mbps dl
-> 5ghz cAP AX - ~380Mbps dl
I have tested leave everything in auto, manually set channels 1/6/11 and dont remember now the ones for 5ghz but always leaving 20 or 40mhz between them and no changes or if changed was worse.
I also noticed that if all auto seems that the 2 cAP AX tend to use the same frequencies and i do not know if it should be like this or not.
I have 2 SSID, one for 2ghz and another for 5ghz that i would like to be the same all over the house.
Can you please help me on a strategy and how to proceed to maximize my wifi speeds?
I must be doing something very wrong given the speed i get.
If more info is needed please let me know and i post here.
Thank you in advance for your time and help.
Code: Select all
# 2024-05-01 17:55:30 by RouterOS 7.14.3
# software id = S4WN-FA1U
#
# model = RB5009UG+S+
# serial number = *********
/caps-man channel
add name=2ghz-garage
add name=2ghz-office
/interface bridge
add admin-mac=sorrydave auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] comment="WAN - Intenet"
set [ find default-name=ether2 ] comment=LAN
set [ find default-name=ether6 ] comment="Living Room hEXS"
set [ find default-name=ether7 ] comment=IPTV
/interface wireguard
add listen-port=13231 mtu=1420 name=wireguard1
/caps-man datapath
add bridge=bridge name=datapath1
/caps-man security
add authentication-types=wpa2-psk encryption=aes-ccm name=cap-garage-2ghz
/caps-man configuration
add channel=2ghz-garage country=sorrydave datapath=datapath1 distance=\
indoors installation=indoor mode=ap name=garage-2ghz security=\
cap-garage-2ghz ssid=dragonball2g
add channel=2ghz-fredoffice country=sorrydave datapath=datapath1 distance=\
indoors installation=indoor mode=ap name=office-2ghz \
rates.vht-supported-mcs="" security=cap-garage-2ghz ssid=dragonball2g
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wifi channel
add comment="1st Floor AP 5GHZ" disabled=no frequency=5180,5260,5500 name=\
5ghz-1stfloor skip-dfs-channels=disabled width=20/40/80mhz
add comment="1st floor AP 2GHZ" disabled=no frequency=2412,2432,2472 name=\
2ghz-1stfloor skip-dfs-channels=disabled width=20mhz
add comment="2nd floor AP 2GHZ" disabled=no name=2ghz-2ndfloor \
skip-dfs-channels=disabled
add comment="2nd floor AP 5GHZ" disabled=no name=5ghz-2ndfloor \
skip-dfs-channels=disabled
/interface wifi datapath
add bridge=bridge disabled=no name=datapath1
/interface wifi security
add authentication-types=wpa2-psk,wpa3-psk disabled=no ft=no ft-over-ds=no \
name=dragonball-security wps=disable
/interface wifi configuration
add antenna-gain=0 channel=5ghz-1stfloor comment="1st Floor AP 5GHZ" country=\
sorrydave datapath=datapath1 disabled=no mode=ap name=dball5g-1stfloor \
security=dragonball-security security.connect-priority=0 .ft=yes \
.ft-over-ds=yes .wps=disable ssid=dragonball5g
add antenna-gain=0 channel=2ghz-1stfloor comment="1st Floor AP 2GHZ" country=\
sorrydave datapath=datapath1 disabled=no mode=ap name=dball2g-1stfloor \
security=dragonball-security security.connect-priority=0 .ft=yes \
.ft-over-ds=yes .wps=disable ssid=dragonball2g
add antenna-gain=0 channel=2ghz-2ndfloor comment="2nd Floor AP 2Ghz" country=\
sorrydave datapath=datapath1 disabled=no mode=ap name=dball2g-2ndfloor \
security=dragonball-security security.connect-priority=0 .ft=yes \
.ft-over-ds=yes ssid=dragonball2g
add antenna-gain=0 channel=5ghz-2ndfloor comment="2nd Floor AP 5Ghz" country=\
sorrydave datapath=datapath1 disabled=no mode=ap name=dball5g-2ndfloor \
security=dragonball-security security.connect-priority=0 .ft=yes \
.ft-over-ds=yes ssid=dragonball5g
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=192.168.178.40-192.168.178.110
/ip dhcp-server
add address-pool=dhcp always-broadcast=yes interface=bridge lease-time=3d \
name=defconf
/ip smb users
add name=unhuzpt read-only=yes
/queue simple
add max-limit=135M/2G name="Availalble Bandwidth" target=192.168.178.0/24
add comment="IPTV Box" limit-at=25M/150M max-limit=25M/150M name=\
"IPTV Reserved Speed" parent="Availalble Bandwidth" priority=1/1 target=\
192.168.178.87/32
add max-limit=15M/20M name=google-mini parent="Availalble Bandwidth" target=\
192.168.178.79/32,192.168.178.78/32,192.168.178.76/32,192.168.178.75/32
add limit-at=120M/1G max-limit=120M/1G name=Others parent=\
"Availalble Bandwidth" queue=pcq-upload-default/pcq-download-default \
target=192.168.178.0/24
/system logging action
set 3 remote=192.168.178.100 src-address=192.168.178.1
/user-manager user group
add name=hexs-admin
/user-manager user
add group=hexs-admin name=admin
/zerotier
set zt1 comment="ZeroTier Central controller - https://my.zerotier.com/" \
disabled=yes disabled=yes name=zt1 port=9993
/caps-man manager
set ca-certificate=auto certificate=auto enabled=yes package-path=/packages \
require-peer-certificate=yes upgrade-policy=suggest-same-version
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=garage-2ghz \
name-format=identity radio-mac=78:9A:18:88:BB:1B
add action=create-dynamic-enabled master-configuration=fredoffice-2ghz \
name-format=identity radio-mac=78:9A:18:88:BB:17
/ip smb
set enabled=no
/dude
set enabled=yes
/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=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=sfp-sfpplus1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set disable-ipv6=yes forward=no
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=wireguard1 list=LAN
/interface wifi cap
set certificate=request discovery-interfaces=bridge enabled=yes \
lock-to-caps-man=no
/interface wifi capsman
set ca-certificate=auto certificate=auto enabled=yes interfaces=bridge \
package-path=/packages require-peer-certificate=yes upgrade-policy=\
suggest-same-version
/interface wifi provisioning
add action=create-dynamic-enabled comment="1st floor AP 5ghz" disabled=no \
master-configuration=dball5g-1stfloor name-format=1stfloor5ghz radio-mac=\
D4:01:C3:01:21:D9
add action=create-dynamic-enabled comment="1st floor AP 2ghz" disabled=no \
master-configuration=dball2g-1stfloor name-format=1stfloor-2ghz \
radio-mac=D4:01:C3:01:21:DA
add action=create-dynamic-enabled comment="2nd floor AP 5ghz" disabled=no \
master-configuration=dball5g-2ndfloor name-format=2ndfloor5ghz radio-mac=\
78:9A:18:2C:75:26
add action=create-dynamic-enabled comment="2nd floor AP 2ghz" disabled=no \
master-configuration=dball2g-2ndfloor name-format=2ndfloor2ghz radio-mac=\
78:9A:18:2C:75:27
/interface wireguard peers
add allowed-address=192.sorrydave/32 client-address=192.sorrydave/32 \
client-endpoint=sorrydave interface=wireguard1 preshared-key=\
"sorrydave" private-key=\
"sorrydave" public-key=\
"sorrydave"
/ip address
add address=192.168.178.1/24 comment=defconf interface=bridge network=\
192.168.178.0
add address=172.16.1.2/30 interface=ether1 network=172.16.1.0
add address=192.168.100.1/24 interface=wireguard1 network=192.168.100.0
/ip cloud
set ddns-update-interval=10m update-time=no
/ip dhcp-client
add comment=defconf disabled=yes interface=ether1
/ip dhcp-server lease
*****
A LoT of FiXED Ips
*****
/ip dhcp-server network
add address=192.168.178.0/24 caps-manager=192.168.178.1 comment=defconf \
dns-server=192.168.178.1 domain=local.arpa gateway=192.168.178.1 netmask=\
24 ntp-server=192.168.178.1
/ip dns
set allow-remote-requests=yes servers=172.16.1.1
/ip dns static
add address=192.168.178.1 comment=defconf name=guardian.local.arpa ttl=52w1d
/ip firewall address-list
add address=192.168.178.0/24 list=MGMT-RANGES
add address=172.16.1.1 list=FRIZBOX
add address=192.168.178.0/24 list=Trusted
add address=192.168.100.2 list=Trusted
add address=192.168.178.34 list=API-Allowed
add address=127.0.0.1 list=Trusted
add address=192.168.178.87 list=IPTVAllow
/ip firewall filter
add action=reject chain=input dst-port=53 in-interface=ether1 protocol=udp \
reject-with=icmp-network-unreachable src-address=172.16.1.1
add action=accept chain=input comment="allow WinBox from trusted Networks" \
src-address-list=Trusted
add action=reject chain=input comment="Deny WAN MGMT IN" dst-address=\
192.168.178.1 in-interface=ether1 log=yes log-prefix=\
"DENY - MGM from WAN" reject-with=icmp-network-unreachable \
src-address-list=!MGMT-RANGES
add action=accept chain=input comment="WireGuard IN" dst-port=13231 \
in-interface=ether1 protocol=udp
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 log=yes log-prefix=DROP-Input-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 log=yes log-prefix=DROP-Input-FromLAN--
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 disabled=yes 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 log=yes log-prefix=DROP-FWD-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 mangle
add action=add-src-to-address-list address-list=WinBoxer \
address-list-timeout=none-dynamic chain=prerouting dst-port=8291 \
protocol=tcp
add action=add-src-to-address-list address-list=API-Allowed \
address-list-timeout=none-dynamic chain=prerouting dst-port=8728 \
protocol=tcp src-address=192.168.178.134
add action=add-src-to-address-list address-list=BadGuy address-list-timeout=\
1d chain=input dst-port=8291 protocol=tcp src-address-list=!Trusted
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set sip disabled=yes
set pptp disabled=yes
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api address=192.sorrydave/32
set winbox address=192.sorrydave/24
set api-ssl address=192.sorrydave/32
/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" \
dst-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 identity
set name=guardian
/system note
set show-at-login=no
/system ntp client
set enabled=yes
/system ntp server
set broadcast=yes enabled=yes
/system ntp client servers
add address=1.europe.pool.ntp.org
add address=0.europe.pool.ntp.org
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
/tool traffic-monitor
add disabled=yes interface=ether1 name=tmon1 traffic=received trigger=always
/user-manager router
add address=192.168.178.1 name=guardian