[
https://issues.apache.org/jira/browse/VCL-174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14240071#comment-14240071
]
ASF subversion and git services commented on VCL-174:
-----------------------------------------------------
Commit 1644185 from [~arkurth] in branch 'vcl/trunk'
[ https://svn.apache.org/r1644185 ]
VCL-174
Added backend support for NAT.
Added entries to $SUBROUTINE_MAPPINGS hash in DataStructure.pm for new
NAT-related database tables.
Added subroutines:
-Module.pm::create_nathost_os_object
-Module.pm::nathost_os
-Module.pm::set_nathost_os subroutines.
-utils.pm::get_computer_nathost_info
-utils.pm::get_nathost_assigned_public_ports
-utils.pm::populate_reservation_natport
-utils.pm::insert_natport
-utils.pm::get_reservation_request_id
-utils.pm::get_reservation_request_info
-Linux.pm::firewall
-Linux.pm::enable_ip_forwarding
Updated utils.pm::get_connect_method_info to retrieve natport information.
Added code to State.pm::initialize to create a NAT host OS object if necessary.
Updated Module.pm::create_mn_os_object to pass the reservation ID to the
DataStructure.pm constructor if it is available.
Updated utils.pm::get_request_info to populate the natport table.
Updated utils.pm::get_computer_info to also retrieve NAT host info.
Added modularized Linux firewall framework. This will eventually dynamically
figure out which Linux firewall commands to use. For now, only iptables is
supported. Added Linux/firewall directory and iptables.pm.
Added code to process_connect_methods to check if NAT is used. If so, a NAT
port forwarding is added for each connect method port.
Added block to reclaim.pm::process to delete the NAT rules created for a
reservation if necessary.
Updated all places that use results from connect_method_info to handle new
format of hash returned.
Other
Fixed sloppy indentation in reclaim.pm. Please stop this nonsense.
Updated Module.pm::new to attempt to use an existing ManagementNode.pm object
if one exists.
Added init.pm file, which is not the parent class of the Linux init modules.
Updated Linux.pm::get_init_modules to pass a "base_package" argument to the
init module constructor. Changed base package in init modules from
VCL::Module::OS::Linux to VCL::Module::OS::Linux::init.
> NAT - support for sites that have small IP address ranges
> ---------------------------------------------------------
>
> Key: VCL-174
> URL: https://issues.apache.org/jira/browse/VCL-174
> Project: VCL
> Issue Type: New Feature
> Components: database, vcld (backend), web gui (frontend)
> Reporter: Aaron Peeler
> Priority: Minor
> Fix For: 2.4
>
> Attachments: vcl_nat_patch.diff
>
>
> Add the support for Network Address Translation so smaller sites can provide
> many resources with a small number of IP addresses.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)