E
E
Enlighted_one2020-06-20 01:12:29
Mikrotik
Enlighted_one, 2020-06-20 01:12:29

Mikrotik edit/set how to remove/reset a parameter?

Good day forum users. It was required to edit the firewall rules. Adding a rule through the console or changing the parameters of the problem did not arise in it. But I can't remove/reset the set parameter. For example, I scored dst-address=xxx.xxx.xxx.xxx and now I want it to be gone. Entered and set dst-address="" and space and just equal and disable. I still don't understand how to reset this value. On forums it is written to edit to change edit'om. no detail.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GAG, 2020-06-20
@Enlighted_one

In the current version of the RouterOS firmware , the unset command is used to delete an element property :
Commands for the MikroTik console:

  1. Go to the right section
    # Переходим в разде IP/Firewall/NAT
    /ip firewall nat

  2. Removing a parameter from an element
    # Удаляем параметр "dst-address" для первого элемента в списке (номер 0):
    unset 0 dst-address


Everything is the same as above, but with one command: REMINDER just in case:
/ip firewall nat unset 0 dst-address

  • View the list of commands available in this section:
    ?
  • List the elements of the current section:
    print
  • Set the value dst-addressfor the first element (number 0) while in section /ip firewall nat:
    set 0 dst-address=192.168.88.32
  • Remove the value dst-addressfor the first element (number 0) while in any section:
    /ip firewall nat unset 0 dst-address
  • Go to root partition:
    /

C
CityCat4, 2020-06-20
@CityCat4

And what prevents you from deleting this rule and writing another one that is the same, but without this parameter?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question