/interface bridge nat operates at layer 2 / ethernet and changes the MAC address based on the to-dst-mac-address parameter. The dst-port is just one of many selectors to identify a packets on which to perform actions.
Is the traffic passing through the bridge to another port, in which case you do need use-ip-firewall=yes to force bridged traffic through the IP firewall chains, or being routed by the Mikrotik, in which case it isn’t. Also, the in-interface will be the bridge itself, there is also a in-bridge-port selector.
Yes, unless a particular selector / matcher is used it will apply to all traffic. That rule has no to-addresses or to-ports so nothing would be changed.
Thank you very much for pointing to to-ports, I misinterpreted the “dst”-part - that’s what I have been looking for.
Unfortunately the NAT is not working as I wish. In my test case, I have two iperf servers running on port 60001 and 60002. If the traffic comes from ether2, I’d like to use 60001, otherwise 60002.
If I do a NAT with to-addresses and use the router IP address as destination (with port 60006), the NAT counter is incremented but I get connection refused. Is it because there is no chance for the server to reply, i.e. do I need a reverse NAT rule as well?
If I do a NAT without to-addresses and use the iperf server IP (with port 60006), the NAT seems to not be used, although all other selectors are empty. Apparently a general misunderstanding on my side?
Did you clear the connection tracking entries or wait (~3 minutes for UDP connections)? The connection state includes flags to indicate if source and/or destination NAT is required, these are set on the first packet of a connection. As UDP doesn’t have any concept of a connection, unlike TCP where you can peek at the TCP header flags, a timer is used. If you haven’t found them some of the help pages may be useful https://help.mikrotik.com/docs/display/ROS/NAT and https://help.mikrotik.com/docs/display/ROS/Packet+Flow+in+RouterOS
The selectors for firewall filter/NAT/mangle rules are on the General, Advanced and & Extras tab in Winbox, the Action tab includes the relevant parameters for the action selected such as to-addresses and to-ports for dst-nat.