YaST2 Developers Documentation: Firewall configuration

Firewall configuration

modules/SuSEFirewallCMDLine.ycp
Command Line for YaST2 Firewall (Only for Firewall)
  • Lukas Ocilka

This module has an unstable interface.

This module is for internal use only.

Copyright 2004, Novell, Inc. All rights reserved.

Imports

  • CommandLine
  • Mode
  • Report
  • String
  • SuSEFirewall
  • SuSEFirewallServices
  • SuSEFirewallUI

Includes

  • firewall/generalfunctions.ycp
  • firewall/summary.ycp

Global Functions

Local Functions

local CommaSeparatedList (any comma_separated_string) -> list <string>

Returns list of strings made from the comma-separated string got as param.

Parameters:
comma_separated_string
Return value:
items
local CheckZone (string zone, boolean optional) -> boolean

Function checks zone string for existency

Parameters:
zone
optional
Return value:
if zone exists or not set if optional
local ListFirewallZones () -> void

Function prints table of known firewall zones

local FWCMDZones (map options) -> boolean

Calls ListFirewallZones

Parameters:
options
Return value:
always false
local FWCMDSummary (map options) -> boolean

Prints firewall summary for zones

Parameters:
options
Return value:
always false
local FWCMDStartup (map options) -> boolean

Sets startup details

Parameters:
options
Return value:
always true
local FWCMDInterfaces (map options) -> boolean

Sets network interface assignment

Parameters:
options
Return value:
whether write call is needed
local FWCMDLogging (map options) -> boolean

Sets logging details

Parameters:
options
Return value:
whether write is needed
local FWCMDBroadcast (map options) -> boolean

Sets broadcast

Parameters:
options
Return value:
if write is needed
local FWCMDServicesList () -> void

Prints all known firewall services

local FWCMDServicesShow (list <string> for_zones, boolean detailed) -> void

Prints currently allowed services

Parameters:
for_zones
detailed
local FWCMDServicesDefinedServicesManagement (string action, string zone, list <string> services) -> void

Adds/removes services to/from zone.

Parameters:
action
zone
services
local FWCMDServicesAdditionalPortsManagement (string action, string zone, list <string> ports_or_protocols, string type) -> void

Adds/removes ports to/from zone.

Parameters:
action
zone
ports_or_protocols
type
local FWCMDServicesProtect (string zone, string protect) -> void

Sets protect-from value

Parameters:
zone
protect
local FWCMDServices (map options) -> boolean

Overall handler function for services

Parameters:
options
Return value:
whether write call is needed
local FWCMDMasqRedirectShow (map options) -> void

Prints the table of the current redirect-to-masquerade rules

Parameters:
options
local FWCMDMasqRedirect (map options) -> boolean

Overall handler for redirect to masqueraded network

Parameters:
options
Return value:
whether write call is needed
local FWCMDMasquerade (map options) -> boolean

Overall masquerade-related handler

Parameters:
options
Return value:
whether write call is needed
global Run () -> void

Runs the commandline interface for firewall