コード例 #1
0
ファイル: iptables.py プロジェクト: maximerobin/Ufwi
 def apply(self):
     iptablesRestore(self, self.filename, ipv6=self.use_ipv6)
コード例 #2
0
ファイル: iptables.py プロジェクト: maximerobin/Ufwi
    def rollback(self):
        self.error("Restore the old iptables rules")

        # Restore old rules
        iptablesRestore(self, self.old_rules.filename, ipv6=self.options.ipv6, check_error=False)