Configuration YaST2 Firewall |
firewall/uifunctions.ycp |
Configuration dialogs handling functions | |
|
|
This module has an unstable interface. |
Checks the network entry which can be defined in several formats.
- Parameters:
-
network
- Example
-
CheckNetwork ("192.168.0.1") -> true CheckNetwork ("192.168.0.0/20") -> true CheckNetwork ("192.168.0.0/255.255.255.0") -> true CheckNetwork ("0/0") -> true
Sets the dialog icon.
Function disables the back button. Fake function for CWM Tree Widget.
- Parameters:
-
key
Function saves configuration and restarts firewall
Function starts Firewall services and sets firewall to be started after exiting YaST
Function stops Firewall services and sets firewall to be stopped after exiting YaST
Function sets appropriate states for [Change] and [Custom] buttons
- Parameters:
-
current_item
Function redraws Interfaces Table
Function initializes Interfaces table and known_device_names
- Parameters:
-
key
Function handles popup dialog witch setting Interface into Zone
- Parameters:
-
interface
Function handles popup with additional settings in zones
Function handles whole firewall-interfaces dialg
- Parameters:
-
key event
Reports that the port definition is wrong. Either a single port or a port range. Returns whether user accepts the wrong port definition despite this warning.
- Parameters:
-
port_nr port_definition
- Return value:
-
whether user accepts the port definition despite the warning.
- Example
-
// maximum port number is 65535, port range boolean accepted = ReportWrongPortDefinition(99999, "5:99999"); // dtto., single port boolean whattodo = ReportWrongPortDefinition(78910, "78910");
Function checks list of ports if they exist (are known).
- Parameters:
-
ui_id ports
Checks the string (services definition) for syntax errors
- Parameters:
-
services_definition
- Return value:
-
whether everything was ok or whether user wants is despite the error
Function sets UI for Masquerade Table (and buttons) enabled or disabled
- Parameters:
-
usable
Function returns if masquerading is possible. Masquerading needs at least two interfaces in two different firewall zones. One of them has to be External.
- Return value:
-
if possible.
Function checks port number got as parameter. If check fails SetFocus is called and an empty string is returned.
- Parameters:
-
port_to_be_checked widget_id