Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageros
ip/tftp/

This menu contains all TFTP access rules. If in this menu are no rules, the TFTP server is not started when RouterOS boots. This menu only shows 1 additional attribute compared to what you can set when creating a rule.

Parameters

PropertyDescription
ip-address (required)Range of IP addresses accepted as clients if empty 0.0.0.0/0 will be used
allow-rollover (Default: No)If set to yes TFTP server will allow the sequence number to roll over when the maximum value is reached. This is used to enable large downloads using the TFTP server.
req-filenameRequested filename asregular expression (regex) if a field is left empty it defaults to .*
real-filenameIf req-filename and real-filename values are set and valid, the requested filename will be replaced with matched file. This field has to be set. If multiple regex is specified in req-filename, with this field you can set which ones should match, so this rule is validated. The real-filename format for using multiple regex is filename\0\5\6
allow (default: yes)To allow connection if the above fields are set. if no, a connection will be interrupted
read-only (default: no)Sets if a file can be written to, if set to "
no
yes" write attempt will fail with error
hits (read-only)How many times this access rule entry has been used (read-only)


Settings

Code Block
languageros
/ip/tftp/settings

This menu contains all TFTP settings.

PropertyDescription
max-block-size (default:4096)Maximum accepted block size value. During the transfer negotiation phase, the RouterOS device will not negotiate a larger value than this.


Regexp

Req-filename field allowed regexp, allowed regexp in this field are:

brackets () - marking subsection:

...

dollar "$" - means at the end of the line.

Examples

If a file is requested return the file from the store called sata1:

...