Class FirewallForward
Firewall forward connections config.
Located in /api/FirewallForward.class.php (line 58)
Engine | --Software | --Daemon | --Firewall | --FirewallForward
Inherited Variables
Inherited from Daemon
Daemon::$initscript
Daemon::$package
Daemon::$processname
Daemon::$reloadable
Daemon::$title
Inherited from Software
Software::$copyright
Software::$description
Software::$installsize
Software::$installtime
Software::$packager
Software::$pkgname
Software::$release
Software::$summary
Software::$version
Inherited from Engine
Engine::$errors
FirewallForward constructor.
- Firewall::__construct()
- Firewall constructor.
Add a port/to the forward allow list.
- string $nickname: nickname optional rule nickname
- string $protocol: protocol the protocol - UDP/TCP
- int $fromport: port port number
- $toport
- $toip
Add a port range to the forward allow list.
- string $nickname: nickname optional rule nickname
- string $protocol: protocol the protocol - UDP/TCP
- int $lowport: lowport low port number
- int $highport: highport high port number
- string $toip: toip the destination ip address
Add a standard service to the forward allow list.
- string $nickname: nickname optional rule nickname
- string $service: service service name eg HTTP, FTP, SMTP
- string $toip: toip the destination ip address
Delete a port from the forward allow list.
- string $protocol: protocol the protocol - UDP/TCP
- int $fromport: fromport from port number
- int $toport: toport to port number
- string $toip: toip target IP address
Delete a port range from the forward range allow list.
- string $protocol: protocol the protocol - UDP/TCP
- int $lowport: lowport low port number
- int $highport: highport high port number
- string $toip: toip target IP address
Gets allowed forward port ranges. The information is an array with the following hash array entries:
info[enabled] info[protocol] info[nickname] info[toip] info[lowport] info[highport]
Gets allowed forward ports. The information is an array with the following hash array entries:
info[enabled] info[protocol] info[nickname] info[fromport] info[toip] info[toport] info[service] (FTP, HTTP, etc.)
Gets IP of PPTP server behind the firewall. The result is a single element array with the following fields:
info[enabled] info[host]
Sets PPTP forwarding to the given IP address.
- string $ip: ip IP of PPTP server
Enable/disable a port from the forward allow list.
- boolean $enabled: enabled rule enabled?
- string $protocol: protocol the protocol - UDP/TCP
- int $fromport: fromport from port number
- int $toport: toport to port number
- string $toip: toip target IP address
Enable/disable a port range from the forward range allow list.
- boolean $enabled: enabled rule enabled?
- string $protocol: protocol the protocol - UDP/TCP
- int $lowport: lowport low port number
- int $highport: highport high port number
- string $toip: toip target IP address
Enable/disable PPTP forwarding.
- boolean $enabled: enabled rule enabled?
- string $ip: ip IP of PPTP server
Inherited Methods
Inherited From Firewall
Firewall::__construct()
Firewall::AddHost()
Firewall::AddMac()
Firewall::AddPort()
Firewall::AddPortRange()
Firewall::AddRule()
Firewall::AddStandardService()
Firewall::DeleteHost()
Firewall::DeleteMac()
Firewall::DeletePort()
Firewall::DeletePortRange()
Firewall::DeleteRule()
Firewall::FindRule()
Firewall::GetHosts()
Firewall::GetInterfaceDefinition()
Firewall::GetInterfaceRole()
Firewall::GetInterfaceRoleText()
Firewall::GetMacs()
Firewall::GetMode()
Firewall::GetPortRanges()
Firewall::GetPorts()
Firewall::GetRules()
Firewall::GetStandardServiceList()
Firewall::GetState()
Firewall::GetValue()
Firewall::IsValidIp()
Firewall::IsValidMac()
Firewall::IsValidMode()
Firewall::IsValidPort()
Firewall::IsValidPortRange()
Firewall::IsValidProtocol()
Firewall::IsValidServer()
Firewall::IsValidService()
Firewall::LookupHostMetainfo()
Firewall::LookupService()
Firewall::RemoveInterfaceRole()
Firewall::SetInterface()
Firewall::SetInterfaceRole()
Firewall::SetMode()
Firewall::SetRules()
Firewall::SetState()
Firewall::SetValue()
Inherited From Daemon
Daemon::__construct()
Daemon::GetBootState()
Daemon::GetProcessName()
Daemon::GetRunningState()
Daemon::GetTitle()
Daemon::Reset()
Daemon::Restart()
Daemon::SetBootState()
Daemon::SetRunningState()
Daemon::__destruct()
Inherited From Software
Software::__construct()
Software::GetCopyright()
Software::GetDescription()
Software::GetInstallSize()
Software::GetInstallTime()
Software::GetPackageName()
Software::GetPackager()
Software::GetRelease()
Software::GetRpmInfo()
Software::GetSummary()
Software::GetVersion()
Software::IsInstalled()
Software::__destruct()
Inherited From Engine
Engine::__construct()
Engine::AddValidationError()
Engine::CheckValidationErrors()
Engine::CopyValidationErrors()
Engine::GetValidationErrors()
Engine::Log()
Engine::__destruct()
Inherited Constants
Inherited from Firewall
Firewall::CONSTANT_ALL_PORTS
Firewall::CONSTANT_ALL_PROTOCOLS
Firewall::CONSTANT_AUTO
Firewall::CONSTANT_DISABLED
Firewall::CONSTANT_DMZ
Firewall::CONSTANT_ENABLED
Firewall::CONSTANT_EXTERNAL
Firewall::CONSTANT_GATEWAY
Firewall::CONSTANT_HOT_LAN
Firewall::CONSTANT_LAN
Firewall::CONSTANT_MULTIPATH
Firewall::CONSTANT_NORMAL
Firewall::CONSTANT_NOT_CONFIGURED
Firewall::CONSTANT_OFF
Firewall::CONSTANT_ON
Firewall::CONSTANT_ONE_TO_ONE_NAT_START
Firewall::CONSTANT_PORT_RANGE
Firewall::CONSTANT_PROTOCOL_TCP
Firewall::CONSTANT_PROTOCOL_UDP
Firewall::CONSTANT_SPECIAL
Firewall::CONSTANT_STANDALONE
Firewall::CONSTANT_TRUSTEDGATEWAY
Firewall::CONSTANT_TRUSTEDSTANDALONE
Firewall::FILE_CONFIG
Firewall::FILE_CUSTOM_RULES
Inherited from Daemon
Daemon::CMD_CHKCONFIG
Daemon::CMD_LS
Daemon::CMD_PIDOF
Daemon::CMD_SERVICE
Daemon::PATH_INITD
Inherited from Software
Software::COMMAND_RPM
Inherited from Engine
Engine::COMMAND_API
Documentation generated on Fri, 28 Aug 2009 20:32:06 -0400 by phpDocumentor 1.3.2

