Networking NVIDIA NVOS User Manual for InfiniBand Switches

Access Control List Commands

nv show acl


nv show acl

Display all available ACLs on the system.

Syntax Description

N/A

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show acl
                            Type  Summary
---
acl-default-dos             ipv4  rule:  10
                                  rule:  20
                                  rule:  30
acl-default-dos-ipv6        ipv6  rule:  10
                                  rule:  20
                                  rule:  30
acl-default-loopback        ipv4  rule:  10
acl-default-loopback-ipv6   ipv6  rule:  10
acl-default-outbound        ipv4  rule:  10
                                  rule:  20
acl-default-outbound-ipv6   ipv6  rule:  10
                                  rule:  20
acl-default-whitelist       ipv4  rule:  10
                                  rule:  20
acl-default-whitelist-ipv6  ipv6  rule:  10
                                  rule:  20
                                  rule:  30

REST API

GET https://<ip>/nvue_v1/acl

Related Commands

nv set acl

nv unset acl


nv unset acl

Clear all newly configured ACLs and restore the original default ACLs.

Syntax Description

N/A

History

25.02.2002

Example

admin@nvos:~$ nv unset acl

REST API

DELETE https://<ip>/nvue_v1/acl

Related Commands

nv show acl

Notes

This command removes all ACL changes and additional ACLs configured on the system, and restores the original default ACLs.

nv show acl id


nv show acl <acl-id>

Display information about ACL <acl-id>: the rule IDs and the ACL type (ipv4 or ipv6).

Syntax Description

acl-id

ACL name

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl_1
      operational  applied
----  -----------  -------
type  ipv4         ipv4



rule
=======
    Number  Summary
    ------  ----------------------
    1       action:         permit
            match.ip.protocol: tcp

REST API

GET https://<ip>/nvue_v1/acl/<acl-id>

Related Commands

nv show acl

nv set/unset acl id


nv set acl <acl-id>
nv unset acl <acl-id>

Create a new custom ACL.
Delete an existing ACL.

Syntax Description

acl-id

New custom ACL name

History

25.02.2002

Example

admin@nvos:~$ nv set acl EXAMPLE_ACL

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/<acl-id>

Related Commands

nv show acl

Notes

  • You can give the ACL any generic name. However, the name matters when you bind multiple ACLs to the same interface in the same direction, because the rules of the ACLs are ordered lexicographically by ACL name.

    • For example, if ACL A has 10 rules and ACL B has 5 rules, and both are bound to the same interface in the same direction, the 10 rules of ACL A come before the 5 rules of ACL B.

  • This command alone does not apply the custom ACL. The ACL must also have at least one rule and a type (ipv4 or ipv6).

  • The unset command does not remove the specified ACL if it is bound to an interface. Unbind the ACL first, and then run this command to delete it.

  • Unsetting a default ACL restores the original list of rules of that ACL.

nv set/unset acl type


nv set acl <acl-id> type <acl-type>
nv unset acl <acl-id> type <acl-type>

Set or remove the ACL type: IPv4 or IPv6.

Syntax Description

acl-id

ACL name

acl-type

Enum: ipv4 | ipv6

History

25.02.2002

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/<acl-id>/type/

Related Commands

nv show acl

Notes

Each ACL must have a type.

nv show acl rule


nv show acl <acl-id> rule

Display all the rules configured on the specified ACL.

Syntax Description

acl-id

ACL name

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule
Number  Summary
------  ----------------------------------
10      action:                     permit
        match.ip.protocol:             udp
        match.ip.udp.dest-port:        161
        remark:             Whitelist-snmp
20      action:                     permit
        match.ip.protocol:             tcp
        match.ip.tcp.dest-port:        443
        remark:            Whitelist-https
30      action:                     permit
        match.ip.protocol:             tcp
        match.ip.tcp.dest-port:         22
        remark:              Whitelist-ssh

REST API

GET https://<ip>/nvue_v1/acl/<acl-id>/rule

Related Commands

nv show acl <acl-id>

nv show acl rule id


nv show acl <acl-id> rule <rule-id>

Show the configuration of ACL rule <rule-id>.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 10
                        operational     applied
----------------------  --------------  --------------
remark                  Whitelist-snmp  Whitelist-snmp
match
  ip
    protocol            udp             udp
    udp
      [dest-port]       161             161
    [connection-state]  new             new
    [connection-state]  established     established
action                  permit          permit

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule


nv set acl <acl-id> rule <rule-id>
nv unset acl <acl-id> rule <rule-id>

Set or remove ACL rule <rule-id>.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl user_custom_acl rule 10

REST API

PATCH https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • This command creates the specified rule in the specified ACL.

  • Creating the rule alone is not enough. For the rule to take effect, you must also specify match criteria or an action.

nv set/unset acl rule remark


nv set acl <acl-id> rule <rule-id> remark <string>
nv unset acl <acl-id> rule <rule-id> remark <string>

Set or remove a remark (description) for ACL rule <rule-id>.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl user_custom_acl rule 20 remark "MY-PROTECTIVE-RULE"

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

The remark is a description of the rule.

nv show acl rule action


nv show acl <acl-id> rule <rule-id> action

Show ACL rule <rule-id> action configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 10 action
operational  applied
-----------  -------
permit       permit

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/action

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule action permit


nv set acl <acl-id> rule <rule-id> action permit
nv unset acl <acl-id> rule <rule-id> action permit

Set or remove ACL rule <rule-id> action permit.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl user_custom_acl rule 10 action permit

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/action/permit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • You can specify only one action per rule.

  • The system accepts any packet that matches the rule.

  • If a rule has no action, the default action is permit.

nv set/unset acl rule action deny


nv set acl <acl-id> rule <rule-id> action deny
nv unset acl <acl-id> rule <rule-id> action deny

Set or remove ACL rule <rule-id> action deny.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl user_custom_acl rule 20 action deny

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/action/deny

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • You can specify only one action per rule.

  • The system rejects any packet that matches the rule and does not process the packet any further.

  • Leaving a rule with no action will leave any packet matching the specified rule unaffected.

nv set/unset acl rule action log log-prefix


nv set acl <acl-id> rule <rule-id> action log log-prefix <str>
nv unset acl <acl-id> rule <rule-id> action log log-prefix <str>

Set or remove ACL rule <rule-id> action log log-prefix <str>.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

log-prefix-str

String

History

25.02.2002

Example

admin@nvos:~$ nv set acl user_custom_acl rule 20 action log
admin@nvos:~$ nv set acl user_custom_acl rule 30 action log log-prefix "Dropped-by-custom-acl"

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/action/log
PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/action/log/log-prefix/<log-prefix-str>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • You can specify only one action per rule.

  • Log-prefix can be set to empty string.

  • Packets that match a rule with the log action are logged to the netfilter log.

  • Leaving a rule with no action will leave any packet matching the specified rule unaffected.

nv show acl rule match


nv show acl <acl-id> rule <rule-id> match

Show ACL rule <rule-id> match configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 10 match
                      operational  applied
--------------------  -----------  -----------
ip
  protocol            udp          udp
  udp
    [dest-port]       161          161
  [connection-state]  new          new
  [connection-state]  established  established

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

The output shows only the Layer 3 and Layer 4 (OSI model) match criteria of the rule.

nv set/unset acl rule match


nv set acl <acl-id> rule <rule-id> match
nv unset acl <acl-id> rule <rule-id> match

Set or remove the match criteria of ACL rule <rule-id>.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl user_custom_acl rule 20 match

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • A rule with empty match criteria matches any packet.

  • The unset form of the command removes the match criteria of the rule.

nv show acl rule match ip


nv show acl <acl-id> rule <rule-id> match ip

Show ACL rule <rule-id> match IP configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 10 match ip
                    operational  applied
------------------  -----------  -----------
protocol            udp          udp
udp
  [dest-port]       161          161
[connection-state]  new          new
[connection-state]  established  established

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

Displays the IP match criteria of the rule.

nv set/unset acl rule match ip


nv set acl <acl-id> rule <rule-id> match ip
nv unset acl <acl-id> rule <rule-id> match ip

Set or remove ACL rule <rule-id> match IP configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv unset acl user_custom_acl rule 20 match ip

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • A rule with empty IP match criteria matches any packet.

  • The unset command removes the IP match criteria of the rule.

nv show acl rule match ip udp


nv show acl <acl-id> rule <rule-id> match ip udp

Show ACL rule <rule-id> match IP UDP configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 10 match ip udp
             operational  applied
-----------  -----------  -------
[dest-port]  161          161

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/udp

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Displays the UDP match criteria of the rule.

  • The output shows the source port and destination port criteria.

nv show acl rule match ip udp dest-port


nv show acl <acl-id> rule <rule-id> match ip udp dest-port

Show ACL rule <rule-id> match IP UDP dest-port configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 10 match ip udp  dest-port
Ports
-----
161

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/udp/dest-port

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Displays the UDP destination port match criteria of the rule.

  • A rule can have more than one destination port.

nv set/unset acl rule match ip udp dest-port


nv set acl <acl-id> rule <rule-id> match ip udp dest-port <port-num>
nv unset acl <acl-id> rule <rule-id> match ip udp dest-port <port-num>

Configure or remove ACL rule <rule-id> match IP UDP dest-port <port-num> configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

port-num

IP port ID (integer: 0–65535 | enum: ANY, bootpc, bootps, clag, dhcp-client, dhcp-server, domain, ftp, http, https, imap2, ldap, ldaps, ntp, msdp, pop3, smtp, snmp, snmp-trap, ssh, telnet, tftp | ip-port-range)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip udp dest-port 22
admin@nvos:~$ nv set acl custom-acl rule 650 match ip udp dest-port 53

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/udp/dest-port/<port-num>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • A rule can have more than one destination port.

  • A rule cannot have more than one source port and more than one destination port at the same time. For example, you cannot configure ports 22 and 53 as destination ports and port 1813 as the source port, but you can configure port 22 as the destination port and port 1813 as the source port.

  • You can configure more than one destination port or more than one source port.

nv show acl rule match ip udp source-port


nv show acl <acl-id> rule <rule-id> match ip udp source-port

Show ACL rule <rule-id> match IP UDP source-port configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl custom-acl rule 650 match ip udp source-port
Ports
-----
53
22

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/udp/source-port

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Displays the UDP source port match criteria of the rule.

  • A rule can have more than one source port.

nv set/unset acl rule match ip udp source-port


nv set acl <acl-id> rule <rule-id> match ip udp source-port <port-num>
nv unset acl <acl-id> rule <rule-id> match ip udp source-port <port-num>

Configure or remove ACL rule <rule-id> match IP UDP source-port <port-num> configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

port-num

IP port ID (integer: 0–65535 | enum: ANY, bootpc, bootps, clag, dhcp-client, dhcp-server, domain, ftp, http, https, imap2, ldap, ldaps, ntp, msdp, pop3, smtp, snmp, snmp-trap, ssh, telnet, tftp | ip-port-range)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip udp source-port 22
admin@nvos:~$ nv set acl custom-acl rule 650 match ip udp source-port 53

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/udp/source-port/<port-num>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • A rule can have more than one source port.

  • A rule cannot have more than one source port and more than one destination port at the same time. For example, you cannot configure ports 22 and 53 as destination ports and port 1813 as the source port, but you can configure port 22 as the destination port and port 1813 as the source port.

  • You can configure more than one destination port or more than one source port.

nv show acl rule match ip tcp


nv show acl <acl-id> rule <rule-id> match ip tcp

Show ACL rule <rule-id> match IP TCP configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 230 match ip tcp
             operational  applied
-----------  -----------  -------
[dest-port]  9351         9351
[dest-port]  9352         9352
[dest-port]  9353         9353
[dest-port]  9370         9370
admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 50 match ip tcp
             operational  applied
-----------  -----------  -------
[dest-port]  9339         9339

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Displays the TCP match criteria of the rule.

  • The output can include source-port, dest-port, flags, mask, mss, and all-mss-except.

nv show acl rule match ip tcp dest-port


nv show acl <acl-id> rule <rule-id> match ip tcp dest-port

Show ACL rule <rule-id> match IP TCP dest-port configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 230 match ip tcp dest-port
Ports
-----
9351
9352
9353
9370

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/dest-port

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Displays the TCP destination port match criteria of the rule.

  • A rule can have more than one destination port.

nv set/unset acl rule match ip tcp dest-port


nv set acl <acl-id> rule <rule-id> match ip tcp dest-port <port-num>
nv unset acl <acl-id> rule <rule-id> match ip tcp dest-port <port-num>

Configure or remove ACL rule <rule-id> match IP TCP dest-port <port-num> configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

port-num

IP port ID (integer: 0–65535 | enum: ANY, bootpc, bootps, clag, dhcp-client, dhcp-server, domain, ftp, http, https, imap2, ldap, ldaps, ntp, msdp, pop3, smtp, snmp, snmp-trap, ssh, telnet, tftp | ip-port-range)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip tcp dest-port 22
admin@nvos:~$ nv set acl custom-acl rule 650 match ip tcp dest-port 53

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/dest-port/<port-num>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • A rule can have more than one destination port.

  • A rule cannot have more than one source port and more than one destination port at the same time. For example, you cannot configure ports 22 and 53 as destination ports and port 1813 as the source port, but you can configure port 22 as the destination port and port 1813 as the source port.

  • You can configure more than one destination port or more than one source port.

nv show acl rule match ip tcp source-port


nv show acl <acl-id> rule <rule-id> match ip tcp source-port

Show ACL rule <rule-id> match IP TCP source-port configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl custom-acl rule 650 match ip tcp source-port
Ports
-----
53
22

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/source-port

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Displays the TCP source port match criteria of the rule.

  • A rule can have more than one source port.

nv set/unset acl rule match ip tcp source-port


nv set acl <acl-id> rule <rule-id> match ip tcp source-port <port-num>
nv unset acl <acl-id> rule <rule-id> match ip tcp source-port <port-num>

Configure or remove ACL rule <rule-id> match IP TCP source-port <port-num> configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

port-num

IP port ID (integer: 0–65535 | enum: ANY, bootpc, bootps, clag, dhcp-client, dhcp-server, domain, ftp, http, https, imap2, ldap, ldaps, ntp, msdp, pop3, smtp, snmp, snmp-trap, ssh, telnet, tftp | ip-port-range)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip tcp source-port 22
admin@nvos:~$ nv set acl custom-acl rule 650 match ip tcp source-port 53

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/source-port/<port-num>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • A rule can have more than one source port.

  • A rule cannot have more than one source port and more than one destination port at the same time. For example, you cannot configure ports 22 and 53 as destination ports and port 1813 as the source port, but you can configure port 22 as the destination port and port 1813 as the source port.

  • You can configure more than one destination port or more than one source port.

nv show acl rule match ip tcp flags


nv show acl <acl-id> rule <rule-id> match ip tcp flags

Show ACL rule <rule-id> match IP TCP flags configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-dos rule 60 match ip tcp flags -o json
{
  "none": {}
}

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/flags

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule match ip tcp flags


nv set acl <acl-id> rule <rule-id> match ip tcp flags (syn | ack | fin | rst | urg | psh | all | none)
nv unset acl <acl-id> rule <rule-id> match ip tcp flags (syn | ack | fin | rst | urg | psh | all | none)

Configure or remove ACL rule <rule-id> match IP TCP flags <flag-id> configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

flag-id

enum: (syn | ack | fin | rst | urg | psh | all | none)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip tcp flags all
admin@nvos:~$ nv set acl custom-acl rule 660 match ip tcp flags urg
admin@nvos:~$ nv set acl custom-acl rule 660 match ip tcp flags psh
admin@nvos:~$ nv set acl custom-acl rule 660 match ip tcp flags syn

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/flags/<flag-id>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • You can configure multiple flags, but you must configure all or none on its own.

  • When you configure flags, you must also configure the TCP mask.

nv show acl rule match ip tcp mask


nv show acl <acl-id> rule <rule-id> match ip tcp mask

Show ACL rule <rule-id> match IP TCP mask configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-dos rule 60 match ip tcp mask -o json
{
  "ack": {},
  "fin": {},
  "rst": {},
  "syn": {}
}

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/mask

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule match ip tcp mask


nv set acl <acl-id> rule <rule-id> match ip tcp mask (syn | ack | fin | rst | urg | psh | all | none)
nv unset acl <acl-id> rule <rule-id> match ip tcp mask (syn | ack | fin | rst | urg | psh | all | none)

Configure or remove ACL rule <rule-id> match IP TCP mask <flag-id> configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

flag-id

enum: (syn | ack | fin | rst | urg | psh | all | none)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip tcp mask all
admin@nvos:~$ nv set acl custom-acl rule 660 match ip tcp mask urg
admin@nvos:~$ nv set acl custom-acl rule 660 match ip tcp mask psh
admin@nvos:~$ nv set acl custom-acl rule 660 match ip tcp mask syn

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/mask/<flag-id>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • You can configure multiple flags, but you must configure all or none on its own.

  • When you configure flags, you must also configure the TCP mask.

nv set/unset acl rule match ip tcp mss


nv set acl <acl-id> rule <rule-id> match ip tcp mss <mss-format>
nv unset acl <acl-id> rule <rule-id> match ip tcp mss <mss-format>

Configure or remove ACL rule <rule-id> match IP TCP mss configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

mss-format

The TCP MSS value can be an integer or a range.
Examples: "0-1", "536-65535", "65000", "128"

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip tcp mss 536
admin@nvos:~$ nv set acl custom-acl rule 660 match ip tcp mss 536-65535

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/mss/<mss-format>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

The rule matches TCP packets with the specified MSS values.

nv set/unset acl rule match ip tcp all-mss-except


nv set acl <acl-id> rule <rule-id> match ip tcp all-mss-except <mss-format>
nv unset acl <acl-id> rule <rule-id> match ip tcp all-mss-except <mss-format>

Configure or remove ACL rule <rule-id> match IP TCP all-mss-except configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

mss-format

The TCP MSS value can be an integer or a range.
Examples: "0-1", "536-65535", "65000", "128"

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip tcp all-mss-except 536
admin@nvos:~$ nv set acl custom-acl rule 660 match ip tcp all-mss-except 536-65535

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/tcp/all-mss-except/<mss-format>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

The rule matches all TCP packets with an MSS value other than the specified MSS values.

nv set/unset acl rule match ip fragment


nv set acl <acl-id> rule <rule-id> match ip fragment
nv unset acl <acl-id> rule <rule-id> match ip fragment

Configure or remove ACL rule <rule-id> match IP fragment configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip fragment

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/fragment

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

Matches fragmented packets.

nv show acl rule match ip ecn


nv show acl <acl-id> rule <rule-id> match ip ecn

Show ACL rule <rule-id> match IP ECN configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl b rule 1 match ip ecn
        operational  applied
------  -----------  -------
ip-ect  3            3

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/ecn

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule match ip ecn 


nv set acl <acl-id> rule <rule-id> match ip ecn
nv unset acl <acl-id> rule <rule-id> match ip ecn

Configure or remove ACL rule <rule-id> match IP ECN configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv unset acl custom-acl rule 650 match ip ecn

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/ecn

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule match ip ecn ip-ect 


nv set acl <acl-id> rule <rule-id> match ip ecn ip-ect <ip-ect-num>
nv unset acl <acl-id> rule <rule-id> match ip ecn ip-ect <ip-ect-num>

Configure or remove ACL rule <rule-id> match IP ECN ip-ect configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

ip-ect

ip-ect (integer: 0–3)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip ecn ip-ect 0

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/ecn/ip-ect

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule match ip ecn flags


nv set acl <acl-id> rule <rule-id> match ip ecn flags <ecn-flag>
nv unset acl <acl-id> rule <rule-id> match ip ecn flags <ecn-flag>

Configure or remove ACL rule <rule-id> match IP ECN flags configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

ecn-flag

enum: tcp-cwr | tcp-ece

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 650 match ip ecn flags  tcp-cwr

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/ecn/flags/<flag-id>

Related Commands

nv set acl <acl-id> rule <rule-id>

nv show acl rule match ip connection-state


nv show acl <acl-id> rule <rule-id> match ip connection-state

Show ACL rule <rule-id> match IP connection-state configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-whitelist-ipv6 rule 10 match ip connection-state
operational  applied
-----------  -----------
new          new
established  established

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/connection-state

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule match ip connection-state


nv set acl <acl-id> rule <rule-id> match ip connection-state <state-id>
nv unset acl <acl-id> rule <rule-id> match ip connection-state <state-id>

Configure or remove ACL rule <rule-id> match IP connection-state <state-id> configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

state-id

Connection state: established, invalid, new, or related

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip connection-state new

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/connection-state

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

You can configure multiple connection states.

nv show acl rule match ip extension-header


nv show acl <acl-id> rule <rule-id> match ip extension-header

Show ACL rule <rule-id> match IP extension-header configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl ACL1 rule 1 match ip extension-header
                        operational                applied
---------------------   -------------------------  ------------------------
type                    hop-by-hop                 hop-by-hop

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/extension-header

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule match ip extension-header type


nv set acl <acl-id> rule <rule-id> match ip extension-header type hop-by-hop
nv unset acl <acl-id> rule <rule-id> match ip extension-header type hop-by-hop

Configure or remove ACL rule <rule-id> match IP extension-header configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip extension-header type hop-by-hop

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/extension-header/type/<type>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • This configuration applies only to IPv6 ACLs.

  • Matches '-m hbh' in the ip6tables tool.

nv show acl rule match ip routing-header


nv show acl <acl-id> rule <rule-id> match ip routing-header

Show ACL rule <rule-id> match IP routing-header configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl ACL_MGMT_INBOUND_CP_DEFAULT_IPV6 rule 850 match ip routing-header
      operational  applied
----  -----------  -------
type  0            0

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/routing-header

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl ACL rule match ip routing-header type


nv set acl <acl-id> rule <rule-id> match ip routing-header type (0-4294967295)
nv unset acl <acl-id> rule <rule-id> match ip routing-header type (0-4294967295)

Configure or remove ACL rule <rule-id> match IP routing-header configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip extension-header type 0

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/routing-header/type/<type>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • This configuration applies only to IPv6 ACLs.

  • Matches '-m rt' in the ip6tables tool.

nv set/unset acl ACL rule match ip source-ip


nv set acl <acl-id> rule <rule-id> match ip source-ip <ip-format>
nv unset acl <acl-id> rule <rule-id> match ip source-ip <ip-format>

Configure or remove ACL rule <rule-id> match IP source-ip configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

source-ip

(ANY | <ipv4> | <ipv6> | <ipv4-prefix> | <ipv6-prefix> | <ipv4-netmask> | <ipv6-netmask>)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip source-ip 127.0.0.1/8

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/source-ip/<ip-format>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

You cannot configure an IPv4 address on an IPv6 ACL, or an IPv6 address on an IPv4 ACL.

nv set/unset acl ACL rule match ip dest-ip


nv set acl <acl-id> rule <rule-id> match ip dest-ip <ip-format>
nv unset acl <acl-id> rule <rule-id> match ip dest-ip <ip-format>

Configure or remove ACL rule <rule-id> match IP dest-ip configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

dest-ip

(ANY | <ipv4> | <ipv6> | <ipv4-prefix> | <ipv6-prefix> | <ipv4-netmask> | <ipv6-netmask>)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip dest-ip 127.0.0.1/8

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/dest-ip/<ip-format>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

You cannot configure an IPv4 address on an IPv6 ACL, or an IPv6 address on an IPv4 ACL.

nv set/unset acl rule match ip protocol


nv set acl <acl-id> rule <rule-id> match ip protocol <protocol-format>
nv unset acl <acl-id> rule <rule-id> match ip protocol <protocol-format>

Configure or remove ACL rule <rule-id> match IP protocol configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

protocol-format

(0-255 | tcp | udp | icmp | icmpv6)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip protocol tcp

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/protocol/<protocol-format>

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set/unset acl rule match ip icmp-type


nv set acl <acl-id> rule <rule-id> match ip icmp-type <icmp-format>
nv unset acl <acl-id> rule <rule-id> match ip icmp-type <icmp-format>

Configure or remove ACL rule <rule-id> match IP ICMP type configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

icmp-format

(0-255 | echo-reply | echo-request | time-exceeded | dest-unreachable | port-unreachable)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip icmp-type echo-reply
admin@nvos:~$ nv set acl custom-acl rule 10 match ip icmp-type 9

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/icmp-type/<icmp-format>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • You must set the match protocol to ICMP:

    $nv set acl custom-acl rule 10 match ip protocol icmp
    
  • The ACL type must be ipv4.

nv set/unset acl rule match ip icmpv6-type


nv set acl <acl-id> rule <rule-id> match ip icmpv6-type <icmp-format>
nv unset acl <acl-id> rule <rule-id> match ip icmpv6-type <icmp-format>

Configure or remove ACL rule <rule-id> match IP ICMPv6 type configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

icmpv6-format

(0-255 | router-solicitation | router-advertisement | neighbor-solicitation | neighbor-advertisement)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip icmp-type router-solicitation
admin@nvos:~$ nv set acl custom-acl rule 10 match ip icmp-type 9

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/icmpv6-type/<icmpv6-format>

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • You must set the match protocol to ICMPv6:

    $nv set acl custom-acl rule 10 match ip protocol icmpv6
    
  • The ACL type must be ipv6.

nv show acl rule match ip recent-list


nv show acl <acl-id> rule <rule-id> match ip recent-list

Show ACL rule <rule-id> match IP recent-list configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv show acl acl-default-dos rule 120 match ip recent-list
                 operational  applied
---------------  -----------  -------
name             TCP          TCP
update-interval  60           60
hit-count        100          100
action           update       update

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/recent-list

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'recent' iptables module.

  • Filters IP addresses that exceed a specific rate.
    In the example above, the rate is 100 packets per 60 seconds. If a source IP address sends more than this rate, the switch blocks the IP address.

nv set/unset acl rule match ip recent-list name


nv set acl <acl-id> rule <rule-id> match ip recent-list name <generic-name>
nv unset acl <acl-id> rule <rule-id> match ip recent-list name <generic-name>

Configure or remove ACL rule <rule-id> match IP recent-list name configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip recent-list name "EXAMPLE"

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/recent-list

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • To configure a recent list, configure its action and name:

    • For the set action, configure name and action=set.

    • For the update action, configure name, action=update, hit-count, and update-interval.

  • The system can have multiple recent lists. Each recent list has a unique name.

  • For more information, refer to the iptables documentation for the recent module.

nv set/unset acl rule match ip recent-list action


nv set acl <acl-id> rule <rule-id> match ip recent-list action (set | update)
nv unset acl <acl-id> rule <rule-id> match ip recent-list action (set | update)

Configure or remove ACL rule <rule-id> match IP recent-list action configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip recent-list action update

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/recent-list

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • To configure a recent list, configure its action and name:

    • For the set action, configure name and action=set.

    • For the update action, configure name, action=update, hit-count, and update-interval.

  • The system can have multiple recent lists. Each recent list has a unique name.

  • For more information, refer to the iptables documentation for the recent module.

nv set/unset acl rule match ip recent-list hit-count


nv set acl <acl-id> rule <rule-id> match ip recent-list hit-count (1-4294967295)
nv unset acl <acl-id> rule <rule-id> match ip recent-list hit-count (1-4294967295)

Configure or remove ACL rule <rule-id> match IP recent-list hit-count configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip recent-list  hit-count  100

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/recent-list

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • To configure a recent list, configure its action and name:

    • For the set action, configure name and action=set.

    • For the update action, configure name, action=update, hit-count, and update-interval.

  • The system can have multiple recent lists. Each recent list has a unique name.

  • For more information, refer to the iptables documentation for the recent module.

nv set/unset acl rule match ip recent-list update-interval


nv set acl <acl-id> rule <rule-id> match ip recent-list update-interval (1-4294967295)
nv unset acl <acl-id> rule <rule-id> match ip recent-list update-interval (1-4294967295)

Configure or remove ACL rule <rule-id> match IP recent-list update-interval configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip recent-list  update-interval  60

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/recent-list

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • To configure a recent list, configure its action and name:

    • For the set action, configure name and action=set.

    • For the update action, configure name, action=update, hit-count, and update-interval.

  • The system can have multiple recent lists. Each recent list has a unique name.

  • For more information, refer to the iptables documentation for the recent module.

nv show acl rule match ip hashlimit


nv show acl <acl-id> rule <rule-id> match ip hashlimit

Show ACL rule <rule-id> match IP hashlimit configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nnv show acl acl-default-dos rule 600 match ip hashlimit
             operational  applied
-----------  -----------  ----------
name         LOGGING      LOGGING
rate-above   1/min        1/min
burst        5            5
source-mask  32           32
expire       4294967295   4294967295
mode         src-ip       src-ip

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/hashlimit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'hashlimit' iptables module.

  • This is another way to filter IP addresses.

  • The following properties are required: name, rate-above, burst, expire, and mode.

nv set/unset acl rule match ip hashlimit name


nv set acl <acl-id> rule <rule-id> match ip hashlimit name <generic-name>
nv unset acl <acl-id> rule <rule-id> match ip hashlimit name <generic-name>

Configure or remove ACL rule <rule-id> match IP hashlimit name configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip hashlimit name "Limiter"

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/hashlimit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'hashlimit' iptables module.

  • The following properties are required: name, rate-above, burst, expire, and mode.

nv set/unset acl rule match ip hashlimit rate-above


nv [un]set acl <acl-id> rule <rule-id> match ip hashlimit rate-above <rate-format>

Configure or remove ACL rule <rule-id> match IP hashlimit rate-above configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

rate-format

Rate limit in the format integer/time-unit, where time-unit is second, min, or hour. The maximum supported rate is 1000000/second.

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip hashlimit rate 2/min

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/hashlimit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'hashlimit' iptables module.

  • The following properties are required: name, rate-above, burst, expire, and mode.

nv set/unset acl rule match ip hashlimit burst


nv [un]set acl <acl-id> rule <rule-id> match ip hashlimit burst <burst-int>

Configure or remove ACL rule <rule-id> match IP hashlimit burst configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

burst-int

integer: 1–1000000

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip hashlimit burst 5

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/hashlimit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'hashlimit' iptables module.

  • The following properties are required: name, rate-above, burst, expire, and mode.

nv set/unset acl rule match ip hashlimit expire


nv [un]set acl <acl-id> rule <rule-id> match ip hashlimit expire <expire-int>

Configure or remove ACL rule <rule-id> match IP hashlimit expire configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

expire-int

integer: 1–4294967295

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip hashlimit expire 3

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/hashlimit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'hashlimit' iptables module.

  • The following properties are required: name, rate-above, burst, expire, and mode.

nv set/unset acl rule match ip hashlimit mode


nv set acl <acl-id> rule <rule-id> match ip hashlimit mode <mode>
nv unset acl <acl-id> rule <rule-id> match ip hashlimit mode <mode>

Configure or remove ACL rule <rule-id> match IP hashlimit mode configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

mode

(enum: src-ip | dst-ip)

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip hashlimit mode src-ip

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/hashlimit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'hashlimit' iptables module.

  • The following properties are required: name, rate-above, burst, expire, and mode.

nv set/unset acl rule match ip hashlimit destination-mask


nv set acl <acl-id> rule <rule-id> match ip hashlimit destination-mask <mask>
nv unset acl <acl-id> rule <rule-id> match ip hashlimit destination-mask <mask>

Configure or remove ACL rule <rule-id> match IP hashlimit destination-mask configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

mask

Integer:
IPv4 range: 0–32
IPv6 range: 0–128

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip hashlimit destination-mask 32

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/hashlimit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'hashlimit' iptables module.

  • The following properties are required: name, rate-above, burst, expire, and mode.

nv set/unset acl rule match ip hashlimit source-mask


nv set acl <acl-id> rule <rule-id> match ip hashlimit source-mask <mask>
nv unset acl <acl-id> rule <rule-id> match ip hashlimit source-mask <mask>

Configure or remove ACL rule <rule-id> match IP hashlimit source-mask configuration.

Syntax Description

acl-id

ACL name

rule-id

Rule number (integer: 1–65535)

mask

Integer:
IPv4 range: 0–32
IPv6 range: 0–128

History

25.02.2002

Example

admin@nvos:~$ nv set acl custom-acl rule 10 match ip hashlimit source-mask 32

REST API

PATCH/DELETE https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/match/ip/hashlimit

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

  • Matches the 'hashlimit' iptables module.

  • The following properties are required: name, rate-above, burst, expire, and mode.

nv show interface acl


nv show interface <iface-id> acl

Display the ACLs bound to the interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface eth0 acl
ACL Name                    Rule ID  In Packets  In Bytes  Out Packets  Out Bytes
------------------------    -------  -----------  -------   ----------  ---------
acl-default-dos             10       0           0 Bytes
                            20       260         20.45 KB
                            30       0           0 Bytes
                            40       0           0 Bytes
                            50       0           0 Bytes
acl-default-dos-ipv6        10       0           0 Bytes
                            20       0           0 Bytes
                            30       0           0 Bytes
                            40       0           0 Bytes
acl-default-outbound        10                             0            0 Bytes
                            20                             295          32.96 KB
acl-default-outbound-ipv6   10                             0            0 Bytes
                            20                             0            0 Bytes
acl-default-whitelist       10       0           0 Bytes
                            20       0           0 Bytes
                            30       1083        82.80 KB
acl-default-whitelist-ipv6  10       0           0 Bytes
                            20       0           0 Bytes
                            30       0           0 Bytes

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl

Related Commands

nv set acl <acl-id> rule <rule-id>

nv show interface lo acl


nv show interface lo acl

Display the ACLs bound to the loopback interface.

Syntax Description

N/A

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface lo acl

ACL Name                      Rule ID       In Packets     In Bytes     Out Packets     Out Bytes
------------------------      --------     -----------     ---------    ------------       ----------
acl-default-loopback          10               0           0 Bytes
acl-default-loopback-ipv6     10               0           0 Bytes

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl

Related Commands

nv set acl <acl-id> rule <rule-id>

nv show interface acl id


nv show interface <iface-id> acl <acl-id>

Display the specified ACL bound to the interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface eth0 acl EXAMPLE1
Statistics
===============
Rule  In Packet  In Byte  Out Packet  Out Byte  Action  Match
----  ---------  -------  ----------  --------  ------  ----------------------------
10    0          0 Bytes                        permit  ip
                                                           udp
                                                             dest-port       : 161
                                                           connection-state
                                                             new             : False
                                                             established     : False
                                                           protocol          : udp

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}

Related Commands

nv set acl <acl-id> rule <rule-id>

nv show interface acl statistics


nv show interface <iface-id> acl <acl-id> statistics

Display the statistics of the specified ACL bound to the interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface eth0 acl EXAMPLE1 statistics
Rule  In Packet  In Byte  Out Packet  Out Byte  Action  Match
----  ---------  -------  ----------  --------  ------  ----------------------------
10    0          0 Bytes                        permit  ip
                                                           udp
                                                             dest-port       : 161
                                                           connection-state
                                                             new             : False
                                                             established     : False
                                                           protocol          : udp

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/statistics

Related Commands

nv set acl <acl-id> rule <rule-id>

nv show interface acl statistics id


nv show interface <iface-id> acl <acl-id> statistics <rule-id>

Display the statistics of the specified rule of the specified ACL bound to the interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface eth0 acl EXAMPLE1 statistics 10
                        operational  applied
----------------------  -----------  -------
match
  ip
    protocol            udp
    udp
      [dest-port]       161
    [connection-state]  new
    [connection-state]  established
action                  permit
inbound
  packet                0
  byte                  0 Bytes

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/statistics/{rule-id}

Related Commands

nv set acl <acl-id> rule <rule-id>

nv show interface acl outbound


nv show interface <iface-id> acl <acl-id> outbound

Display the specified ACL bound to the interface in the outbound direction.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface eth0 acl EXAMPLE1 outbound

Statistics
===============
Rule  Out Packet   Out Byte        Action              Match
----  ----------  ---------------  ------------------- ----------------------------
10    0           0 Bytes           permit             ip
                                                         udp
                                                           dest-port       : 161
                                                         connection-state
                                                           new             : False
                                                           established     : False
                                                         protocol          : udp
20    0           0 Bytes           permit             ip
                                                         tcp
                                                           dest-port       : 443
                                                         connection-state
                                                           new             : False
                                                           established     : False
                                                         protocol          : tcp

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/outbound

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

If an ACL is configured in one direction but not the other, it appears in the output of the parent show command (nv show interface <iface> acl <acl-id>) but not in the output of the show command for the direction in which it is not configured.

nv show interface acl outbound control-plane


nv show interface <iface-id> acl <acl-id> outbound control-plane

Display the specified ACL bound to the interface in the outbound control-plane direction.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface eth0 acl EXAMPLE1 outbound control-plane
Statistics
===============
Rule  Out Packet  Out Byte    Action  Match
----  ----------  ----------  ------  -----------------------------
10    0           0 Bytes     deny    ip
                                        connection-state
                                          invalid         : False
20    47          4824 Bytes  permit

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/outbound/control-plane

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

If an ACL is configured in one direction but not the other, it appears in the output of the parent show command (nv show interface <iface> acl <acl-id>) but not in the output of the show command for the direction in which it is not configured.

nv show interface acl inbound 


nv show interface <iface-id> acl <acl-id> inbound

Display the specified ACL bound to the interface in the inbound direction.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface eth0 acl EXAMPLE1 inbound
Statistics
===============
Rule  In Packet  In Byte  Action  Match
----  ---------  -------  ------  ----------------------------
10    0          0 Bytes  permit  ip
                                    udp
                                      dest-port       : 161
                                    connection-state
                                      new             : False
                                      established     : False
                                    protocol          : udp

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/inbound

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

If an ACL is configured in one direction but not the other, it appears in the output of the parent show command (nv show interface <iface> acl <acl-id>) but not in the output of the show command for the direction in which it is not configured.

nv show interface acl inbound control-plane


nv show interface <iface-id> acl <acl-id> inbound control-plane

Display the specified ACL bound to the interface in the inbound control-plane direction.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

25.02.70xx
Updated output

Example

admin@nvos:~$ nv show interface eth0 acl EXAMPLE1 inbound control-plane
Statistics
===============
Rule  In Packet  In Byte  Action  Match
----  ---------  -------  ------  -----------------------------
10    0          0 Bytes  permit  ip
                                    udp
                                      dest-port       : 161
                                    connection-state
                                      new             : False
                                      established     : False
                                    protocol          : udp

REST API

GET https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/inbound/control-plane

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

If an ACL is configured in one direction but not the other, it appears in the output of the parent show command (nv show interface <iface> acl <acl-id>) but not in the output of the show command for the direction in which it is not configured.

nv set/unset interface acl inbound


nv set interface <iface-id> acl <acl-id> inbound
nv unset interface <iface-id> acl <acl-id> inbound

Configure or remove the binding of the specified ACL to the specified interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

acl-id

ACL name

History

25.02.2002

Example

admin@nvos:~$ nv set interface eth0 acl ACL1 inbound

REST API

PATCH/DELETE https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/inbound

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

An ACL cannot be bound to both inbound and inbound control-plane, or to both outbound and outbound control-plane, on the same interface.

nv set/unset interface acl inbound control-plane


nv set interface <iface-id> acl <acl-id> inbound control-plane
nv unset interface <iface-id> acl <acl-id> inbound control-plane

Bind the specified ACL to the specified interface.
The unset form of the command removes the binding of the specified ACL from the specified interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

acl-id

ACL name

History

25.02.2002

25.02.70xx
Updated syntax

Example

admin@nvos:~$ nv set interface eth0 acl EXAMPLE1 inbound control-plane
admin@nvos:~$ nv unset interface eth0 acl EXAMPLE1 inbound control-plane

REST API

PATCH https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/inbound/control-plane
DELETE https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/inbound/control-plane

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

An ACL cannot be applied to both inbound and inbound control-plane, or to both outbound and outbound control-plane, on the same interface. Resetting the firewall rules to their default settings on the interface restores normal behavior.

nv set/unset interface acl outbound control-plane


nv set interface <iface-id> acl <acl-id> outbound control-plane
nv unset interface <iface-id> acl <acl-id> outbound control-plane

Bind the specified ACL to the specified interface.
The unset form of the command removes the binding of the specified ACL from the specified interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

acl-id

ACL name

History

25.02.2002

Example

admin@nvos:~$ nv set interface eth0 acl EXAMPLE1 outbound control-plane
admin@nvos:~$ nv unset interface eth0 acl EXAMPLE1 outbound control-plane

REST API

PATCH https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/outbound/control-plane
DELETE https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/outbound/control-plane

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

An ACL cannot be bound to both inbound and inbound control-plane, or to both outbound and outbound control-plane, on the same interface.

nv set/unset interface acl outbound 


nv set interface <iface-id> acl <acl-id> outbound
nv unset interface <iface-id> acl <acl-id> outbound

Configure or remove the binding of the specified ACL to the specified interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

acl-id

ACL name

History

25.02.2002

Example

admin@nvos:~$ nv set interface eth0 acl EXAMPLE1 outbound
admin@nvos:~$ nv unset interface eth0 acl EXAMPLE1 outbound

REST API

PATCH/DELETE https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}/outbound

Related Commands

nv set acl <acl-id> rule <rule-id>

Notes

An ACL cannot be bound to both inbound and inbound control-plane, or to both outbound and outbound control-plane, on the same interface.

nv set/unset interface acl


nv set interface <iface-id> acl
nv unset interface <iface-id> acl

Set the ACL configuration of the specified interface.
Unset the ACL configuration of the specified interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

History

25.02.2002

Example

admin@nvos:~$ nv set interface eth0 acl
admin@nvos:~$ nv unset interface eth0 acl

REST API

PATCH https://<ip>/nvue_v1/interface/{interface-id}/acl
DELETE https://<ip>/nvue_v1/interface/{interface-id}/acl

Notes

Unsetting an interface ACL (at any level) does not restore the default binding; it works like any other unset operation. Setting or unsetting ACLs on an interface follows standard NVUE behavior.

nv set/unset interface acl id


nv set interface <iface-id> acl <acl-id>
nv unset interface <iface-id> acl <acl-id>

Set the configuration of the specified ACL on the specified interface.
Unset the configuration of the specified ACL on the specified interface.

Syntax Description

iface-id

Interface could be one of 'eth0' or 'loopback'

acl-id

ACL name

History

25.02.2002

25.02.70xx
Updated ACL names

Example

admin@nvos:~$ nv set interface eth0 acl EXAMPLE1
admin@nvos:~$ nv unset interface eth0 acl EXAMPLE1

REST API

PATCH https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}
DELETE https://<ip>/nvue_v1/interface/{interface-id}/acl/{acl-id}

Notes

Unsetting an interface ACL (at any level) does not restore the default binding; it works like any other unset operation. Setting or unsetting ACLs on an interface follows standard NVUE behavior.

nv set/unset interface


nv set interface
nv unset interface

Set the interface configuration.
Unset the interface configuration.

Syntax Description

N/A

History

25.02.2002

Example

admin@nvos:~$ nv set interface
admin@nvos:~$ nv unset interface

REST API

PATCH https://<ip>/nvue_v1/interface
DELETE https://<ip>/nvue_v1/interface

Notes

Unsetting an interface ACL (at any level) does not restore the default binding; it works like any other unset operation. Setting or unsetting ACLs on an interface follows standard NVUE behavior.

nv action clear acl counters


nv action clear acl counters

Clear the ACL counters that the show commands display.

Syntax Description

N/A

History

25.02.2002

Example

admin@nvos:~$ nv action clear acl counters

REST API

POST https://<ip>/nvue_v1/acl

Related Commands

nv set acl <acl-id> rule <rule-id>

nv set acl rule action set dscp


nv set acl <acl-id> rule <rule-id> action set dscp <dscp-value>

Set the DSCP value of packets that match the rule.

Syntax Description

acl-id

ACL ID

rule-id

Rule number (integer: 1–65535)

dscp-value

An enum value or an integer.
Supported enum values:

  • af11

  • af12

  • af13

  • af21

  • af22

  • af23

  • af31

  • af32

  • af33

  • af41

  • af42

  • af43

  • cs1

  • cs2

  • cs3

  • cs4

  • cs5

  • cs6

  • cs7

  • be

  • ef

Or an integer: 0–63

History

25.02.4002

Example

admin@nvos:~$ nv set acl ACL1 rule 10 action set dscp ef

REST API

PATCH https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/action/set

Related Commands

nv show acl <acl-id> rule <rule-id> action

Notes

Supported only on the management interface.
You can configure this action only in the inbound and outbound directions.

nv set/unset system control-plane acl


nv set system control-plane acl <acl-id> (outbound | inbound)
nv unset system control-plane acl [<acl-id>]

Bind an ACL to the system control plane and set its direction.
The unset form of the command unbinds the specified ACL from the system control plane. If you do not specify an ACL ID, the command unbinds all system control-plane ACLs.

Syntax Description

acl-id

ACL ID

inbound

Binds the ACL in the inbound direction.

outbound

Binds the ACL in the outbound direction.

History

25.02.70xx

Example

admin@nvos:~$ nv set system control-plane acl acl-default-whitelist-ipv6 inbound
admin@nvos:~$ nv unset system control-plane acl acl_1
admin@nvos:~$ nv unset system control-plane acl

REST API

PATCH https://<ip>/nvue_v1/system/control-plane/acl/{acl-id}

Related Commands

nv show system control-plane acl

nv show system control-plane acl


nv show system control-plane acl

Show system control-plane ACL configuration.

Syntax Description

N/A

History

25.02.70xx

Example

admin@nvos:~$ nv show system control-plane acl
    ACL Name                    Rule ID  In Packets  In Bytes    Out Packets  Out Bytes
    --------------------------  -------  ----------  ----------  -----------  ---------
    acl-default-dos             10       3819        236.91 KB
                                20       1218        64.07 KB
                                30       0           0 Bytes
    acl-default-dos-ipv6        10       0           0 Bytes
                                20       0           0 Bytes
                                30       0           0 Bytes
                                40       0           0 Bytes
    acl-default-outbound        10                               0            0 Bytes
                                20                               295          32.96 KB
    acl-default-outbound-ipv6   10                               0            0 Bytes
                                20                               0            0 Bytes
    acl-default-whitelist       10       0           0 Bytes
                                20       0           0 Bytes
                                30       1083        82.80 KB
    acl-default-whitelist-ipv6  10       0           0 Bytes
                                20       0           0 Bytes
                                30       0           0 Bytes

REST API

GET https://<ip>/nvue_v1/system/control-plane/acl

Related Commands

nv set system control-plane acl
nv show system control-plane

nv show system control-plane


nv show system control-plane

Show system control-plane configuration.

Syntax Description

N/A

History

25.02.70xx

Example

admin@nvos:~$ nv show system control-plane
acl
======
    ACL Name                    Rule ID  In Packets  In Bytes    Out Packets  Out Bytes
    --------------------------  -------  ----------  ----------  -----------  ---------
    acl-default-dos             10       3819        236.91 KB
                                20       1218        64.07 KB
                                30       0           0 Bytes
    acl-default-dos-ipv6        10       0           0 Bytes
                                20       0           0 Bytes
                                30       0           0 Bytes
                                40       0           0 Bytes
    acl-default-outbound        10                               0            0 Bytes
                                20                               295          32.96 KB
    acl-default-outbound-ipv6   10                               0            0 Bytes
                                20                               0            0 Bytes
    acl-default-whitelist       10       0           0 Bytes
                                20       0           0 Bytes
                                30       1083        82.80 KB
    acl-default-whitelist-ipv6  10       0           0 Bytes
                                20       0           0 Bytes
                                30       0           0 Bytes

REST API

GET https://<ip>/nvue_v1/system/control-plane/

Related Commands

nv show system control-plane acl

nv show system control-plane acl id


nv show system control-plane acl <acl-id>

Show the configuration of the specified system control-plane ACL.

Syntax Description

acl-id

ACL ID

History

25.02.70xx

Example

admin@nvos:~$ nv show system control-plane acl acl-default-whitelist-ipv6
Statistics
===============
Rule  In Packet  In Byte  Out Packet  Out Byte  Action  Match
----  ---------  -------  ----------  --------  ------  ----------------------------
10    0          0 Bytes                        permit  ip
                                                           udp
                                                             dest-port       : 161
                                                           connection-state
                                                             new             : False
                                                             established     : False
                                                           protocol          : udp
20    0          0 Bytes                        permit  ip

REST API

GET https://<ip>/nvue_v1/system/control-plane/acl/{acl-id}

Related Commands

nv set system control-plane acl
nv show system control-plane acl

nv show system control-plane acl statistics


nv show system control-plane acl <acl-id> statistics

Show the statistics of the specified system control-plane ACL.

Syntax Description

acl-id

ACL ID

History

25.02.70xx

Example

admin@nvos:~$ nv show system control-plane acl acl-default-whitelist-ipv6 statistics
Rule  In Packet  In Byte  Out Packet  Out Byte  Action  Match
----  ---------  -------  ----------  --------  ------  ----------------------------
10    0          0 Bytes                        permit  ip
                                                           udp
                                                             dest-port       : 161
                                                           connection-state
                                                             new             : False
                                                             established     : False
                                                           protocol          : udp

REST API

GET https://<ip>/nvue_v1/system/control-plane/acl/{acl-id}/statistics

nv show system control-plane acl id statistics


nv show system control-plane acl <acl-id> statistics <rule-id>

Show the statistics of the specified rule of the specified system control-plane ACL.

Syntax Description

acl-id

ACL ID

rule-id

Rule number (integer: 1–65535)

History

25.02.70xx

Example

admin@nvos:~$ nv show system control-plane acl acl-default-whitelist statistics 10
                        operational  applied
----------------------  -----------  -------
match
  ip
    protocol            udp
    udp
      [dest-port]       161
    [connection-state]  new
    [connection-state]  established
action                  permit
inbound
  packet                0
  byte                  0 Bytes

REST API

GET https://<ip>/nvue_v1/system/control-plane/acl/{acl-id}/statistics/{rule-id}

nv show system control-plane acl inbound


nv show system control-plane acl <acl-id> inbound

Show the inbound direction details of the specified system control-plane ACL.

Syntax Description

acl-id

ACL ID

History

25.02.70xx

Example

admin@nvos:~$ nv show system control-plane acl acl-default-whitelist-ipv6 inbound
Statistics
===============
Rule  In Packet  In Byte  Action  Match
----  ---------  -------  ------  ----------------------------
10    0          0 Bytes  permit  ip
                                    udp
                                      dest-port       : 161
                                    connection-state
                                      new             : False
                                      established     : False
                                    protocol          : udp

REST API

GET https://<ip>/nvue_v1/system/control-plane/acl/{acl-id}/inbound

Notes

If an ACL is configured in one direction but not the other, it appears in the output of the parent show command (nv show system control-plane acl <acl-id>) but not in the output of the show command for the direction in which it is not configured.

nv show system control-plane acl outbound


nv show system control-plane acl <acl-id> outbound

Show the outbound direction details of the specified system control-plane ACL.

Syntax Description

N/A

History

25.02.70xx

Example

admin@nvos:~$ nv show system control-plane acl acl-default-outbound outbound
Statistics
===============
Rule  Out Packet  Out Byte      Action  Match
----  ----------  ------------  ------  ----------------------------
10    33          1716 Bytes    deny    ip
                                          connection-state
                                            invalid         : False
20    3876        237065 Bytes  permit

REST API

GET https://<ip>/nvue_v1/system/control-plane/acl/{acl-id}/outbound

Notes

If an ACL is configured in one direction but not the other, it appears in the output of the parent show command (nv show system control-plane acl <acl-id>) but not in the output of the show command for the direction in which it is not configured.

nv set/unset acl rule action recent


nv set acl <acl-id> rule <rule-id> action recent
nv unset acl <acl-id> rule <rule-id> action recent

Set the ACL rule action to recent.
The unset form of the command removes the recent action from the ACL rule.

Syntax Description

acl-id

ACL ID

rule-id

Rule number (integer: 1–65535)

History

25.02.70xx

Example

admin@nvos:~$ nv set acl acl_2 rule 1 action recent

REST API

GET https://<ip>/nvue_v1/acl/{acl-id}/rule/{rule-id}/action/recent

Notes

You can specify only one action per rule. The system accepts any packet that matches the rule. If a rule has no action, the default action is "permit". If match.ip.recent-list.action is set, the default action is "recent". You can also set the action to "recent" explicitly when match.ip.recent-list is configured.

Last updated: