1. First, you need to know the number of that rule. To do so, type print or pr in new terminal :
/ip firewall mangle> pr
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting action=accept src-address=192.168.1.0/24 log=no log-prefix=""
0 is the number of the rule.
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting action=accept src-address=192.168.1.0/24 log=no log-prefix=""
2. In this example we're gonna set empty or blank value in src-address. To do that, type this command below :
unset 0 src-address
Check if it works or not by using print command again :
/ip firewall mangle> pr
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting action=accept log=no log-prefix=""
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting action=accept log=no log-prefix=""
3. To set blank or empty value to many rules at one time, you can use script or command like this below. But remember, you must do print command first before you can use this script and this command.
- Script
:for x from 0 to 6 do={/ip fi ma unset $x src-address}
This script will unset src-address from rule 0 'till rule 6.
- Command
unset 0,1,5,6 src-address
This command will only set blank or empty value to rule 0,1,5 and 6.
No comments:
Post a Comment