IPChains::PortFW

IPChains::PortFW is a Perl module to manipulate portfw masquerading table.
Download

IPChains::PortFW Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Francis J. Lacoste
  • Publisher web site:
  • http://search.cpan.org/~frajulac/Fwctl-0.28/Fwctl.pm

IPChains::PortFW Tags


IPChains::PortFW Description

IPChains::PortFW is a Perl module to manipulate portfw masquerading table. IPChains::PortFW is a Perl module to manipulate portfw masquerading table.SYNOPSIS my $masq = new IPChains::PortFW( option => value, ... ); $masq->append();IPChains::PortFW is an perl interface to the linux kernel port forwarding facility. You must have ipmasqadm and the portfw module installed for this module to work. A kernel compiled with CONFIG_IP_MASQUERADE_IPPORTFW would also helps.It has a similar interface than the IPChains(3) module. You create an IPChains::PortFW object with new(), you can query or set attributes with the attribute() method and you add or deletes the port forwarding rules using append() or delete().ATTRIBUTESHere are the attributes valids for IPChains::PortFW.LocalAddrThis is the local address from which packets will be redirected.LocalPortThis is the port from which packets will be redirected.RemAddrThis is the address to which the packets will be forwarded to.RemPortThis is the port to which the packets will be forwarded to.PrefThis is a preferences value used for load balancing in the case when there are many possible remote destinations.METHODSnew( , ... )Create a new IPChains::PortFW object and sets its attributes.attribute( attribute )Get or sets an attribute. Use undef to delete a value.clopts()Unset all attributes.append()Append a rule to the port forwarding masquerade table as specified by the attributes of the current objects.delete()Deletes entries in the port forwarding masquerade table. The entries matching the attributes will be deleted.flush()Removes all entries from the port forwarding masquerade table.list()Returns an array of IPChains::PortFW objects. One for each entries in the port forwarding table. Requirements: · Perl


IPChains::PortFW Related Software