Ok, I really cannot understand.
I reduced to 2 my networks and I have:
192.168.100.81/24
192.168.100.82/24
that are the 2 WAN ports connected to my ISP router (192.168.100.1)
Now something is not working again.
As suggested in topic
viewtopic.php?t=193581 I deleted mangles and I m trying to use rules only.
This is my config (Note that route 0.0.0.0/0 192.168.100.81 is not valid and I cannot understand why):
# feb/15/2023 22:51:40 by RouterOS 7.7
# software id = XXXX
#
# model = C53UiG+5HPaxD2HPaxD
# serial number = XXXXXXXXXX
/interface ethernet
set [ find default-name=ether1 ] name=ether1-WANPC
set [ find default-name=ether2 ] name=ether2-WANSERVER
set [ find default-name=ether4 ] name=ether4-LANPC
set [ find default-name=ether5 ] name=ether5-LANSERVER
/ip pool
add name=dhcp_pool_PC ranges=192.168.10.100-192.168.10.200
add name=dhcp_pool_SERVER ranges=192.168.20.100-192.168.20.200
/ip dhcp-server
add address-pool=dhcp_pool_PC interface=ether4-LANPC lease-time=1h name=\
dhcp-PC
add address-pool=dhcp_pool_SERVER interface=ether5-LANSERVER lease-time=1h \
name=dhcp-SERVER
/routing table
add disabled=no fib name=PCtoWANPC
add disabled=no fib name=SERVERtoWANSERVER
/ip address
add address=192.168.100.81/24 interface=ether1-WANPC network=192.168.100.0
add address=192.168.10.1/24 interface=ether4-LANPC network=192.168.10.0
add address=192.168.20.1/24 interface=ether5-LANSERVER network=192.168.20.0
add address=192.168.100.82/24 interface=ether2-WANSERVER network=\
192.168.100.0
/ip dhcp-server network
add address=192.168.10.0/24 gateway=192.168.10.1
add address=192.168.20.0/24 gateway=192.168.20.1
/ip dns
set servers=8.8.8.8,1.1.1.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1-WANPC
add action=masquerade chain=srcnat out-interface=ether2-WANSERVER
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.100.1 \
pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.100.81 \
pref-src="" routing-table=PCtoWANPC scope=30 suppress-hw-offload=no \
target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.100.82 \
pref-src="" routing-table=SERVERtoWANSERVER scope=30 suppress-hw-offload=\
no target-scope=10
/routing rule
add action=lookup disabled=no dst-address=192.168.10.0/24 table=main
add action=lookup disabled=no dst-address=192.168.20.0/24 table=main
add action=lookup-only-in-table disabled=no dst-address=192.168.10.0/24 \
table=PCtoWANPC
add action=lookup-only-in-table disabled=no dst-address=192.168.20.0/24 \
table=SERVERtoWANSERVER
/system clock
set time-zone-name=Europe/Rome
/system ntp client
set enabled=yes
/system ntp client servers
add address=ntp.ien.it
add address=time.google.com
add address=ntp1.inrim.it
With this configuration:
1 - I am able to browse the Internet from both eth4 and eth5, but I exit using eth1 and not eth1 and eth2.
2 - I cannot ping 192.168.10.X from 192.168.20.x
3 - I CAN ping 192.168.20.X from 192.168.10.x
What's completely wrong with my configuration?
Thx in advance!!!
Luca