Good day people!
Maybe someone had encountered weird SRC/DST NAT issue on 6.42.1 (upgrade), here are the details:
Two network on LAN:
10.0.0.0/24 - workstations with IPs 10.0.0.2 and 10.0.0.3 (Mikrotik is on 10.0.0.1)
10.0.1.0/24 - DMZ servers with IPs 10.0.1.2, 10.0.1.3, 10.0.1.4 (Mikrotik is on 10.0.1.1)
Two IP addresses assigned to WAN interface: 172.16.1.2, 172.16.1.3, 172.16.1.4 (Mikrotik is on 172.16.1.1)
There is a DST\SRC NAT (without in-out interfaces) for:
10.0.1.2 <-> 172.16.1.2
10.0.1.3 <-> 172.16.1.3
10.0.1.4 <-> 172.16.1.4
There is a SRC NAT > 172.16.1.1 for 10.0.0.0/24 with out interface WAN
Now here is ping from workstation 10.0.0.2
ping www.somehostname.lv
Pinging www.somehostname.lv [172.16.1.2] (!!!) with 32 bytes of data:
Reply from 10.0.1.2 (!!!): bytes=32 time<1ms TTL=64
Reply from 10.0.1.2 bytes=32 time<1ms TTL=64
ping www.somehostname2.lv
Pinging www.somehostname2.lv [172.16.1.3] (!!!) with 32 bytes of data:
Reply from 172.16.1.3 (!!!): bytes=32 time<1ms TTL=64
Reply from 172.16.1.3 bytes=32 time<1ms TTL=64
And now here is ping from workstation 10.0.0.3
ping www.somehostname.lv
Pinging www.somehostname.lv [172.16.1.2] (!!!) with 32 bytes of data:
Reply from 172.16.1.2 (!!!): bytes=32 time<1ms TTL=64
Reply from 172.16.1.2 bytes=32 time<1ms TTL=64
ping www.somehostname2.lv
Pinging www.somehostname2.lv [172.16.1.3] (!!!) with 32 bytes of data:
Reply from 172.16.1.3 (!!!): bytes=32 time<1ms TTL=64
Reply from 172.16.1.3 bytes=32 time<1ms TTL=64
Below is NAT export
add action=src-nat chain=srcnat comment="OFFICE.NAT -> 1.1" out-interface=ether1_WAN src-address=10.0.0.0/24 to-addresses=172.16.1.1
add action=dst-nat chain=dstnat comment="DST NAT 1.2 -> 1.2 Host1" dst-address=172.16.1.2 to-addresses=10.0.1.2
add action=src-nat chain=srcnat comment="SRC NAT 1.2 -> 1.2 Host1" src-address=10.0.1.2 to-addresses=172.16.1.2
add action=dst-nat chain=dstnat comment="DST NAT 1.3 -> 1.3 Host2" dst-address=172.16.1.3 to-addresses=10.0.1.3
add action=src-nat chain=srcnat comment="SRC NAT 1.3 -> 1.3 Host2" src-address=10.0.1.3 to-addresses=172.16.1.3
So in a nutshell: two identical hosts on LAN ping two identical hosts in DMZ. One gets replies from external IP, another get replies from internal IP (guess, how accessible serves is to that workstation). After a day or two, problem disappears and then reappears.
Started after migration to 6.42.1
Please advice!