Sorry for the members here for being lazy.
Finally had sometime earlier and I somewhat fix my config and check youtube for a simple dual wan config setp up.
I’ve used Recursive and Main routes for making dual wan work.
And I’ve removed the other bridges on other ports.
So my setup now is:
ether1 = ISP 1
ether2 and wlan = Bridge-eth2 with Own DHCP server
ether3 = Own DHCP server with just ether3 interface
ether4 = Own DHCP server with just ether4 interface
ether5 = ISP 2
I’ll try to study about VLANS next time, and maybe PCC for load balancing.
Thanks guys for pushing me to learn even simple setup like dual wan.
Edit: thanks to pcunite and Chupaka post.
Here’s my config:
# 2025-02-23 19:35:30 by RouterOS 7.17.2
/interface bridge
add name=bridge-eth2 port-cost-mode=short
/ip route
add comment="Recursive - ISP1" disabled=no dst-address=8.8.8.8/32 gateway=\
ISP1 Gateway routing-table=main scope=10 suppress-hw-offload=no \
target-scope=10
add comment="Recursive - ISP2" disabled=no distance=1 dst-address=\
1.1.1.1/32 gateway=ISP2 Gateway routing-table=main scope=10 \
suppress-hw-offload=no target-scope=10
add check-gateway=ping comment="Main - ISP1" disabled=no dst-address=\
0.0.0.0/0 gateway=8.8.8.8 routing-table=main suppress-hw-offload=no \
target-scope=11
add check-gateway=ping comment="Main - ISP2" disabled=no distance=2 \
dst-address=0.0.0.0/0 gateway=1.1.1.1 routing-table=main \
suppress-hw-offload=no target-scope=11
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/ip pool
add name=eth2 ranges=192.168.2.10-192.168.2.100
add name=eth3 ranges=192.168.3.10-192.168.3.100
add name=eth4 ranges=192.168.4.10-192.168.4.100
/ip dhcp-server
add address-pool=eth2 interface=bridge-eth2 lease-time=12h name=eth2
add address-pool=eth3 interface=ether3 lease-time=12h name=eth3
add address-pool=eth4 interface=ether4 lease-time=12h name=eth4
/ip smb users
set [ find default=yes ] disabled=yes
/interface bridge port
add bridge=bridge-eth2 ingress-filtering=no interface=ether2 \
internal-path-cost=10 path-cost=10
add bridge=bridge-eth2 comment=defconf ingress-filtering=no interface=wlan1 \
internal-path-cost=10 path-cost=10
add bridge=bridge-eth2 comment=defconf ingress-filtering=no interface=wlan2 \
internal-path-cost=10 path-cost=10
/ip firewall connection tracking
set udp-timeout=10s
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ip settings
set max-neighbor-entries=8192
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface list member
add comment=defconf interface=bridge-eth2 list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether5 list=WAN
/ip address
add address=192.168.2.1/24 comment=eth2 interface=bridge-eth2 network=\
192.168.2.0
add address=192.168.3.1/24 comment=eth3 interface=ether3 network=192.168.3.0
add address=192.168.4.1/24 comment=eth4 interface=ether4 network=192.168.4.0
/ip dhcp-client
add add-default-route=no comment=defconf interface=ether1 use-peer-dns=\
no
add add-default-route=no interface=ether5 use-peer-dns=no
/ip dhcp-server network
add address=192.168.2.0/24 comment=LAN gateway=192.168.2.1 netmask=24
add address=192.168.3.0/24 gateway=192.168.3.1 netmask=24
add address=192.168.4.0/24 gateway=192.168.4.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,1.1.1.1
/ip dns static
add address=192.168.2.1 comment=defconf name=router.lan type=A
/ip firewall filter
add action=fasttrack-connection chain=forward comment="DNS UDP" disabled=yes \
dst-port=53 hw-offload=yes protocol=udp
add action=fasttrack-connection chain=forward comment="DNS TCP" disabled=yes \
dst-port=53 hw-offload=yes protocol=tcp
add action=accept chain=input comment="Allow established/related connections" \
connection-state=established,related in-interface-list=WAN
add action=drop chain=input comment="defconf: drop invalid connections" \
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=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=drop chain=input comment="DNS UDP Block" dst-port=53 \
in-interface-list=WAN protocol=udp
add action=drop chain=input comment="DNS TCP Block" dst-port=53 \
in-interface-list=WAN protocol=tcp
add action=drop chain=input comment=\
"Drop all traffic from WAN except established/related" in-interface-list=\
WAN
add action=drop chain=input comment="Block SSH from WAN" dst-port=22 \
in-interface-list=WAN log=yes log-prefix=SSH-Blocked protocol=tcp
add action=accept chain=input comment="Allow limited ICMP from WAN" \
in-interface-list=WAN limit=5,2 protocol=icmp
add action=accept chain=input comment="Allow SSH from internal network" \
dst-port=22 in-interface=bridge-eth2 protocol=tcp src-address=\
192.168.0.0/16
add action=drop chain=input comment="Block spoofed private IPs from WAN" \
in-interface-list=WAN src-address=10.0.0.0/8
add action=drop chain=input comment="Block spoofed private IPs from WAN" \
in-interface-list=WAN src-address=172.16.0.0/12
add action=drop chain=input comment="Block spoofed private IPs from WAN" \
in-interface-list=WAN src-address=192.168.0.0/16
/ip firewall mangle
add action=change-ttl chain=postrouting comment="No Hotspot - LAN" new-ttl=\
set:1 out-interface=bridge-eth2
add action=change-ttl chain=postrouting comment="No Hotspot - eth3" new-ttl=\
set:1 out-interface=ether3
add action=change-ttl chain=postrouting comment="No Hotspot - eth4" new-ttl=\
set:1 out-interface=ether4
/ip firewall nat
add action=masquerade chain=srcnat comment="NAT for outbound traffic" \
ipsec-policy=out,none out-interface-list=WAN
/ip ipsec profile
set [ find default=yes ] dpd-interval=2m dpd-maximum-failures=5






