Syntax for the CLI command Rule
Last adaption: 07.2024
New:
- Layout adjustments
This article refers to a Resellerpreview
notempty
The command system update rule must be executed for changes to the packet filter settings to take effect!
Command | Parameter | Description | Example |
---|---|---|---|
rulerule getrule get |
Listing of all packet filter rules | rule get | |
rule newrule new |
Creates a new port filter rule | rule new group "default" src "dmz1-network" dst "internet" service "default-internet" flags [ ACCEPT HIDENAT ] nat_node "external-interface" | |
group | Regular group | ||
src | Source object | ||
dst | Target object | ||
service | Service or service group | ||
flags | ACCEPT; REJECT; DROP; LOG; LOG_ALL; STATELESS; RELATED; DISABLED; QOS; HIDENAT; HIDENAT_EXCLUDE; DESTNAT; NETMAP; FULLCONENAT; TRACE | ||
log | Log frequency | ||
timeprofile | Time profile | ||
qos | Dienstgüteverordnung | ||
comment | Comment on the port filter rule | ||
route | Rule Route | ||
nat_node | Network object for the NAT | ||
nat_service | Service to be used for the NAT | ||
rule setrule set |
Editing a port filter rule | rule set id "4" pos "1" flags [ ACCEPT HIDENAT ] LOG" | |
id | Id of the packet filter rule | ||
group | Regular group | ||
src | Source object | ||
dst | Target object | ||
service | Service or service group | ||
flags | ACCEPT; REJECT; DROP; LOG; LOG_ALL; STATELESS; RELATED; DISABLED; QOS; HIDENAT; HIDENAT_EXCLUDE; DESTNAT; NETMAP; FULLCONENAT; TRACE | ||
log | Log frequency | ||
timeprofile | Time profile | ||
qos | Dienstgüteverordnung | ||
comment | Comment on the port filter rule | ||
route | Rule Route | ||
nat_node | Network object for the NAT | ||
nat_service | Service to be used for the NAT | ||
rule deleterule delete |
Deletes a packet filter rule | rule delete id "4" | |
id | Id of the packet filter rule | ||
rule moverule move |
Changes the position and group of a packet filter rule | rule move id "4" pos "3" group "default" or rule move id "4" pos "3" | |
id | Id of the packet filter rule | ||
pos | Position where the rule should be in the rulebook | ||
group | Regular group | ||
rule grouprule group getrule group get |
Listing of all packet filter rule groups | rule group get | |
rule group newrule group new |
Creates a new packet filter rule group | rule group new name "VPN" | |
name | Name of the packet filter rule group | ||
rule group setrule group set |
Changing the settings of a packet filter rule group | rule group set id "2" name "SSL-VPN" | |
id | Id of the packet filter rule group | ||
name | Name of the packet filter rule group | ||
rule group deleterule group delete |
Deletes a packet filter rule group | rule group delete id "4" | |
id | Id of the packet filter rule group | ||
rule group moverule group move |
Changes the position of a packet filter rule group in relation to the other groups | rule group move name "VPN" pos "1" | |
name | Name of the packet filter rule group | ||
pos | Position where the rule should be in the rulebook | ||
rule timeprofilerule timeprofile getrule timeprofile get |
Listing of all time profiles | rule timeprofile get | |
rule timeprofile newrule timeprofile new |
Creates a new time profile | rule timeprofile new name "Business day" | |
name | Name of the time profile | ||
rule timeprofile setrule timeprofile set |
Einrichten oder ändern eines Zeitprofils
|
rule timeprofile set id "3" day "mon" values "8-18" rule timeprofile set id "3" day "tue" values "7-18" | |
id | Id of the time profile | ||
name | Name of the time profile | ||
day | Day for the time profile (mon; tue; wed; thu; fri; sat; sun) | ||
values | Value/times for the time profile | ||
rule timeprofile deleterule timeprofile delete |
Deletes a time profile | rule timeprofile delete id "4" | |
id | Id of the time profile | ||
rule impliedrule implied group getrule implied group get |
List of implicit rule groups | rule implied group get | |
rule implied group getrule implied group set |
Activate or deactivate an implicit rule group | rule implied group set implied_group "0" active "1" | |
implied_group | Id of the implicit rule group | ||
active | Activate: "1", deactivate: "0" | ||
rule implied rule getrule implied rule get |
List of all implicit rules | rule implied rule get | |
rule implied rule getrule implied rule set |
Activating or deactivating an implicit rule | rule implied rule set implied_group "4" implied_rule "9" active "1" | |
implied_group | Id of the implicit rule group | ||
implied_rule | Id of the implicit rule | ||
active | Activate: "1", deactivate: "0" |