Table of contents Index

Module Zorp

class ZorpProxy # Builtin interface for proxies implemented in C.
def debug(level, msg) # Logs a debug message.
def error(level, msg) # Logs an error message
def init(name) # Default init() function provided by Zorp
def log(logclass, verbosity, msg) # Entry point of Zorp logging subsystem.
def message(level, msg) # Logs an informational message
string AuthException = 'Authenticated failed'
string DACException = 'DAC policy violation'
int FALSE = 0
string InternalError = 'Internal error occured'
string MACException = 'MAC policy violation'
string ServiceException = 'Service'
int TRUE = 1
int Z_ACCEPT = 1
int Z_CRITICAL = 8
int Z_DEBUG = 128
int Z_DENY = 2
int Z_ERROR = 4
int Z_INFO = 64
int Z_MESSAGE = 32
int Z_REJECT = 3
int Z_UNSPEC = 0
int Z_WARNING = 16
string ZoneException = 'Zone not found'
string __file__ = './Zorp.py'
string firewall_name = 'zorp'
dictionary settings = {}
list zones = []

Description

This module

debug(level, msg)

Logs a debug message.

level
log level
msg
message
Sends the given message to the low level Zorp provided log function.

Notes:

this function is obsolete and should not be used.

error(level, msg)

Logs an error message

level
log level
msg
message
Sends the given message to the low level Zorp provided log function.

Notes:

this function is obsolete and should not be used.

init(name)

Default init() function provided by Zorp

name
name of this instance
This function is a default init() calling the init function identified by name. This way several Zorp instances can easily use the same policy file.

log(logclass, verbosity, msg)

Entry point of Zorp logging subsystem.

logclass
hierarchical log class as described in zorp(8)
verbosity
verbosity of this message
msg
message
This function is implemented in C, and can be used to inject messages into Zorp logging subsystem.

message(level, msg)

Logs an informational message

level
log level
msg
message
Sends the given message to the low level Zorp provided log function.

Notes:

this function is obsolete and should not be used.
Copyright © 2000 BalaBit IT Ltd.
Written by: Balázs Scheidler