Hello all!
Kindly ask your support to untangle my brain on my setup. Trying here to configure my amazing RB5009 to use 2 WAN in a load balance and fail over. It would be great to have it working correctly as is now but i am grasping on the subject.
My setup is:
WAN1 - ether1: coaxial internet with fixed IP as i have the ISP router in front of the RB5009
WAN2 - ether6: fiber internet from ONT as DHCP client and vlan35
DNS - internal adguard home
Goal:
Policy based routing with load balance and fail over between the 2 WAN
IPTV box working fast
; is not from the ISP
For the moment things mostly work but i think i have maybe some asymmetric routing as sometimes pages fail to load or there is delay. What i have trouble mostly is how to setup the routing with the fiber as is dhcp client and i am not sure i have it correct; for the WAN1 as is fixed ip and gw i think i get it.
Can you please take a look in my config, specially on the routing side, and help me achieve my goal?
Thanks in advance for your time and help!
PS - For a home setup have some nice HW from Microtik ![]()
# 2025-10-15 12:05:09 by RouterOS 7.20.1
# software id = S4WN-FA1U
#
# model = RB5009UG+S+
# serial number = REDDACTED
/caps-man channel
add band=2ghz-b/g/n control-channel-width=20mhz name=aplite-2ghz tx-power=16
/interface bridge
add REDDACTED-mac=78:9A:REDDACTED auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] comment="WAN1 Fixed IP" name=ether1::COAX
set [ find default-name=ether2 ] name=ether2::LAN
set [ find default-name=ether3 ] name=ether3:LAN
set [ find default-name=ether4 ] name=ether4:LAN
set [ find default-name=ether5 ] name=ether5:LAN
set [ find default-name=ether6 ] comment="WAN2 VLAN 35" name=ether6::FIBER
set [ find default-name=ether7 ] name=ether7:LAN
set [ find default-name=ether8 ] name=ether8:LAN
/interface wireguard
add comment=back-to-home-vpn listen-port=REDDACTED mtu=1420 name=back-to-home-vpn
/interface vlan
add comment=ORANGE interface=ether6::FIBER name=wan-fiber:FIBER vlan-id=35
/caps-man datapath
add bridge=bridge name=aplite-sec
/caps-man security
add authentication-types=wpa2-psk name=aplite-sec
/caps-man configuration
add channel=aplite-2ghz country=REDDACTED datapath=aplite-sec installation=indoor mode=ap name=aplite-config-REDDACTED security=aplite-sec security.authentication-types=\
wpa2-psk ssid=REDDACTED
add channel=aplite-2ghz country=REDDACTED datapath=aplite-sec installation=indoor mode=ap name=aplite-config-foffice security=aplite-sec security.authentication-types=\
wpa2-psk ssid=REDDACTED
/caps-man interface
add channel=aplite-2ghz configuration=aplite-config-REDDACTED datapath=aplite-sec disabled=no l2mtu=1600 mac-address=REDDACTED master-interface=none name=ap-REDDACTED \
radio-mac=REDDACTED radio-name=789A1888BB1B security=aplite-sec
add channel=aplite-2ghz configuration=aplite-config-foffice datapath=aplite-sec disabled=no l2mtu=1600 mac-address=REDDACTED master-interface=none name=\
ap-REDDACTED-office radio-mac=REDDACTED radio-name=789A1888BB17 security=aplite-sec
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wifi channel
add band=2ghz-ax disabled=no frequency=2412,2432,2452,2472 name=2ghz-home width=20mhz
add band=5ghz-ax disabled=no frequency=5180,5240,5745,5825 name=5ghz-home width=20/40mhz
/interface wifi datapath
add disabled=no name=default-home
/interface wifi security
add authentication-types=wpa2-psk,wpa3-psk disabled=no name=wifi-home wps=disable
/interface wifi configuration
add channel=2ghz-home channel.frequency=2412,2432,2452,2472 country=REDDACTED datapath=default-home disabled=no installation=indoor manager=capsman-or-local mode=ap \
name=2ghz-home-REDDACTED security=wifi-home security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes ssid=dragonball2g tx-power=21
add channel=5ghz-home channel.frequency=5180,5240,5745,5825 country=REDDACTED datapath=default-home disabled=no installation=indoor manager=capsman-or-local mode=ap \
name=5ghz-home-REDDACTED security=wifi-home security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes ssid=REDDACTED tx-power=21
add channel=5ghz-home channel.band=5ghz-ax .frequency=5180,5240,5745,5825 country=REDDACTED datapath=default-home disabled=no installation=indoor manager=\
capsman-or-local mode=ap name=5ghz-home-REDDACTED security=wifi-home security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes ssid=REDDACTED \
tx-power=21
add channel=2ghz-home channel.frequency=2412,2432,2452,2472 country=REDDACTED datapath=default-home disabled=no installation=indoor manager=capsman-or-local mode=ap \
name=2ghz-home-REDDACTED security=wifi-home security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes ssid=dragonball2g tx-power=21
add channel=5ghz-home channel.band=5ghz-ax .frequency=5180,5240,5745,5825 country=REDDACTED datapath=default-home disabled=no installation=indoor manager=\
capsman-or-local mode=ap name=5ghz-home-REDDACTED security=wifi-home security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes ssid=REDDACTED \
tx-power=21
add channel=2ghz-home channel.frequency=2412,2432,2452,2472 country=REDDACTED datapath=default-home disabled=no installation=indoor manager=capsman-or-local mode=ap \
name=2ghz-home-REDDACTED security=wifi-home security.authentication-types=wpa2-psk,wpa3-psk .ft=yes .ft-over-ds=yes ssid=dragonball2g tx-power=21
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=192.168.178.10-192.168.178.150
/ip dhcp-server
add address-pool=dhcp interface=bridge name=defconf
/routing table
add comment=COAXIAL-Table disabled=no fib name=COAXIAL
add comment=FIBER-Table disabled=no fib name=FIBER
/user group
add name=REDDACTED policy=read,test,api,!local,!telnet,!ssh,!ftp,!reboot,!write,!policy,!winbox,!password,!web,!sniff,!sensitive,!romon,!rest-api
add comment=REDDACTED name=REDDACTED policy=read,write,api,!local,!telnet,!ssh,!ftp,!reboot,!policy,!test,!winbox,!password,!web,!sniff,!sensitive,!romon,!rest-api
/user-manager profile
add name=REDDACTED name-for-users=REDDACTED override-shared-users=unlimited starts-when=first-auth validity=unlimited
add name=REDDACTED name-for-users=REDDACTED override-shared-users=unlimited starts-when=first-auth validity=unlimited
/user-manager user
add name=REDDACTED
/user-manager user group
add attributes=Mikrotik-Group:full inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=REDDACTED-REDDACTED outer-auths=\
pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
add attributes=Mikrotik-Group:full inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=REDDACTED-REDDACTED outer-auths=\
pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
add attributes=Mikrotik-Group:full inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=REDDACTED-REDDACTED outer-auths=\
pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
add inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=REDDACTED outer-auths=pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
add inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=REDDACTED outer-auths=pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
add inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=REDDACTED outer-auths=pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
add attributes=Mikrotik-Group:REDDACTED inner-auths=ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=hauserread outer-auths=\
pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2
/user-manager user
add group=REDDACTED-REDDACTED name=REDDACTED-REDDACTED
add group=REDDACTED name=REDDACTED
add group=REDDACTED name=REDDACTED
add attributes=Mikrotik-Group:full group=REDDACTED-REDDACTED name=REDDACTED-REDDACTED shared-users=2
add group=hauserread name=hauserread
add group=REDDACTED-REDDACTED name=REDDACTED-apREDDACTED
add attributes=Mikrotik-Group:full group=REDDACTED-REDDACTED name=REDDACTED shared-users=2
/caps-man access-list
add disabled=no signal-range=-75..120
/caps-man manager
set ca-certificate=auto certificate=auto enabled=yes package-path=/packages upgrade-policy=suggest-same-version
/caps-man proREDDACTEDsioning
add action=create-dynamic-enabled hw-supported-modes=gn master-configuration=aplite-config-foffice name-prefix=ap-REDDACTEDoffice- radio-mac=REDDACTED
add action=create-dynamic-enabled hw-supported-modes=gn master-configuration=aplite-config-REDDACTED name-prefix=ap-REDDACTED- radio-mac=REDDACTED
/certificate settings
set builtin-trust-anchors=not-trusted
/disk settings
set auto-media-interface=bridge auto-media-sharing=yes auto-smb-sharing=yes
/interface bridge port
add bridge=bridge comment=defconf interface=ether2::LAN
add bridge=bridge comment=defconf interface=ether3:LAN
add bridge=bridge comment=defconf interface=ether4:LAN
add bridge=bridge comment=defconf interface=ether5:LAN
add bridge=bridge comment=defconf interface=ether6::FIBER
add bridge=bridge comment=defconf interface=ether7:LAN
add bridge=bridge comment=defconf interface=ether8:LAN
add bridge=bridge comment=defconf interface=sfp-sfpplus1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set disable-ipv6=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1::COAX list=WAN
/interface wifi access-list
add action=accept disabled=no signal-range=-75..120
/interface wifi capsman
set ca-certificate=auto certificate=auto enabled=yes interfaces=all package-path=/packages require-peer-certificate=no upgrade-policy=suggest-same-version
/interface wifi proREDDACTEDsioning
add action=create-dynamic-enabled disabled=no master-configuration=2ghz-home-REDDACTED name-format=2ghz-REDDACTED radio-mac=D4:01:REDDACTED
add action=create-dynamic-enabled disabled=no master-configuration=2ghz-home-REDDACTED name-format=2ghz-REDDACTED radio-mac=78:9A:REDDACTED
add action=create-dynamic-enabled disabled=no master-configuration=2ghz-home-REDDACTED name-format=2ghz-REDDACTED radio-mac=04:F4:REDDACTED
add action=create-dynamic-enabled disabled=no master-configuration=5ghz-home-REDDACTED name-format=5ghz-REDDACTED radio-mac=D4:01:REDDACTED
add action=create-dynamic-enabled disabled=no master-configuration=5ghz-home-REDDACTED name-format=5ghz-REDDACTED radio-mac=78:9A:REDDACTED
add action=create-dynamic-enabled disabled=no master-configuration=5ghz-home-REDDACTED name-format=5ghz-REDDACTED radio-mac=04:F4:REDDACTED
/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 comment="COAX REDDACTED" interface=ether1::COAX network=172.16.1.0
/ip cloud
set back-to-home-vpn=enabled ddns-enabled=yes ddns-update-interval=10m
/ip cloud back-to-home-user
add allow-lan=yes comment="REDDACTED.home.arpa | RB5009UG+S+" name="Redmi Note 12 Pro 5G" private-key="REDDACTED=" public-key=\
"REDDACTED"
/ip dhcp-client
add comment=defconf disabled=yes interface=ether1::COAX use-peer-dns=no
/ip dhcp-server lease
REDDACTED
/ip dhcp-server network
add address=192.168.178.0/24 caps-manager=192.168.178.1 comment=defconf dns-server=192.168.178.116 domain=home.arpa gateway=192.168.178.1 netmask=24 ntp-server=\
192.168.178.1
/ip dns
set servers=192.168.178.116
/ip dns static
add address=192.168.178.1 comment=defconf name=router.lan type=A
/ip firewall address-list
add address=172.16.1.2 comment=Coaxial list=wan-interfaces
add address=90.REDDACTED9 comment=FIber list=wan-interfaces
add address=192.168.178.0/24 comment=LAN list=lan-interfaces
/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" disabled=yes 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 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=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=accept chain=prerouting comment="Skip router-originated traffic" src-address-type=local
add action=accept chain=prerouting comment="Skip local traffic (LAN to router)" dst-address-type=local
add action=accept chain=prerouting comment="Do not balance LAN to LAN" dst-address-list=lan-interfaces src-address-list=lan-interfaces
add action=accept chain=prerouting comment="Allow acces to WAN Routers" dst-address-list=wan-interfaces
add action=mark-connection chain=input comment="COAX Input" in-interface=ether1::COAX new-connection-mark=COAX
add action=mark-connection chain=input comment="Fiber Input" in-interface=wan-fiber:FIBER new-connection-mark=FIBER
add action=mark-connection chain=prerouting comment="Connection Marking COAX" connection-mark=no-mark in-interface=ether1::COAX new-connection-mark=COAX-Mark
add action=mark-connection chain=prerouting comment="Connection Marking FIBER" connection-mark=no-mark in-interface=wan-fiber:FIBER new-connection-mark=FIBER-Mark
add action=mark-routing chain=output comment="Output Mark COAX" connection-mark=COAX-Mark new-routing-mark=COAXIAL passthrough=no
add action=mark-routing chain=output comment="Output Mark FIBER" connection-mark=FIBER-Mark new-routing-mark=FIBER passthrough=no
add action=accept chain=prerouting comment="Skip broadcast traffic" dst-address=255.255.255.255
add action=mark-connection chain=prerouting comment="PCC - COAX" connection-mark=no-mark dst-address-type=!local in-interface-list=LAN new-connection-mark=COAX-Mark \
per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting comment="PCC - FIBER" connection-mark=no-mark dst-address-type=!local in-interface-list=LAN new-connection-mark=FIBER-Mark \
per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting comment="Routing Mark LAN to COAX" connection-mark=COAX-Mark in-interface-list=LAN new-routing-mark=COAXIAL passthrough=no
add action=mark-routing chain=prerouting comment="Routing Mark LAN to FIBER" connection-mark=FIBER-Mark in-interface-list=LAN new-routing-mark=FIBER passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1::COAX
add action=masquerade chain=srcnat out-interface=wan-fiber:FIBER
/ip firewall serREDDACTEDce-port
set ftp disabled=yes
set tftp disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
/ip route
add comment="COAX Route - Recursive" disabled=no distance=2 dst-address=8.8.8.8/32 gateway=172.16.1.1 routing-table=main scope=10 suppress-hw-offload=no target-scope=10
add check-gateway=ping comment="FIBER - Route Main GW2" disabled=no distance=2 dst-address=8.8.8.8/32 gateway=172.16.1.1 routing-table=main scope=11 suppress-hw-offload=\
no target-scope=11
add comment="FIBER Route - Recursive" disabled=no distance=1 dst-address=8.8.8.8/32 gateway=wan-fiber:FIBER routing-table=main scope=10 suppress-hw-offload=no \
target-scope=10
add check-gateway=ping comment="FIBER - Route Main GW1" disabled=no distance=1 dst-address=8.8.8.8/32 gateway=wan-fiber:FIBER routing-table=main scope=30 \
suppress-hw-offload=no target-scope=11
add check-gateway=ping comment="Fiber - GW1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=wan-fiber:FIBER routing-table=FIBER scope=30 suppress-hw-offload=no \
target-scope=11
add check-gateway=ping comment="FIBER - GW2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=ether1::COAX routing-table=FIBER scope=30 suppress-hw-offload=no \
target-scope=11
add check-gateway=ping comment="COAX - GW1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ether1::COAX routing-table=COAXIAL scope=30 suppress-hw-offload=no \
target-scope=11
add check-gateway=ping comment="COAX - GW2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=172.16.1.1 routing-table=COAXIAL scope=30 suppress-hw-offload=no \
target-scope=11
/ipv6 firewall address-list
REDDACTED
/ipv6 firewall filter
REDDACTED
/routing igmp-proxy mfc
add downstream-interfaces=bridge group=0.0.0.0 source=0.0.0.0 upstream-interface=ether1::COAX
/routing rule
add action=lookup comment=COAX-Rule disabled=no dst-address=8.8.8.8/32 src-address=ether1::COAX table=COAXIAL
add action=lookup comment=FIBER-Rule disabled=no dst-address=8.8.8.8/32 src-address=90.REDDACTED.182/32 table=FIBER
/system identity
set name=REDDACTED.home.arpa
/system ntp client
set enabled=yes
/system ntp server
set broadcast=yes enabled=yes
/system ntp client servers
add address=2.europe.pool.ntp.org
REDDACTED
/system routerboard settings
set auto-upgrade=yes
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
/user aaa
set accounting=no default-group=full
/user-manager
set certificate=*D require-message-auth=no
/user-manager router





