NftRule
Description
This object was introduced in InCore 2.1.
- › Inherits:
Overview
Properties
Methods
Signals
Enumerations
Properties
connectionStates
- › Type:
- › Default:
- › Signal:
connectionStatesChanged()
- › Attributes:
Writable
destinationAddress
- › Type:
String
- › Signal:
destinationAddressChanged()
- › Attributes:
Writable
destinationPorts
This property holds the destination ports to apply this rule to. See the sourcePorts property for details on syntax and possible values.
- › Type:
Variant
- › Signal:
destinationPortsChanged()
- › Attributes:
Writable
enabled
This property holds whether the rule is enabled, i.e. it should be included in the corresponding chain.
- › Type:
Boolean
- › Default:
true- › Signal:
enabledChanged()
- › Attributes:
Writable
inputInterface
- › Type:
String
- › Signal:
inputInterfaceChanged()
- › Attributes:
Writable
nonTerminalStatements
- › Type:
- › Signal:
nonTerminalStatementsChanged()
- › Attributes:
Readonly
outputInterface
- › Type:
String
- › Signal:
outputInterfaceChanged()
- › Attributes:
Writable
protocol
- › Type:
- › Default:
- › Signal:
protocolChanged()
- › Attributes:
Writable
sourceAddress
- › Type:
String
- › Signal:
sourceAddressChanged()
- › Attributes:
Writable
sourcePorts
This property holds the source ports to apply this rule to. Syntax and possible values:
80– only port 80"!= 33-45"– all ports but 33-45[ 80, 443 ]- ports 80 and 443
- › Type:
Variant
- › Signal:
sourcePortsChanged()
- › Attributes:
Writable
statement
- › Type:
- › Signal:
statementChanged()
- › Attributes:
Readonly
Signals
nonTerminalStatementsDataChanged(SignedInteger index)
This signal is emitted whenever the List.dataChanged() signal is emitted, i.e. the item at index in the nonTerminalStatements list itself emitted the dataChanged() signal.
Enumerations
ConnectionStates
Name |
Value |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Protocol
Name |
Value |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Statement
Name |
Value |
Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
See NftFirewall example on how to use NftRule.