??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
 Udac@s9ddlmZdZdZeZeZyddl Z e j j Zddl mZddl mZddlmZeZyeZejWnweefk r eZyddlmZeZWn0ek rddlmZedeZnXejnXWnek rnXd efd YZdS( i(t LooseVersionN(tFirewallClient(tFirewallClientZoneSettings(t FirewallError(t Firewall_test(tFirewalltofflinetFirewallTransactioncBseZdZd ddeedddZdZdZdZdZ dZ dZ dZ d Z d Zd Zed ZRS(sn FirewallTransaction This is the base class for all firewalld transactions we might want to have c Cs||_t|_||_|r-||_n'trEtj|_ntj|_||_||_||_ t|_|pdg|_ |pdg|_ g|_ d|_d|_dS(sq initializer the transaction :module: AnsibleModule, instance of AnsibleModule :action_args: tuple, args to pass for the action to take place :zone: str, firewall zone :desired_state: str, the desired state (enabled, disabled, etc) :permanent: bool, action should be permanent :immediate: bool, action should take place immediately :enabled_values: str[], acceptable values for enabling something (default: enabled) :disabled_values: str[], acceptable values for disabling something (default: disabled) tenabledtdisabledN(tmoduletfwt action_argstzonet fw_offlinetget_default_zonetgetDefaultZonet desired_statet permanentt immediatetenabled_valuestdisabled_valuestmsgstNonet enabled_msgt disabled_msg( tselfR R R RRRRR((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pyt__init__6s"          cCsy||SWntk r}dd|krC|jjdnt|jdkr|jjdd|dj|jfq|jjdd|nXd S( s Function to wrap calls to make actions on firewalld in try/except logic and emit (hopefully) useful error messages tINVALID_SERVICEs%ssfServices are defined by port/tcp relationship and named as they are in /etc/services (on most systems)itmsgsERROR: Exception caught: %s %ss, sERROR: Exception caught: %sN(t ExceptionRtappendtlenR t fail_jsontjoin(Rt action_functaction_func_argste((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytaction_handleres  cCsv|jrE|jjj|j}tt|jjj|}n'|jjj|j}|j }||fS(N( RR tconfigtget_zoneR Rtlisttget_zone_configt getZoneByNamet getSettings(Rtfw_zonet fw_settings((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytget_fw_zone_settings{s ! cCs6|jr%|jjj||jn |j|dS(N(RR R'tset_zone_configtsettingstupdate(RR-R.((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytupdate_fw_settingss cCs tdS(N(tNotImplementedError(R((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytget_enabled_immediatescCs tdS(N(R4(R((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytget_enabled_permanentscCs tdS(N(R4(R((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytset_enabled_immediatescCs tdS(N(R4(R((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytset_enabled_permanentscCs tdS(N(R4(R((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytset_disabled_immediatescCs tdS(N(R4(R((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytset_disabled_permanentscCst|_|jr|jr|j|j|j}|j|j|j}|jj d|j |j kr| s{| r|j j r|j jdtqn|s|j|j|jt|_n|s|j|j|jt|_n|jr|jr|jj |jqqt|j |jkrt|s9|r^|j j r^|j jdtq^n|r|j|j|jt|_n|r|j|j|jt|_n|jr|jr|jj |jqqtn|jr(|j r(|j|j|j}|jj d|j |j kr|ss|j j rQ|j jdtn|j|j|jt|_n|jr%|jr%|jj |jq%qt|j |jkrt|r|j j r|j jdtn|j|j|jt|_n|jr%|jr%|jj |jq%qtnL|jrt|j rt|j|j|j}|jj d|j |j kr|s|j j r|j jdtn|j|j|jt|_n|jrq|jrq|jj |jqqqt|j |jkrt|rF|j j r$|j jdtn|j|j|jt|_n|jrq|jrq|jj |jqqqtn|j|jfS(s run This function contains the "transaction logic" where as all operations follow a similar pattern in order to perform their action but simply call different functions to carry that action out. s0Permanent and Non-Permanent(immediate) operationtchangedsPermanent operationsNon-permanent operation(tFalseR;RRR&R6R R5RRRRR t check_modet exit_jsontTrueR8R7RRR:R9R(Rtis_enabled_permanenttis_enabled_immediatet is_enabled((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pytruns                            cCstrCtrCtttdkr|jddjtqntrt rtttdkr|jddjtny&tjtkr|jddnWqtk r|jddtqXnt r|jddnd S( sj Perform sanity checking, version checks, etc :module: AnsibleModule instance s0.3.9RsRunsupported version of firewalld, offline operations require >= 0.3.9 - found: {0}s0.2.11sAunsupported version of firewalld, requires >= 0.2.11 - found: {0}s;firewalld service must be running, or try with offline=truesfirewalld connection can't be established, installed version (%s) likely too old. Requires firewalld >= 0.2.11sPython Module not found: firewalld and its python module are required for this module, version 0.2.11 or newer required (0.3.9 or newer for offline operations)N( t FW_VERSIONRRR!tformatR t connectedR<tAttributeErrortimport_failure(R ((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pyt sanity_checks     (N(t__name__t __module__t__doc__RR<RR&R/R3R5R6R7R8R9R:RCt staticmethodRI(((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pyR/s .         (tdistutils.versionRRRDR R<RR?RHtfirewall.configtfirewallR'tVERSIONtfirewall.clientRRtfirewall.errorsRRRGtfirewall.core.fw_testRtModuleNotFoundErrortfirewall.core.fwRtstartt ImportErrortobjectR(((sB/usr/lib/python2.7/site-packages/ansible/module_utils/firewalld.pyts4