summaryrefslogtreecommitdiffstats
path: root/firewall_wizard
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-07-26 12:18:40 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-07-26 12:18:40 +0000
commit2b0ceb8ee52cebbe77d2b3a67f93cc60f4e0c007 (patch)
tree942e73fa15f38452091288446100b4ba5fc8e514 /firewall_wizard
parent339c34215d9c46f6ebd1bbf524e73af341214610 (diff)
downloaddrakwizard-2b0ceb8ee52cebbe77d2b3a67f93cc60f4e0c007.tar
drakwizard-2b0ceb8ee52cebbe77d2b3a67f93cc60f4e0c007.tar.gz
drakwizard-2b0ceb8ee52cebbe77d2b3a67f93cc60f4e0c007.tar.bz2
drakwizard-2b0ceb8ee52cebbe77d2b3a67f93cc60f4e0c007.tar.xz
drakwizard-2b0ceb8ee52cebbe77d2b3a67f93cc60f4e0c007.zip
xml wizard
Diffstat (limited to 'firewall_wizard')
-rw-r--r--firewall_wizard/firewall.wiz723
1 files changed, 723 insertions, 0 deletions
diff --git a/firewall_wizard/firewall.wiz b/firewall_wizard/firewall.wiz
new file mode 100644
index 00000000..a6dc994d
--- /dev/null
+++ b/firewall_wizard/firewall.wiz
@@ -0,0 +1,723 @@
+<?xml version="1.0"?>
+
+
+<Wizard
+ name="general"
+ libScript="__WIZ_HOME__/common/scripts/functions.sh"
+ wizardTitle="wizdrake: Firewall wizard"
+ imagePosition="top"
+ defaultImage="images/firewall.jpg"
+ height="400"
+ width="525"
+ hasDb="true"
+ dbPositions="2"
+ dbFilename="/var/log/wizards/firewall.wdb"
+ referenceLength="425"
+ referenceHeight="13"
+ perlModule="__WIZ_HOME__/firewall_wizard/scripts/FWconf.pm"
+>
+
+ <Variable
+ name="protectionLevel"
+ comment="The firewall protection level"
+ shellVariable="wiz_firewall_level"
+ defaultValue="1"
+ persistent="true"
+ dbPosition="0"
+ key="false"
+ >
+ </Variable>
+
+ <Variable
+ name="firewallDevice"
+ comment="The device for the firewall connection"
+ shellVariable="wiz_ext_device"
+ defaultValue="eth0"
+ persistent="true"
+ dbPosition="1"
+ key="false"
+ >
+ </Variable>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="Welcome"
+ jumpScript="__WIZ_HOME__/common/scripts/check.sh root wiz_ip_net"
+ executionLevel="NORMAL"
+ nextFinish="false"
+ canBack="true"
+ canCancel="true"
+ >
+
+ <Target
+ targetName="error_need_root"
+ jumpIndex="1"
+ >
+ </Target>
+
+ <Target
+ targetName="error_need_net"
+ jumpIndex="2"
+ >
+ </Target>
+
+ <Target
+ targetName="ask_level"
+ jumpIndex="0"
+ >
+ </Target>
+
+ <Info
+ name="welcomeTitle"
+ alignement="Center"
+ helpText="Firewall Configuration Wizard"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+
+ <Info
+ name="info7"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info1"
+ alignement="Center"
+ helpText="The firewall protects your internal network from"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info2"
+ alignement="Center"
+ helpText="unauthorized accesses from the Internet."
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info3"
+ alignement="Center"
+ helpText="This wizard will help you configuring your server firewall."
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="def_level"
+ executionLevel="DEBUG"
+ nextFinish="false"
+ canBack="true"
+ canCancel="true"
+ >
+
+ <Freetext
+ name="freetext2"
+ variableName="protectionLevel"
+ alignement="Center"
+ fillScript="get_var wiz_firewall_level"
+ guiType="textfield"
+ editable="true"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="11"
+ proportional="2"
+ ratio="30"
+ length="40"
+ >
+ </Freetext>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="ask_level"
+ executionLevel="NORMAL"
+ nextFinish="false"
+ canBack="true"
+ canCancel="true"
+ >
+
+ <Info
+ name="hostnameTitile"
+ alignement="Center"
+ helpText="Protection Level"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+
+ <Info
+ name="info8"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info9"
+ alignement="East"
+ helpText="The firewall can be configured to offer different levels of protection;"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info5"
+ alignement="East"
+ helpText="choose the level that corresponds to your needs. If you don't know,"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info10"
+ alignement="East"
+ helpText="the Medium level is usually the most appropriate."
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info4"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Chooser
+ name="chooser1"
+ variableName="protectionLevel"
+ alignement="Center"
+ defaultOptionScript="echo $wiz_firewall_level"
+ helpFontName="Default"
+ helpFontStyle="plain"
+ helpFontSize="12"
+ editable="false"
+ guiType="checkbox"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="11"
+ proportional="2"
+ ratio="30"
+ >
+
+ <Option
+ value="0"
+ description="None - No protection"
+ >
+ </Option>
+
+ <Option
+ value="1"
+ description="Low - Light filtering, standard services available"
+ >
+ </Option>
+
+ <Option
+ value="2"
+ description="Medium - web, ftp and ssh shown to outside"
+ >
+ </Option>
+
+ <Option
+ value="3"
+ description="Strong - no outside visibility, users limited to web"
+ >
+ </Option>
+ </Chooser>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="choose_net_device"
+ jumpScript="__WIZ_HOME__/firewall_wizard/scripts/check_ext_device.sh"
+ executionLevel="NORMAL"
+ nextFinish="false"
+ canBack="true"
+ canCancel="true"
+ >
+
+ <Target
+ targetName="doit"
+ jumpIndex="10"
+ >
+ </Target>
+
+ <Target
+ targetName="error_in_device"
+ jumpIndex="1"
+ >
+ </Target>
+
+ <Info
+ name="deviceLabel"
+ alignement="Center"
+ helpText="Firewall Network Device"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+
+ <Info
+ name="info"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info11"
+ alignement="East"
+ helpText="The firewall need to know how your server is connected to Internet;"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info13"
+ alignement="East"
+ helpText="choose the device you are using for the external connection."
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info12"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Chooser
+ name="deviceChooser"
+ variableName="firewallDevice"
+ alignement="Fill"
+ defaultOptionScript="__WIZ_HOME__/firewall_wizard/scripts/compute_ext_device.sh"
+ fillScript="__WIZ_HOME__/firewall_wizard/scripts/liste_ext_device.sh"
+ helpText="Device"
+ helpFontName="Default"
+ helpFontStyle="plain"
+ helpFontSize="12"
+ editable="true"
+ guiType="list"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="11"
+ proportional="2"
+ ratio="30"
+ >
+ </Chooser>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="error_in_device"
+ jumpPage="choose_net_device"
+ nextButtonText="Fix It"
+ executionLevel="NORMAL"
+ nextFinish="false"
+ canBack="true"
+ canCancel="true"
+ >
+
+ <Info
+ name="deviceErrorMessage"
+ alignement="Center"
+ helpText="The device name is not correct"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="doit"
+ func="do_it"
+ nextButtonText="Configure"
+ executionLevel="NORMAL"
+ nextFinish="false"
+ canBack="true"
+ canCancel="true"
+ >
+
+ <Target
+ targetName="catastrophic_exit"
+ jumpIndex="1"
+ >
+ </Target>
+
+ <Target
+ targetName="done"
+ jumpIndex="10"
+ >
+ </Target>
+
+ <Info
+ name="doitTitle"
+ alignement="Center"
+ helpText="Configuring the Firewall"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+
+ <Info
+ name="info14"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="doneLabel"
+ alignement="East"
+ helpText="The wizard collected the following parameter"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info15"
+ alignement="East"
+ helpText="needed to configure your firewall:"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="cancelLabel"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Freetext
+ name="freetext"
+ alignement="Fill"
+ fillScript="__WIZ_HOME__/firewall_wizard/scripts/compute_level_name.sh"
+ helpText="Protecion Level:"
+ guiType="textfield"
+ editable="false"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="11"
+ proportional="2"
+ ratio="30"
+ length="40"
+ >
+ </Freetext>
+
+ <Freetext
+ name="freetext1"
+ variableName="firewallDevice"
+ alignement="Fill"
+ helpText="Internet Network Device:"
+ guiType="textfield"
+ editable="false"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="11"
+ proportional="2"
+ ratio="30"
+ length="40"
+ >
+ </Freetext>
+
+ <Info
+ name="info17"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info18"
+ alignement="East"
+ helpText="To accept these values, and configure your server, click on"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info19"
+ alignement="East"
+ helpText="\qConfigure\q or use the Back button to correct them."
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="done"
+ nextButtonText="Quit"
+ executionLevel="NORMAL"
+ nextFinish="true"
+ canBack="false"
+ canCancel="false"
+ >
+
+ <Info
+ name="doneTitile"
+ alignement="Center"
+ helpText="Congratulations"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+
+ <Info
+ name="info16"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="successLabel"
+ alignement="Center"
+ helpText="The wizard successfully configured"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info6"
+ alignement="Center"
+ helpText="your server firewall."
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="catastrophic_exit"
+ comment="Exit in case of catastrophhic system error"
+ nextButtonText="Exit"
+ executionLevel="NORMAL"
+ nextFinish="true"
+ canBack="false"
+ canCancel="false"
+ >
+
+ <Info
+ name="catastrophe_text"
+ alignement="Center"
+ helpText="Some terrible happened"
+ guiType="label"
+ fontName="Default"
+ fontStyle="italic"
+ fontSize="14"
+ >
+ </Info>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="error_need_root"
+ comment="Error: this wizard must run as root."
+ nextButtonText="OK"
+ executionLevel="NORMAL"
+ nextFinish="true"
+ canBack="false"
+ canCancel="false"
+ >
+
+ <Info
+ name="root_error_message"
+ alignement="Center"
+ helpText="This Wizard need to run as root"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="error_need_net"
+ subWizard="__WIZ_HOME__/server_wizard/server.wiz"
+ executionLevel="NORMAL"
+ nextFinish="false"
+ canBack="false"
+ canCancel="true"
+ >
+
+ <Info
+ name="errorLabel"
+ alignement="Center"
+ helpText="Network not configured yet"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+
+ <Info
+ name="info23"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="bold"
+ fontSize="14"
+ >
+ </Info>
+
+ <Info
+ name="info22"
+ alignement="Center"
+ helpText="You have to configure the basic network parameters before launch this wizard."
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info25"
+ alignement="Center"
+ helpText="Press next to configure these parameters now, or Cancel to exit this wizard."
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info26"
+ alignement="Center"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info24"
+ alignement="Center"
+ helpText="If you choose to configure now, you will automatically continue"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+
+ <Info
+ name="info27"
+ alignement="Center"
+ helpText="with the DNS configuration"
+ guiType="label"
+ fontName="Default"
+ fontStyle="plain"
+ fontSize="11"
+ >
+ </Info>
+ </Page>
+
+ <Page
+ helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-firewall.html"
+ name="server launcher"
+ jumpPage="ask_level"
+ executionLevel="DEBUG"
+ nextFinish="false"
+ canBack="true"
+ canCancel="true"
+ >
+ </Page>
+</Wizard>