...
Code Block | ||
---|---|---|
| ||
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
Property | Description |
---|---|
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-filename | Requested filename as a regular expression (regex) if a field is left empty it defaults to .* |
real-filename | If 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 " |
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 | ||
---|---|---|
| ||
/ip/tftp/settings |
This menu contains all TFTP settings.
Property | Description |
---|---|
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:
...