2,323 bytes added
, 18:04, 3 January 2014
=== NAME ===
esmith::FormMagick::Panels::portforwarding - useful panel functions<br />
In a root terminal you can do the command below if you want to display the up-to-date content
perldoc esmith::FormMagick::Panels::portforwarding
=== SYNOPSIS ===
use esmith::FormMagick::Panels::portforwarding
my $panel = esmith::FormMagick::Panel::portforwarding->new();
$panel->display();
=== DESCRIPTION ===
This module is the backend to the portforwarding panel, responsible for supplying all functions used by that panel. It is a subclass of esmith::FormMagick itself, so it inherits the functionality of a FormMagick object.
==== new ====
This is the class constructor.
==== show_port_forwards ====
This method displays the data on currently forwarded ports on the system.
==== validate_source_port ====
This method validates the source port field in the new port forward page.
==== detect_collision ====
This method looks for a collision between two ports or port ranges.
==== validate_destination_port ====
This method validates the destination port field in the new port forward page.
==== isValidPort ====
Test for a valid port. FIXME: Remove this when 5.6 is no longer supported, and use esmith::util::network::isValidPort instead.
==== validate_destination_host ====
The purpose of this method is to validate the destination host field in the new port forward page.
==== validate_allowed_hosts ====
==== display_summary_create ====
This is a wrapper for the display_summary method, to call it in create mode.
==== display_summary_remove ====
This is a wrapper for the display_summary method, to call it in remove mode.
==== display_create_summary ====
This method’s purpose is to display a summary of the rule about to be added.
==== remove_rule ====
This method is a remove wrapper for the modify method.
==== create_new ====
This method is a create wrapper for the modify method.
==== modify ====
This method’s purpose is to add or remove rules from the database, and then cause the firewall rules to update.
==== get_destination_host ====
Get the ’destination_host’ parameter, and fold it to ’localhost’ if it matches any local interface IP address.
[[Category:Developer]]
[[Category:SME Server Development Framework]]
[[Category:Development Tools]]