Class docsis_firewall

Description

DOCSIS Port Filter (Firewall)

Located in /docsis_config/docsis_firewall.php (line 32)


	
			
Variable Summary
 mixed $filters
Method Summary
 docsis_firewall docsis_firewall ()
 void add_filter ([int $protocol = SOL_ALL], [int $control = DEFAULT_DROP], [ipaddress $source_ip_address = '0.0.0.0'], [ipaddress $source_mask = '0.0.0.0'], int $source_port_low, [int $source_port_high = 65535], [ipaddress $dest_ip_address = '0.0.0.0'], [ipaddress $dest_mask = '0.0.0.0'], int $dest_port_low, [int $dest_port_high = 65535], [int $interface_index = INTERFACE_DEFAULT], [int $direction = DIRECTION_BOTH], [int $broadcast_only = BROADCAST_FALSE])
 void write (docsis_config &$bootfile, [int $default_action = DEFAULT_ACCEPT])
Variables
mixed $filters = array() (line 36)
Methods
Constructor docsis_firewall (line 41)

Constructor

docsis_firewall docsis_firewall ()
add_filter (line 61)

Add a filter to the firewall

void add_filter ([int $protocol = SOL_ALL], [int $control = DEFAULT_DROP], [ipaddress $source_ip_address = '0.0.0.0'], [ipaddress $source_mask = '0.0.0.0'], int $source_port_low, [int $source_port_high = 65535], [ipaddress $dest_ip_address = '0.0.0.0'], [ipaddress $dest_mask = '0.0.0.0'], int $dest_port_low, [int $dest_port_high = 65535], [int $interface_index = INTERFACE_DEFAULT], [int $direction = DIRECTION_BOTH], [int $broadcast_only = BROADCAST_FALSE])
  • int $protocol: either SOL_ICMP, SOL_TCP, SOL_UDP or SOL_ALL
  • int $control: either DEFAULT_ACCEPT or DEFAULT_DROP
  • ipaddress $source_ip_address: Source IP Address
  • ipaddress $source_mask: Source Mask
  • int $source_port_low: port to start filtering
  • int $source_port_high: port to stop filtering
  • ipaddress $dest_ip_address: Dest IP Address
  • ipaddress $dest_mask: Destination Mask
  • int $dest_port_low: Destination port low
  • int $dest_port_high: Destination port high
  • int $interface_index: Interface index defaults to INTERFACE_DEFAULT
  • int $direction: Direction to match against valid values DIRECTION_INBOUND, DIRECTION_OUTBOUND or DIRECTION_BOTH default Value DIRECTION_BOTH
  • int $broadcast_only: Only match multicast or broadcast traffic Valid Values BROADCAST_TRUE or BROADCAST_FALSE default is BROADCAST_FALSE
write (line 80)

Write filter to bootfile

void write (docsis_config &$bootfile, [int $default_action = DEFAULT_ACCEPT])
  • docsis_config $bootfile: to write to
  • int $default_action: either DEFAULT_ACCEPT or DEFAULT_DROP

Documentation generated on Mon, 14 Nov 2005 18:00:15 -0700 by phpDocumentor 1.3.0RC3