YaST2 Developers Documentation: Firewall Services, Ports Aliases.



functions
files
intro

Firewall Services, Ports Aliases.

modules/SuSEFirewallServices.ycp
Definition of Supported Firewall Services and Port Aliases.
Global Definition of Firewall Services Defined using TCP, UDP and RPC ports and IP protocols and Broadcast UDP ports. Results are cached, so repeating requests are answered faster.

Global Functions

Info:

Format of SERVICES

"service-id" : $[ "name" : _("Service Name"), "tcp_ports" : list , "udp_ports" : list , "rpc_ports" : list , "ip_protocols" : list , "broadcast_ports" : list , ],

global IsKnownService (string service_id) -> boolean

Function returns if the service_id is a known (defined) service

Parameters:
service_id
Return value:
if is known (defined)

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

Function returns the map of supported (known) services.

Return value:
[service_id, service_name]

global GetNeededTCPPorts (string service) -> list <string>

Function returns needed TCP ports for service

Parameters:
service
Return value:
[string] of needed TCP ports

global GetNeededUDPPorts (string service) -> list <string>

Function returns needed UDP ports for service

Parameters:
service
Return value:
[string] of needed UDP ports

global GetNeededRPCPorts (string service) -> list <string>

Function returns needed RPC ports for service

Parameters:
service
Return value:
[string] of needed RPC ports

global GetNeededIPProtocols (string service) -> list <string>

Function returns needed IP protocols for service

Parameters:
service
Return value:
[string] of needed IP protocols

global GetNeededBroadcastPorts (string service) -> list <string>

Function returns needed ports allowing broadcast

Parameters:
service
Return value:
[string] of needed broadcast ports

global GetNeededPortsAndProtocols (string service) -> map <string, list <string> >

Function returns needed ports and protocols for service. Function cares about if the service is defined or not.

Parameters:
service
Return value:
[list, string] of needs

global GetPossiblyConflictServices () -> list <string>

Function returns list of possibly conflicting services. Conflicting services are for instance nis-client and nis-server.

Return value:
[string] of conflicting services

YaST2 Developers Documentation