iptables package (daxfi.firewalls package).
Classes used to manage iptables rules.
Copyright 2001 Davide Alberani <alberanid@mail.com>
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 import xml_commands
from daxfi.Rule import *
from daxfi.RuleBuilder import *
from daxfi.firewalls.iptables._iptables import is_supported, list_chains, list_rules
|
Functions
|
|
transf_iptables_loglevel
transf_iptables_rate
transf_iptables_reject
transf_iptables_syn
|
|
transf_iptables_loglevel
|
transf_iptables_loglevel ( v )
Drop the default log level.
Exceptions
|
|
RemoveOptionError( 'remove this option' )
|
|
|
transf_iptables_rate
|
transf_iptables_rate ( v )
Transform the rate of the iptables' limit extension.
|
|
transf_iptables_reject
|
transf_iptables_reject ( v )
For the reject-with option of iptables.
Exceptions
|
|
RemoveOptionError( 'remove this option' )
|
|
|
transf_iptables_syn
|
transf_iptables_syn ( v )
Translate the syn-only option in a set of tcp-flags (for iptables).
Exceptions
|
|
RemoveOptionError( 'remove this option' )
|
|
Classes
|
|
Rule | Methods and variables used to create the command string for iptables.
|
RuleBuilder | The RuleBuilder class for iptables.
|
|
|