ACC SHELL

Path : /proc/self/root/usr/share/doc/packages/yast2-firewall/autodocs/
File Upload :
Current File : //proc/self/root/usr/share/doc/packages/yast2-firewall/autodocs/subdialogs.html

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html>
 <head>
  <title>
Configuration YaST2 Firewall</title>
  <style type="text/css">body { background-color: #c8c8c8 }
h1 { color: #e00000 }
table { width: 100%/ border: none }
img { border: 0px }
.sigbox { background-color: #ffc080; border: solid thin #f96500 }
.sig { font: larger monospace }
.padtbl { background-color: #ffc080; padding: 10px; margin: 10px }
/* arrow */
.a { color: #606060 }
/* type, parameter */
.t, .p { color: #c05000 }
.pbox { width: 20% }
.descbox { }
.right { align: right }
.header {}
.footer { clear: both}
.menu { width: 10%; float: left }
.main { width: 90%; float: left }
</style>
 </head>
 <body>
  <div class="header">
   <i>YaST2 Developers Documentation:</i>
   <a href="index.html">
    <b>
Configuration YaST2 Firewall</b>
   </a>
   <img class="right" alt="" src="/usr/share/doc/packages/yast2-devtools/images/yast2-mini.png" />
   <hr />
  </div>
  <div class="menu">
   <img alt="YaST" src="/usr/share/doc/packages/yast2-devtools/images/yast2-half.png" />
   <br />
   <br />
   <a href="index.html">functions</a>
   <br />
   <a href="files.html">files</a>
   <br />
   <a href="intro.html">intro</a>
  </div>
  <div class="main">
   <div class="sigbox">
    <table class="padtbl">
     <tr>
      <td>
       <h1>
Configuration YaST2 Firewall</h1>
      </td>
      <td class="filecell">include/firewall/dialogs.ycp</td>
     </tr>
     <tr>
      <td>Configuration screens</td>
     </tr>
     <tr>
      <td>
       <ul>
        <li>Lukas Ocilka <locilka@suse.cz></li>
       </ul>
      </td>
     </tr>
     <tr>
      <td>
       <p>This module has an unstable interface.</p>
      </td>
     </tr>
    </table>
    <table class="padtbl">
     <tr>
      <td>

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

       <h1>Imports</h1>
       <ul>
        <li>Label</li>
        <li>ProductFeatures</li>
        <li>SuSEFirewall</li>
        <li>SuSEFirewallServices</li>
       </ul>
       <h1>Local Functions</h1>
       <ul>
        <li>
         <a href="#AdditionalSettingsForZones">AdditionalSettingsForZones (map &lt;string, map &lt;string, string&gt; &gt; zones_additons)</a>
        </li>
        <li>
         <a href="#BroadcastConfigurationSimple">BroadcastConfigurationSimple ()</a>
        </li>
        <li>
         <a href="#CustomFirewallRules">CustomFirewallRules ()</a>
        </li>
        <li>
         <a href="#IsThisExpertConfiguration">IsThisExpertConfiguration ()</a>
        </li>
       </ul>
      </td>
     </tr>
    </table>
   </div>
   <p />
   <div class="sigbox">
    <span class="sig" id="IsThisExpertConfiguration">local
     <b>IsThisExpertConfiguration ()
      <span class="a"> -&gt; </span>
      <span class="t">boolean</span>
     </b>
    </span>
   </div>
   <p>
 Function returns if this UI is an Expert UI.</p>
   <dl>
    <dt>
     <b>Return value:</b>
    </dt>
    <dd>
     <table>
      <tr>
       <td class="pbox">
        <span class="t" />
       </td>
       <td class="descbox">if is expert or not</td>
      </tr>
     </table>
    </dd>
   </dl>
   <div class="sigbox">
    <span class="sig" id="AdditionalSettingsForZones">local
     <b>AdditionalSettingsForZones (map &lt;string, map &lt;string, string&gt; &gt; zones_additons)
      <span class="a"> -&gt; </span>
      <span class="t">term</span>
     </b>
    </span>
   </div>
   <p>
 Function returns dialog for additional zone strings (like 'any', 'auto'...)</p>
   <dl>
    <dt>
     <b>Parameters:</b>
    </dt>
    <dd>
     <table>
      <tr>
       <td class="pbox">
        <span class="p">zones_additons</span>
       </td>
       <td class="descbox"></td>
      </tr>
     </table>
    </dd>
   </dl>
   <div class="sigbox">Info:</div>
   <p>
 Expert configuration only</p>
   <p>
    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::DeleteButton())
		    )
		)
	    )
	);</p>
   <p>
	return dialog;
    }</p>
   <div class="sigbox">Info:</div>
   <p>
 Only for Expert configuration</p>
   <p>
    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::DeleteButton())
		    )
		)
	    )
	);</p>
   <div class="sigbox">Info:</div>
   <p>
 Only for Expert configuration</p>
   <p>
    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::DeleteButton())
		    )
		)
	    )
	);</p>
   <div class="sigbox">Info:</div>
   <p>
 Only for Expert configuration</p>
   <p>
    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")
		)
	    )
	);</p>
   <div class="sigbox">
    <span class="sig" id="BroadcastConfigurationSimple">local
     <b>BroadcastConfigurationSimple ()
      <span class="a"> -&gt; </span>
      <span class="t">term</span>
     </b>
    </span>
   </div>
   <p>
 Only for Expert configuration</p>
   <p>
    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"))
		)
	    )
	);</p>
   <div class="sigbox">Info:</div>
   <p>
 Only for Expert configuration</p>
   <p>
    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,
			`InputField (`id("htb_unit"), `opt(`hsquash), _("kbit/sec."))
		    )
		)
	    )
	);</p>
   <div class="sigbox">
    <span class="sig" id="CustomFirewallRules">local
     <b>CustomFirewallRules ()
      <span class="a"> -&gt; </span>
      <span class="t">term</span>
     </b>
    </span>
   </div>
   <p>
 Only for Expert configuration</p>
   <p>
    term IPv6Support () {
	term dialog = `Frame (
	    _("IPv6 Support"),
	    `VBox (
		`Label ("H I C   S U N T   L E O N E S")
	    )
	);</p>
   <div class="sigbox">Info:</div>
   <p>
 Only for Expert configuration</p>
   <p>
    term ProposeConfiguration () {
	term dialog = `Frame (
	    _("Simple Configuration Proposal"),
	    `Left ( `PushButton(`id("propose_box_configuration"), _("Propose Configuration")) )
	);</p>
  </div>
  <div class="footer">
   <hr />
   <i>YaST2 Developers Documentation</i>
   <img class="right" alt="" src="/usr/share/doc/packages/yast2-devtools/images/yast2-mini.png" />
  </div>
 </body>
</html>

ACC SHELL 2018