Community discussions

MikroTik App
 
dreweinhorn
newbie
Topic Author
Posts: 28
Joined: Thu Mar 26, 2009 5:34 pm

Editing Firewall rule set questions

Thu Jun 25, 2009 9:30 pm

I want edit an existing firewall rule set.

I'm assuming the MikroTik firewall rulesets are executed top to bottom like other firewalls I have used.

How do I move a rule up or down in the ruleset?

How do I a rules at a certain point in the ruleset?

Both from the console, telnet and ssh sessions and using the WinBox gui.
 
User avatar
skillful
Trainer
Trainer
Posts: 552
Joined: Wed Sep 06, 2006 1:42 pm
Location: Abuja, Nigeria
Contact:

Re: Editing Firewall rule set questions

Thu Jun 25, 2009 10:48 pm

Using Winbox, you should first sort the rules by clicking on the "#" tab then simply drag the rule to whatever place you want. You can depress the "ctrl" or "shift" keys to select more than one rule.

From Console,telnet and ssh, you must first issue the print command to list all the rules and then use the move command to move any rule you desire. For example,
/ip firewall filter
print
move 6 2
The above command will move a rule from position 6 to position 2
 
dreweinhorn
newbie
Topic Author
Posts: 28
Joined: Thu Mar 26, 2009 5:34 pm

Re: Editing Firewall rule set questions

Thu Jun 25, 2009 10:56 pm

D'Oh!

I must have had my eyes closed when I was look a the console, etc.
Should have seen that my self.

Thanks, Skillfull, so far you have been the one to answer all my questions!