Firawall based on dynamic IP

Hello,

Some of the firewall rules are based on WAN address which is dynamic. How to make firewall rule to read it and use current, because now I enter it manually and if it changes I should change all rules that uses it.

You have to write a script which periodically checks DNS and canges Ip address accordingly.
Here is an example:
http://wiki.mikrotik.com/wiki/Manual:Scripting-examples#Resolve_host-name

You can also get around having to use an IP address in many rules by using in-interface and out-interface, and knowing what chain the packet should be in at what time during processing.

Thank you very much ! I think scripting would be the best choice for me.