I detected this because i could not dstnat more than 1 connection to a host if i used masquerade.
I got these 2 rules, they look the same but one works and the other doesn’t:
16 chain=srcnat action=masquerade protocol=tcp dst-address=192.168.160.2 dst-port=8291
17 chain=srcnat action=masquerade protocol=tcp dst-address=192.168.160.2 dst-port=8291
How to reproduce this BUG:
- With Winbox create a simple Masquerade rule.
- Edit the rule and change it into a src-nat rule, with a “to ports” field included.
- Edit again and change to Masquerade.
Now you have got a broken rule (with a hidden “to-ports” value).