Logo Search packages:      
Sourcecode: ufw version File versions

def src::frontend::UFWFrontend::set_default_policy (   self,
  policy 
)

Sets default policy of firewall

Definition at line 405 of file frontend.py.

00405                                         :
        '''Sets default policy of firewall'''
        res = ""
        try:
            res = self.backend.set_default_policy(policy)
            if self.backend._is_enabled():
                self.backend.stop_firewall()
                self.backend.start_firewall()
        except UFWError, e:
            error(e.value)

        return res

    def set_loglevel(self, level):


Generated by  Doxygen 1.6.0   Back to index