YaST2 Developers Documentation: Configuration YaST2 Firewall

Configuration YaST2 Firewall

include/firewall/dialogs.ycp
Configuration screens

This module has an unstable interface.

Configuration dialogs divided into smaller logic groups. Both Expert and Simple.

Imports

  • Label
  • ProductFeatures
  • SuSEFirewall
  • SuSEFirewallServices

Local Functions

local IsThisExpertConfiguration () -> boolean

Function returns if this UI is an Expert UI.

Return value:
if is expert or not
local AdditionalSettingsForZones (map <string, map <string, string> > zones_additons) -> term

Function returns dialog for additional zone strings (like 'any', 'auto'...)

Parameters:
zones_additons
Info:

Expert configuration only

term MasqueradeNetworks () { term dialog = `Frame ( // TRANSLATORS: frame label _("Allowed Network Masquerading"), `VBox ( `Table ( `header ( // TRANSLATORS: table header item _("Local Network"), // TRANSLATORS: table header item _("Destination Network"), // TRANSLATORS: table header item _("Protocol"), // TRANSLATORS: table header item _("Port") ), [] ), `VSquash ( `HBox ( `PushButton(`id("add_masquerade_network"), Label::AddButton()), `PushButton(`id("remove_masquerade_network"), Label::RemoveButton()) ) ) ) );

return dialog; }

Info:

Only for Expert configuration

term TransparentLocalRedirection () { term dialog = `Frame ( _("Transparent Local Redirection"), `VBox ( `Left( `Label (_("Attention: Packets are transparently redirected to '127.0.0.1'."))), `Table ( `header ( _("Source Network"), _("Destination Network"), _("Protocol"), _("Requested Port"), "", _("Local Port") ), // FIXME: fake items [ `item(`id("1"), "10.0.0.0/24", "0/0", "tcp", "http", UI::Glyph(`BulletArrowRight), "3128"), `item(`id("2"), "10.0.0.0/24", "0/0", "tcp", "smtp", UI::Glyph(`BulletArrowRight), "smtp"), ] ), `VSquash ( `HBox ( `PushButton(`id("add_transparent_redirection"), Label::AddButton()), `PushButton(`id("remove_transparent_redirection"), Label::RemoveButton()) ) ) ) );

Info:

Only for Expert configuration

term ForwardNetworks () { term dialog = `Frame ( _("Forwarding Networks"), `VBox ( `Left( `Label(_("Atention: These networks are forwarder without any firewall filtering."))), `Table ( `header ( _("Source Network"), _("Destination Network"), _("Protocol"), _("Port"), _("Flags") ), // FIXME: fake items [ `item(`id("1"), "0/0", "147.42.95.2", "tcp", "http", ""), `item(`id("1"), "0/0", "147.42.95.2", "tcp", "smtp", "") ] ), `VSquash ( `HBox ( `PushButton(`id("add_forward_network"), Label::AddButton()), `PushButton(`id("remove_forward_network"), Label::RemoveButton()) ) ) ) );

Info:

Only for Expert configuration

term RoutingInZones () { term dialog = `Frame ( _("Routing In Zones"), `Left ( // Allow Same-Class Routing `CheckBox (`id("same_class_routing"), _("Allow Routing Between Interfaces in The Same Zone") ) ) );

local BroadcastConfigurationSimple () -> term

Only for Expert configuration

term BroadcastConfigurationExpert () { term dialog = `Frame ( _("Broadcast Configuration"), `VBox ( `RadioButtonGroup (`id("broadcast_configuration"), `VBox ( `Left ( `RadioButton (`id("drop_incoming"), _("Drop Incoming Broadcast")) ), `Left( `RadioButton (`id("allow_incoming"), _("Allow Incoming Broadcast")) ) ) ), `HBox ( `HWeight( 4, `Empty() ), `HWeight( 50, `MultiSelectionBox (`id("accept_broadcast_packets"), _("Firewall Zones Allowing Broadcast Packets"), GetZonesListedItems() ) ) ), `Left ( `CheckBox (`id("dropped_packets"), _("Log Not Accepted Broadcast Packets")) ) ) );

Info:

Only for Expert configuration

term HierarchicalTokenBucket () { term dialog = `Frame ( _("Hierarchical Token Bucket"), `VBox ( `Left ( `Label (_("Adjust upstream limit for selected interface")) ), `HBox ( `HWeight ( 3, `ComboBox (`id("htb_interface"), _("Interface"), [ // FIXME: fake items `item(`id(1), "RTL-8139 / eth-aa-bb-cc-dd-ee"), `item(`id(1), "Askey 815C / modem0") ]) ), `HWeight ( 1, `TextEntry (`id("htb_unit"), `opt(`hsquash), _("kbit/sec.")) ) ) ) );

Info:

Only for Expert configuration

term IPv6Support () { term dialog = `Frame ( _("IPv6 Support"), `VBox ( `Label ("H I C S U N T L E O N E S") ) );

Info:

Only for Expert configuration

term AddCustomFirewallRule () { term dialog = `Frame ( _("Add New Allowing Rule"), `VBox ( `HBox ( `TextEntry(`id("add_source_network"), _("Source Network")), `HSquash ( `ComboBox (`id("add_protocol"), _("Protocol"), [ `item( `id("tcp"), "tcp"), `item( `id("udp"), "udp"), `item( `id("icmp"), "icmp"), ]) ), `HSquash ( `TextEntry (`id("add_destination_port"), _("Port")) ) ), `VSpacing(1), `HBox ( `PushButton(`id("ok"), Label::AddButton()), `PushButton(`id("cancel"), Label::CancelButton()) ) ) );

Info:

Only for Expert configuration

term ProposeConfiguration () { term dialog = `Frame ( _("Simple Configuration Proposal"), `Left ( `PushButton(`id("propose_box_configuration"), _("Propose Configuration")) ) );