Firewall port access rule generation

A method includes generating firewall port access rules between a first cloud system a second cloud system for each tenant of a plurality of tenants. A unique IP address range is generated for each tenant. The firewall port access rules are applied to each IP address.

BACKGROUND

The present invention relates to the field of cloud computing, and more particularly heterogeneous networks across hybrid clouds. Cloud computing provides computing services that provide tenants virtual computer, storage, and internet connectivity services. Clouds systems can be classified as public, private or hybrid. A private cloud is a cloud infrastructure for one entity that is hosted either internally to the entity or externally, while a public cloud is a cloud infrastructure that is open to more than one entity. A hybrid cloud is two or more cloud systems that remain separate but are both accessible by an entity. Security of the cloud infrastructure is provided by a firewall that use a set of rules to determine the access and flow of information to and from the cloud infrastructure.

DETAILED DESCRIPTION OF EXAMPLES

FIG. 1illustrates an example method100of generating firewall rules between a first cloud system and a second cloud system. In one implementation the first cloud system and second cloud system are of the same type. For example both the first cloud system and the second cloud system are VLAN systems. In one implementation the first cloud system is a VLAN system and the second cloud system is an OpenStack system. OpenStack is an open source cloud computing platform for public and private clouds. As shown by block102, firewall port access rules are generated between the first cloud system and the second cloud system for each tenant. As shown by block104, a unique IP address range is generated for each tenant of a plurality of tenants. As shown by block106, the firewall port access rules shown by block102are applied to each IP address generated by block104.

FIG. 6includes a chart of the firewall port access rules for each tenant in a multi-tenant cloud environment. In one implementation the number of rules required is=2*V*N*P, where V=Number of different VLANS per tenant; N=Total number of tenants; and P=Number of ports requiring rules. In one implementation all ports/protocols and VLAN interconnectivity are blocked by default. In another implementation the administrator or entity is identifies which ports are blocked and which ports are not blocked.

For heterogeneous networks, firewall rules as isolation is now entrusted to a manually configured firewall. In one implementation all ports/protocols and VLAN interconnectivity are blocked by default. Therefore the challenge becomes automating the creation of a whitelist of allowed rules only.

In one embodiment the allowed traffic is defined by the following algorithm: For each port, for each VLAN, allow cloud provider A's compute nodes talk to cloud provider B's compute nodes, if the same tenant. In one embodiment these rules are duplicated to handle directional ingress vs. egress rules.

In the table shown inFIG. 6the firewall rules for three tenants are illustrated. The list would grow as more tenants are added. In one implementation where the default of all flow is blocked until allowed, only the Allow rules need to be added for each port/protocol, for each VLAN, for each tenant. The algorithm to create the firewall rules preserve tenant isolation while promoting intra-tenant cross-cloud-provider interconnectivity. In one implementation inFIG. 6, Cloud1is a legacy compartment and Cloud2is an OpenStack-based compartment.

The firewall port access rules require specific IP address ranges to be specified for each VLAN of each tenant. An algorithm has been devised to automate IP address management and further facilitate the prior algorithm for firewall rules.FIG. 2illustrates one implementation of generating a unique IP address range for each tenant. As shown by block108each tenant is assigned a unique tenant identifier. In one implementation the tenant identifier is a unique integer. Each tenant in a multi-tenant environment receives a unique identifier. As shown by block110, each tenant is assigned an IP quota. In one implementation the IP quota is a fixed number such as 40. However other fixed numbers are also contemplated and may range from 1 to greater than 40. In one implementation the IP quota is variable and is chosen by the entity.

In one embodiment the IP address range is generated by an algorithm. The IP address for each tenant is necessary to compute the starting and ending octet values. Here we provide the formulas necessary to compute the ending 3rd and 4th octet values and the starting IPs are merely computed via subtraction from the ending IPs. A number known as the IP Integer is calculated as follows: Jn=Jn−1+Δn; where: Jn=IP Integer for tenant n; n=Tenant ID (Starting from 1); and Δ=IP quota for tenant n.

In one implementation the 3rd and 4th ending octet IP values are be computed as follows: X=Quotient(Jn/M); and Y=MOD(Jn/M). The Quotient function truncates any remainder, and the Mod function results in only the remainder. M=Max IP value for an octet=254 for IPv4. This function allows support for IPv6 by increasing the value of M.

Referring toFIG. 7a table illustrates the generation of the IP addresses for the first 25 tenants based on the foregoing algorithm for both a fixed IP quota of 40 and for a variable IP quota is provided in the table.

After the firewall port access rules are generated and the IP address range has been generated as provided hereinabove, the port access rules are applied to each IP address.

Referring toFIG. 3an apparatus for firewall rule generation200includes memory including a non-transitory computer-readable medium containing instructions for a processor. The non-transient computer-readable medium or other persistent storage device, include volatile memory such as DRAM, or some combination of these; for example a hard disk combined with RAM. Memory contains instructions for directing the carrying out of functions and analysis by one or more processors. In some implementations, memory further stores data for use by the one or more processors. Memory stores various software or code modules that direct processor to carry out various interrelated actions. In the example illustrated, the memory includes three modules.

The first module202is firewall management module that includes instructions to create firewall port access rules as discussed above and summarized in table 6. The second module204is an IP allocation module that includes instructions when carried out by a processor to create IP address range as discussed above and summarized in table 7. The third module206includes instructions to apply the port access rules resulting from the instruction in firewall port access rules module202to the IP addresses resulting from the instruction in the IP allocation module204.

Referring toFIG. 4a device300for creating firewall rules include a processor302and memory200. One or more processors302include one or more processing units configured to carry out instructions contained in memory200. In general, following instructions contained in the modules202,204and206, the firewall port access rules are generated, the IP address range is allocated; and the firewall port access rules are applied to each of the IP addresses.

For purposes of this application, the term “processing unit” shall mean a presently developed or future developed processing unit that executes sequences of instructions contained in a memory. Execution of the sequences of instructions causes the one or more processing units to perform steps such as generating control signals. The instructions may be loaded in a random access memory (RAM) for execution by the one or more processing units from a read only memory (ROM), a mass storage device, or some other persistent storage. In other embodiments, hardwired circuitry may be used in place of or in combination with software instructions to implement the functions described. Unless otherwise specifically noted, the firewall rule generation is not limited to any specific combination of hardware circuitry and software, nor to any particular source for the instructions executed by the one or more processing units.

As discussed above memory200includes a non-transient computer-readable medium or other persistent storage device, volatile memory such as DRAM, or some combination of these; for example a hard disk combined with RAM.

In one implementation a user interface is used by a tenant or system administrator to enter certain parameters as required in the method of generating firewall access rules and/or generating a unique IP address range. For example in one implementation the IP quota is entered by a user via a user interface as is known in the art.

Referring toFIG. 5one implementation o in which the firewall rule generation operates is shown. An operator accesses a first cloud system404and a second cloud system406via the internet400. A firewall402receives instructions from the internet to access the first could system404and/or the second cloud system406. In one implementation first cloud system404is of one type of a VLAN and second cloud system is of a second type for example OpenStack. The first cloud system404has certain hardware that operates in the first cloud system type, and the second cloud system406includes hardware that operates in the second cloud system type. The firewall rule generation allows access for the tenants to this hybrid cloud environment including a first cloud system of one type and a second cloud system of a second type. In one implementation the firewall rule generation provides firewall rules to more than two cloud systems.

A tenant can access both the first cloud system404and the second cloud system406in a seamless manner based on the firewall rule generator206as discussed hereinabove. Firewall402communicates with firewall module206. As a request is received from internet400the firewall based on the firewall rules from module206directs the information to router408to be directed either toward the first cloud system404or the second cloud system406. The information is then directed to either switch414or420depending on where the tenant IP address. In one implementation servers410and418include information and programming for a first tenant and servers412and424include information and programming for a second tenant. Similarly, second cloud406also includes information and programming for first tenant on servers436and438identified as reference numeral428in second cloud406. Switch426in second cloud406directs the information to the appropriate router or server for the particular client.

The implementation of the firewall port access rules using the algorithms enable inter-tenant isolation and intra-tenant connectivity across mixed infrastructure network architectures. The algorithm generated application of the firewall port access rules to the IP addresses eliminate errors and provides for the quick scaling and addition of additional tenants to the multi-tenant cloud system.

Referring toFIG. 5in one implementation apparatus300includes module206and is physically located in the same space. In one implementation apparatus300is remote from firewall402and provides the firewall port access rules applied to the IP addresses for all of the tenants that can access and send information to the first cloud404and the second cloud406.

In one implementation the algorithms described herein for generation of the firewall port access rules and the generation of IP addresses is a computer based system including a processor and memory and described above.

While the preferred embodiments of the invention have been illustrated and described, it will be appreciated that various changes can be made therein without departing from the spirit and scope of the invention. For example, although different example embodiments may have been described as including one or more features providing one or more benefits, it is contemplated that the described features may be interchanged with one another or alternatively be combined with one another in the described example embodiments or in other alternative embodiments. One of skill in the art will understand that the invention may also be practiced without many of the details described above. Accordingly, it will be intended to include all such alternatives, modifications and variations set forth within the spirit and scope of the appended claims. Further, some well-known structures or functions may not be shown or described in detail because such structures or functions would be known to one skilled in the art. Unless a term is specifically and overtly defined in this specification, the terminology used in the present specification is intended to be interpreted in its broadest reasonable manner, even though may be used conjunction with the description of certain specific embodiments of the present invention.