Depending on where you want to add a new firewall rule in the list, the command syntax for adding a rule varies.
|
|
|
|
|
-- OR -- |
|
|
|
|
|
|
|
-- OR -- |
|
|
Variables:
Direction |
Description |
---|---|
in |
Inbound traffic. |
out |
Outbound traffic. |
Policy |
Description |
---|---|
accept |
Accepts traffic from/to the specified IP address(es). |
drop |
Discards traffic from/to the specified IP address(es), without sending any failure notification to the source or destination host. |
reject |
Discards traffic from/to the specified IP address(es), and an ICMP message is sent to the source or destination host for failure notification. |
Option |
Description |
---|---|
insertAbove |
Inserts the new rule above the specified rule number. Then: new rule's number = the specified rule number |
insertBelow |
Inserts the new rule below the specified rule number. Then: new rule's number = the specified rule number + 1 |