Here's the complete device config. Connection tracking is disabled for what comes from the IPSEC tunnel.
# 2026-09-01 14:55:47 by RouterOS 7.24.1
# software id = EL9N-Q2T3
#
# model = C52iG-5HaxD2HaxD
/interface bridge
add admin-mac=D0:EA:11:5A:58:3D auto-mac=no comment=defconf name=bridge vlan-filtering=yes
/interface wifi
set [ find default-name=wifi1 ] channel.band=5ghz-ax .skip-dfs-channels=10min-cac .width=20/40/80mhz configuration.mode=ap .ssid=MikroTik-5A5841 disabled=no security.authentication-types=wpa2-psk,wpa3-psk .ft=\
yes .ft-over-ds=yes
set [ find default-name=wifi2 ] channel.band=2ghz-ax .skip-dfs-channels=10min-cac .width=20/40mhz configuration.mode=ap .ssid=MikroTik-5A5841 disabled=no security.authentication-types=wpa2-psk,wpa3-psk .ft=yes \
.ft-over-ds=yes
/interface ethernet
set [ find default-name=ether1 ] mac-address=D0:EA:11:59:DF:A4
/interface vlan
add interface=ether1 name=OF vlan-id=835
add comment="Backup Replica Server" interface=bridge name=bk_replica_server vlan-id=138
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
add comment="Backup Network" name=BACKUP
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=OF list=WAN
add interface=bk_replica_server list=BACKUP
/ip ipsec profile
add dh-group=ecp384 enc-algorithm=aes-256 hash-algorithm=sha384 lifetime=8h name=paullo_hq_phase1
/ip ipsec peer
add address=185.242.181.60/32 exchange-mode=ike2 name=paullo_hp_palo profile=paullo_hq_phase1
/ip ipsec proposal
add auth-algorithms="" enc-algorithms=aes-256-gcm lifetime=1h name=paullo_hq_phase2 pfs-group=ecp384
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add add-dns-entries=yes address-pool=default-dhcp interface=bridge name=defconf
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=192.168.88.1
/snmp community
set [ find default=yes ] authentication-protocol=SHA1 encryption-protocol=AES security=private
/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
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=wifi1
add bridge=bridge comment=defconf interface=wifi2
add bpdu-guard=yes bridge=bridge comment="Backup Replica Server" frame-types=admit-only-untagged-and-priority-tagged interface=ether5 pvid=138
/ip neighbor discovery-settings
set add-dns-entries=yes discover-interface-list=none
/interface bridge vlan
add bridge=bridge comment="Backup Replicas" untagged=ether5 vlan-ids=138
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
add address=10.88.38.254/24 interface=bk_replica_server network=10.88.38.0
/ip dhcp-client
add comment=defconf interface=OF name=dhcp_client_navigabene
/ip dns
set allow-remote-requests=yes servers=9.9.9.9,2620:fe::fe
/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=input comment="Allow access from management network" src-address=10.88.17.0/25
add action=drop chain=input comment="defconf: drop all coming from WAN" in-interface-list=WAN
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
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=change-mss chain=forward new-mss=clamp-to-pmtu protocol=tcp tcp-flags=syn
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/ip ipsec identity
add auth-method=digital-signature certificate=it-mil02-1p01-gw01_cavanasystems_com_combined.pem_0,issuing.pem_0 my-id=fqdn:it-mil02-1p01-gw01.cavanasystems.com peer=paullo_hp_palo remote-certificate=root.pem_0
/ip ipsec policy
add action=none comment="Do not tunnel local site" dst-address=10.88.32.0/20 src-address=10.88.32.0/20
add comment=backup_servers_net dst-address=0.0.0.0/0 peer=paullo_hp_palo proposal=paullo_hq_phase2 src-address=10.88.38.0/24 tunnel=yes
add action=none comment="Do not tunnel local site v6" dst-address=2001:67c:d68:100::/57 src-address=2001:67c:d68:100::/57
add comment=backup_servers_net_v6 peer=paullo_hp_palo proposal=paullo_hq_phase2 src-address=2001:67c:d68:100::/57 tunnel=yes
/ip service
set ftp disabled=yes
set ssh available-from=10.88.38.0/24,10.88.17.0/25,2001:67c:d68:106::/64,2001:67c:d68:81::/64
set telnet disabled=yes
set www disabled=yes
set reverse-proxy disabled=yes
set winbox available-from=10.88.38.0/24,10.88.17.0/25,2001:67c:d68:106::/64,2001:67c:d68:81::/64
set api disabled=yes
set api-ssl disabled=yes
/ip ssh
set host-key-size=4096 strong-crypto=yes
/ipv6 address
add address=2001:67c:d68:106::ffff advertise=no interface=bk_replica_server
add from-pool=NavigaBene interface=bridge
/ipv6 dhcp-client
add add-default-route=yes default-route-tables=main interface=OF pool-name=NavigaBene request=prefix
/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 coming from WAN" in-interface-list=WAN
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: fasttrack6" connection-state=established,related
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 coming from WAN" in-interface-list=WAN
/ipv6 firewall mangle
add action=change-mss chain=forward new-mss=clamp-to-pmtu protocol=tcp tcp-flags=syn
/ipv6 nd
# automatic dns option advertising is not started, re-apply dns config
set [ find default=yes ] advertise-dns=yes
/snmp
set enabled=yes engine-id-suffix=it-mil02-1p01-gw01 trap-version=3
/system clock
set time-zone-name=Europe/Rome
/system identity
set name=it-mil02-1p01-gw01.cavanasystems.com
/tool bandwidth-server
set enabled=no
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=BACKUP
/tool mac-server ping
set enabled=no
Now that I moved this device where it should belong it established again the VPN to the Palo Alto and that's the result from iPerf:
HQ to Mazzini59 (Palo Alto to MK):
Mazzini59 to HQ (MK to Palo Alto)
It went back to how it was behaving in the beginning. If I leave the iPerf running for some time, then it stops re-transmitting packets and the speeeeed goes up.
Again, if I exclude the local ISP from the loop by connecting the Mazzini59 MK to my HQ border router it goes straight to 300 mbits with no retrans.
I'm quite convinced it's the ISP fault. Does anyone have any ideas how to nail them? They refuse to cooperate.