ipfilter package (daxfi.firewalls package).
Class used to manage ipfilter rules.
Copyright 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
|
get_policy ( direction )
|
|
is_supported
|
is_supported ()
|
|
list_chains
|
list_chains ()
|
|
list_rules
|
list_rules ( direction )
|
|
transf_ipfilter_icmp
|
transf_ipfilter_icmp ( v )
Convert icmp names into icmp codes.
|
|
transf_ipfilter_logprio
|
transf_ipfilter_logprio ( v )
ipfilter uses the BSD names for logging priority.
|
|
transf_ipfilter_port
|
transf_ipfilter_port ( v )
Ipfilter use its own range syntax.
|
|
transf_ipfilter_state
|
transf_ipfilter_state ( v )
Manage states for ipfilter.
Exceptions
|
|
CreateRulesError, 'unable to write a rule with this state'
|
|
|
transf_ipfilter_syn
|
transf_ipfilter_syn ( v )
ACK and SYN matches must be emulated with flags .
|
|
transf_ipfilter_target
|
transf_ipfilter_target ( v )
Modify the target name.
|
|
transf_ipfilter_tcpflags
|
transf_ipfilter_tcpflags ( v )
ipfilter uses it's own syntax for tcp flags.
|
Classes
|
|
Rule | Methods and variables used to create the command string for ipfilter.
|
|
|