Adding a destination port to an already created filter rule

Hi!

I’m trying to add a dst-port to an already created filter rule.
But there’s only add (to create a new rule), edit and set commands.
Is there a way to add another dst-port to an existent rule?

Also I was bouncing my head of the walls with the id of the existent rules.
When I use the

print

command it shows the rule that I wanted to add the dst-port ( id 8 ).
But when I use

print show-ids

command, it shows an incremented value ( id 9 ).
What’s the difference?

I’m using this command to check first which rule I’m going to add the dst-port with the command

print where .id="*9"

when you guys help me =]

Sure just use a comma after the first port and no space after the comma, add another port.



print

shows rule order number in first column, while

print show-ids

auto generated unique identifier of rule, which is not related to order and it doesn’t change if you change rule order.
You can set some property value to rule using order number or id, works in both ways:

set dst-port=123,1234,12345,12350-12360 8
set dst-port=123,1234,12345,12350-12360 *9

Thanks a lot!

Yeah, I was thinking about a way to add a new one without having to tell the older ones.
But I got it, I already made a change on my PowerShell script.
Thanks!