LMI_FirewalldDirectConfiguration

Class reference

Subclass of CIM_SettingData

Direct configuration gives more direct access to the firewall. It allows to directly specify ip(6)tables rule. Direct configuration should be used only as a last resort when it’s not possible to use LMI_FirwalldZone configuration.

Key properties

Local properties

None

Local methods

uint16 AddDirectChain (uint8 IPFamily, string Table, string Chain, LMI_FirewalldDirectChain DirectChain)

Add new Firewalld Chain into the direct configuration.

Parameters

IN uint8 IPFamily

The IP family where the chain will be created.

ValueMap Values
1 IPv4
2 IPv6
IN string Table
The table name where the chain will be created. This can be one of the tables that can be used for iptables or ip6tables. For the possible values, please have a look at the TABLES section in the iptables man pages: For IPv4 in iptables(8), for IPv6 in ip6tables(8).
IN string Chain
The name of the chain, that will be created. Please make sure that there is no other chain with this name already.
OUT LMI_FirewalldDirectChain DirectChain
Newly created LMI_FirewalldDirectChain instance.

uint16 AddDirectRule (uint8 IPFamily, string Table, string Chain, uint32 Priority, string Rule, LMI_FirewalldDirectRule DirectRule)

Add new Firewalld Direct Rule into the direct configuration.

Parameters

IN uint8 IPFamily

The IP family where the direct rule will be created.

ValueMap Values
1 IPv4
2 IPv6
IN string Table
The table name where the rule will be added. This can be one of the tables that can be used for iptables or ip6tables. For the possible values, please have a look at the TABLES section in the iptables man pages: For IPv4 in iptables(8), for IPv6 in ip6tables(8).
IN string Chain
The name of the chain where the rule will be added. This can be either a built-in chain or a chain that has been created with the chain rule. If the chain name is a built-in chain, then the rule will be added to chain_direct,else the supplied chain name is used. chain_direct is created internally for all built-in chains to make sure that the added rules do not conflict with the rules created by firewalld.
IN uint32 Priority
The priority is used to order rules. Priority 0 means add rule on top of the chain, with a higher priority the rule will be added further down. Rules with the same priority are on the same level and the order of these rules is not fixed and may change. If you want to make sure that a rule will be added after another one, use a low priority for the first and a higher for the following.
IN string Rule
The Rule can be any arguments of iptables or ip6tables, that do not conflict with the table or chain attributes.
OUT LMI_FirewalldDirectRule DirectRule
Newly created LMI_FirewalldDirectRule instance.

uint16 AddDirectPassthough (uint8 IPFamily, string Rule, LMI_FirewalldDirectPassthrough Passthrough)

Add new Firewalld Passthrough Rule.

Parameters

IN uint8 IPFamily

The IP family where the passthrough rule will be created.

ValueMap Values
1 IPv4
2 IPv6
IN string Rule
The Rule can be any arguments of iptables or ip6tables.

OUT LMI_FirewalldDirectPassthrough Passthrough

Inherited properties

string InstanceID
uint64 Generation
string Caption

Inherited methods

None