YaST2 Developers Documentation: SuSEFirewall configuration

SuSEFirewall configuration

modules/SuSEFirewallProposal.ycp
Functional interface for SuSEFirewall installation proposal

This module has an unstable interface.

This module provides a functional API for Installation proposal of SuSEfirewall2

Imports

  • Linuxrc
  • Package
  • ProductFeatures
  • SuSEFirewall

Structures

Global Functions

Local Functions

local AddWarning (string warning) -> void

Local function adds another warning string into warnings for user

Parameters:
warning
local ClearWarnings () -> void

Local function clears all warnings for user from memory

local GetWarnings () -> list <string>

Function returns list of warnings for user

Return value:
[string] of warnings
local SetKnownInterfaces (list <string> interfaces) -> void

Local function sets currently known interfaces.

Parameters:
interfaces
local GetKnownInterfaces () -> list <string>

Local function returns list [string] of known interfaces. They must have been set using SetKnownInterfaces(list [string] interfaces) function.

Return value:
of known interfaces
local IsDialUpInterface (string interface) -> boolean

Function returns if interface is a dial-up type.

Parameters:
interface
Return value:
if is dial-up interface
local SetInterfacesToZone (list <string> interfaces, string zone) -> void

Local function adds list of interfaces into zone.

Parameters:
interfaces
zone
local UpdateProposal () -> void

Local function for updating user-changed proposal.

global OpenServiceOnNonDialUpInterfaces (string service) -> void

Function opens up the service on all non-dial-up network interfaces

Parameters:
service
local IsXenInstalled () -> boolean

Local function returns whether the Xen kernel is installed

local ProposeFunctions () -> void

Local function for proposing firewall configuration.

global SetChangedByUser (boolean changed) -> void

Function sets that proposal was changed by user

Parameters:
changed
global GetChangedByUser () -> boolean

Local function returns if proposal was changed by user

Return value:
if proposal was changed by user
global SetProposalInitialized (boolean initialized) -> void

Function sets that proposal was initialized

Parameters:
initialized
global GetProposalInitialized () -> boolean

Local function returns if proposal was initialized already

Return value:
if proposal was initialized
global Reset () -> void

Function fills up default configuration into internal values

global Propose () -> void

Function proposes the SuSEfirewall2 configuration

global ProposalSummary () -> map<string, string>

Function returns the proposal summary

Structure map $[

	"output" : "HTML Proposal Summary",
	"warning" : "HTML Warning Summary",
 ]
Return value:
proposal