As I understand packets first go through Filter and then NAT in the firewall but when I have a matching rule in Filter for adding src to address list it does not match.
Config below
Code: Select all
/ip firewall filter
add action=add-src-to-address-list address-list=test address-list-timeout=none-dynamic chain=input comment=test dst-address=wanIP dst-port=88,2222 protocol=tcp
add action=accept chain=input comment="Accept established,related" connection-state=established,related
add action=drop chain=input comment="Drop all from WAN" in-interface-list=wanlist
add action=drop chain=forward comment="Drop invalid" connection-state=invalid
add action=drop chain=forward comment="Drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=wanlist
/ip firewall nat
add action=masquerade chain=srcnat comment="Default NAT" out-interface=wan
add action=dst-nat chain=dstnat comment="test" dst-address=wanip dst-port=88 in-interface-list=wanlist protocol=tcp to-addresses=192.168.1.55
Have tried it on several devices and latest long term release but it's the same behaviour.