YaST2 Developers Documentation: Network configuration



functions
files
intro

Network configuration

modules/Firewall.ycp
Firewall data
Uses SuSEfirewall2.rpm. Only operates on .sysconfig.personal-firewall.REJECT_ALL_INCOMING_CONNECTIONS. See also the standalone module yast2-firewall.rpm, SuSEFirewall2.ycp to which we eventually should migrate.

Imports

  • Service

Includes

  • network/routines.ycp
  • network/runtime.ycp

Global Functions

Local Variables

Local Functions

local devices -> list<string>

Firewalled devices

global Read () -> boolean

Read firewall settings

Return value:
true if success

global Write () -> boolean

Write firewall settings and apply changes

Return value:
true if success

global Import (list<string> settings) -> boolean

Get all the firewall configuration from a map. When called by *_auto (preparing autoinstallation data) the list may be empty.

Parameters:
settings autoinstallation settings
Return value:
true if success

global Export () -> list

Dump the firewall settings to a list, for autoinstallation use.

Return value:
autoinstallation settings

local device2fw (string device) -> string

Convert real device to the firewall device specification The firewall was one of the first to feel the pain of changing interface names so it uses "modem" for pppX.

Parameters:
device real device
Return value:
firewall device

global Change (string device, boolean fw) -> boolean

Update firewall information about device

Parameters:
device given device
fw true for firewalled device
Return value:
true if sucess

global Query (string device) -> boolean

Check if the device is firewalled

Parameters:
device given device
Return value:
true if firewalled

YaST2 Developers Documentation