Table of Contents

Module: __init__ daxfi/firewalls/iptables/__init__.py

iptables package (daxfi.firewalls package).

Class used to manage iptables rules.

Copyright 2001, 2002 Davide Alberani <alberanid@libero.it>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Imported modules   
from daxfi.Rule import *
Functions   
get_policy
is_supported
list_chains
list_rules
transf_iptables_chain
transf_iptables_nattype
transf_iptables_rate
transf_iptables_rejectwith
transf_iptables_state
transf_iptables_target
transf_iptables_tcpflags
  get_policy 
get_policy ( direction )

  is_supported 
is_supported ()

  list_chains 
list_chains ()

  list_rules 
list_rules ( direction )

  transf_iptables_chain 
transf_iptables_chain ( v )

  transf_iptables_nattype 
transf_iptables_nattype ( v )

  transf_iptables_rate 
transf_iptables_rate ( v )

Transform the rate of the iptables' limit extension.

Exceptions   
RemoveOptionError, 'removing absurd rate value.'
  transf_iptables_rejectwith 
transf_iptables_rejectwith ( v )

  transf_iptables_state 
transf_iptables_state ( v )

  transf_iptables_target 
transf_iptables_target ( v )

  transf_iptables_tcpflags 
transf_iptables_tcpflags ( v )

Invert value/mask for iptables' tcp-flags.

Exceptions   
CreateRulesError, 'invalid flag: "' + i + '"'
Classes   
Rule

Methods and variables used to create the command string for iptables.


Table of Contents

This document was automatically generated on Tue Dec 17 17:48:18 2002 by HappyDoc version r1_5