Security policy enforcement and visibility into network architectures that block external source addresses

By using the X-Forwarded-For (XFF) field to record and use the original source address in the network architecture, the security policy application problem caused by the source IP address being modified in the network architecture is solved, and more accurate and efficient security of network traffic is achieved. manage.

CN114041276BActive Publication Date: 2024-09-03PALO ALTO NETWORKS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080032285.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-04-30
Filing Date
2020-04-28
Publication Date
2024-09-03
Estimated Expiration
2040-04-28

AI Technical Summary

Technical Problem

In the network architecture, because peripheral devices such as load balancers modify the source IP address through network address translation, downstream devices cannot effectively apply security policies and rules, causing security problems.

Method used

By inserting the original source address in the X-Forwarded-For (XFF) field of the IP packet header, and having that address recorded and used by the firewall, combined with the address in the standard source address header field, security analysis and policy application is performed.

Benefits of technology

Effectively determine the true source address of network traffic, enhance the visibility and implementation capabilities of security policies, and improve the accuracy and effectiveness of network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114041276B_ABST
    Figure CN114041276B_ABST
Patent Text Reader

Abstract

Some network architectures include perimeter or edge devices that perform network address translation or otherwise modify data in network traffic data packet headers, such as the source address. Modification of the source address prevents downstream devices from knowing the true or original source address from which the traffic originated. To address this issue, perimeter devices can insert the original source address in the X‑Forwarded‑For field of the packet header. Firewalls and related security services can be programmed to record the original source address in the XFF field in addition to other packet information and consider the original source address during security analysis. Using the original source address in the XFF field, services can determine additional characteristics about the traffic, such as the geographic point of origin or the associated user account, and use these characteristics to identify applicable rules or policies.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] The present disclosure relates generally to the field of data processing, and more particularly to network security.

[0002] A firewall is a network security device that monitors incoming and outgoing network traffic and controls whether the traffic is allowed or blocked based on security policies or rules. Firewalls can be hardware, software, or both. For example, a firewall can be a virtualized network function, or it can be a hardware device installed in a server rack.

[0003] BRIEF DESCRIPTION OF THE DRAWINGS

[0004] Aspects of the present disclosure may be better understood by reference to the following drawings.

[0005] Figure 1 An example system for providing network security and performance services is depicted.

[0006] Figure 2 A flow diagram with example operations for recording an original source Internet Protocol address is depicted.

[0007] Figure 3 A flow diagram with example operations for enforcing security using original source IP addresses is depicted.

[0008] Figure 4 An example computer system with a firewall with enhanced data logging and security services is depicted.

[0009] describe

[0010] The following description includes example systems, methods, techniques, and program flows that embody various aspects of the present disclosure. However, it should be understood that the present disclosure can be practiced without these specific details. For example, the present disclosure relates to enhanced security provided by a firewall in an illustrative example. Various aspects of the present disclosure may also be applied to other network devices such as gateways, routers, or network analyzers. In other examples, well-known instruction instances, protocols, structures, and techniques have not yet been shown in detail so as not to obscure the description.

[0011] Overview

[0012] Some network architectures include peripheral or edge devices, such as load balancers or application gateways, that perform network address translation or otherwise modify data in Internet Protocol packet headers, such as source addresses. Modification of the source address prevents downstream devices from knowing the true or original source address from which the traffic originates. This creates a security problem because downstream devices cannot effectively apply security policies and rules to the network traffic. To address this problem, peripheral devices can insert the original source address in the X-Forwarded-For (XFF) field of the packet header. Firewalls and related security services can be programmed to record the original source address in the XFF field in addition to other packet information and consider the original source address during security analysis. For example, services such as dynamic policy groups, threat intelligence, policy enforcement, logging and application management, and external dynamic lists can be configured to use or even prefer the address in the XFF field instead of the address indicated in the standard source address header field. Using the original source address in the XFF field, the service can determine additional characteristics about the traffic, such as geographic location or associated user accounts, and use these characteristics to identify applicable rules or policies.

[0013] Example explanation

[0014] Figure 1 An example system for providing network security and performance services is depicted. Figure 1 Included are client 1 101, client 2 102, and load balancer 106, which are communicatively coupled via network 103, which may be a wide area network such as the Internet or a local area network. Load balancer 106 distributes network traffic data to firewall 107 and one or more other firewalls or devices (not depicted). Figure 1 Also included is an application server 109 that receives network traffic from client 1 101 and client 2 102 after traversing load balancer 106 and firewall 107. Firewall 107 records data related to the network traffic in network traffic data 108 ("traffic data 108"), which can be a database or other local or remote storage device. Multiple security and network management services access and process data from traffic data 108, including dynamic address group service 110, threat intelligence service 111, policy enforcement service 112, logging and application monitoring service 113, and external dynamic list service 114. Although these services are depicted as separate from firewall 107, these services can each be a software process that executes as part of firewall 107, executes on the same hypervisor as firewall 107 in a virtual machine, and so on.

[0015] In phase A, the load balancer 106 processes a packet 1 104 from the client 1 101 and a packet 2 105 from the client 2 102. The packets 1 104 and 2 105 are packets that comply with the Internet Protocol (IP) suite of communication protocols. The packets 1 104 and 2 105 include a header portion that indicates information related to an IP version, a source IP address, a destination IP address, a survival time, etc. Figure 1 As shown in FIG. 1 , when packets 1 104 and 2 105 are transmitted from clients 1 101 and 2 102 to load balancer 106, the header of packet 1 104 indicates the address of client 1 101 (192.0.2.1) as the source address, and the header of packet 2 105 indicates the address of client 2 102 (192.0.2.2) as the source address. As part of processing the packets, load balancer 106 performs network address translation (NAT), which modifies the source addresses indicated in the headers of packets 1 104 and 2 105. Figure 1 As shown in FIG, after packets 1 104 and 2 105 have been processed by load balancer 106, both packets indicate the address of load balancer 106 (203.0.113.1) as the source address in the header. The source address of load balancer 106 is then used to route the packets within the local network including firewall 107 and application server 109. Because the source address is replaced, these devices behind load balancer 106 lack visibility into the true source or device (i.e., client 1 101 and client 2 102) that originally transmitted the packets over network 103. In addition to Figure 1 In addition to the architecture depicted in , other network architectures can suffer from the same problem of lack of internal visibility or masking of the true source IP address. For example, many inline network devices other than load balancers, such as application gateways, proxies, web servers, or edge routers, can similarly perform NAT and modify the source address of IP packets.

[0016] To avoid losing the original source address information, load balancer 106 inserts the source IP address of the originator of the packet into the XFF field of the IP packet header. After processing by load balancer 106, packet 1 104 includes the IP address of client 1 101 in the XFF field of the header, and packet 2 105 similarly includes the IP address of client 2 102 in the XFF field. As a result, subsequent devices such as firewall 107 that receive packets 1 104 and 2 105 can access the XFF field of the header to identify the true source of the packet.

[0017] In stage B, firewall 107 processes packet 1 104 and packet 2 105 modified by load balancer 106. Firewall 107 can be a software or hardware-based firewall. For example, firewall 107 can be executed within a virtual machine, a container environment, or a cloud infrastructure, or firewall 107 can be a hardware device. Firewall 107 includes one or more agents or processes as part of a packet inspection engine, which records network traffic data to traffic data 108. In some network architectures, firewall 107 can record the source address and other data indicated in the packet header, but may not record data from the XFF field because the XFF field may not contain data or the source address field may indicate the real source address. However, when firewall 107 is located behind a device such as load balancer 106 that masks the original source address, firewall 107 also records the IP address indicated in the XFF field of the header. Firewall 107 can determine that the data in the XFF field should be recorded based on parameters in a configuration file. For example, when firewall 107 is initialized, firewall 107 may read a boot configuration file that indicates parameters for its deployment, including whether to log IP addresses from the XFF field. Figure 1 As shown in , the firewall 107 records the source address corresponding to the load balancer 106 and the XFF field addresses corresponding to the clients 1 101 and 2 102 in the flow data 108. The format and structure of the data in the flow data 108 can be changed. For example, the flow data 108 can be a relational database or a non-relational database. In some implementations, the flow data 108 may not include a separate field for the XFF data. Instead, the firewall 107 may record the addresses of the clients 1 101 and 2 102 together with the address of the load balancer 106 in the source address field, or the firewall 107 may not record the address of the load balancer 106, but only the client addresses in the source address field.

[0018] In addition to logging packets 1 104 and 2 105, firewall 107 may also perform additional processing on the packets. Firewall 107 may perform general firewall functions of determining, based on security rules, whether packets should be allowed to application server 109 or blocked. As described below, these rules may be based not only on the source address field, but also on the original address indicated in the XFF field and other information determined based on the original address. In phase C, security and performance services monitor and retrieve data from traffic data 108. As data is added to traffic data 108, services may subscribe to receive updates from an agent or process for traffic data 108, or may periodically retrieve new entries from traffic data 108 for analysis. Typically, these services perform analysis based on the source address in the packet header; however, such analysis may be difficult in scenarios such as Figure 1The network architecture shown in , which masks the real or original source address, is severely limited because the address in the source address field will continue to be the same address of the load balancer 106. Therefore, the services are reconfigured to consider the address indicated in the source address field and the address indicated in the XFF field. In general, based on the real or original source address, the service can implement policies for the original source address, have greater visibility into the client accessing the application server 109, selectively implement threat prevention measures, or find out additional information about the client such as its geographic location.

[0019] The dynamic address group service 110 allows the creation of policies that automatically adapt to changes in a dynamic environment - the addition, move or deletion of servers or devices. By using the original source address in the XFF field, the dynamic address group service 110 can add and remove devices such as client 1 101 and client 2 102 from the dynamic policy group. For example, client 1 101 can be a virtual machine that can be instantiated and shut down as needed in response to network needs. When client 1 101 is turned on and off, the dynamic address group service 110 can detect network traffic from client 1 101 and update the membership of the virtual machine group to add client 1 101. In addition, the dynamic address group service 110 can determine whether any policies applied to the virtual machine group should also be applied to traffic from client 1 101. The dynamic address group service 110 can also compile a repository of device characteristics that can be queried using the original source address. Device characteristics can include information such as device type, user-applied labels ("production server", "storage controller", "image storage", etc.), geographic location, etc. Dynamic groups can be created based on these characteristics. When devices with matching characteristics are found, they are automatically added to the defined group.

[0020] Threat intelligence service 111 can utilize the original source address from the XFF field to provide enhanced analysis and identification of threats to application server 109 or the network. Masking of client IP addresses by load balancer 106 prevents threat intelligence service 111 from identifying patterns in network traffic because all network traffic appears to come from load balancer 106. By using the XFF field with the original source address, threat intelligence service 111 can identify patterns or related events based on the original source address. For example, threat intelligence service 111 can identify that a malicious file has been uploaded multiple times from the same IP address, even though the user account that uploaded the file may change. Before the ability to derive the true source address from the XFF field, threat intelligence service 111 could only determine the descendants of the malicious file up to load balancer 106, which is of little value for threat intelligence purposes. By obtaining the original source address from traffic data 108, threat intelligence service 111 can analyze and manage threats based on the original source address and additional information derived from the original source address, such as usage behavior and geographic location over time.

[0021] The policy enforcement service 112 can utilize the original source address from the XFF field to enhance the type of policies that can be created and the enforcement of the policies. Since the original source address is available, administrators can create and enforce policies for that address. For example, if the client of the application server 109 has a known IP address or range of IP addresses, policies can be created to allow traffic from these IP addresses. In addition, having the original source address improves visibility into the characteristics and types of network traffic. For example, policies can be created for characteristics such as the country of origin of the traffic, the user account associated with the original source address, and the like.

[0022] The logging and application monitoring service 113 allows an administrator to view metrics and logs of network traffic. The logging and application monitoring service 113 processes the traffic data 108, records the processed data to files in permanent storage, and displays the data through various user interfaces (such as tables, graphs, etc.). The logging and application monitoring service 113 can use the original source address from the XFF field in the traffic data 108 during processing and display information related to external devices (such as client 1 101 and client 2 102) accessing the application server 109. In addition, the logging and application monitoring service 113 can derive additional information from the original source address, which can be used to provide greater visibility into the network traffic. For example, the logging and application monitoring service 113 can derive user account information, geographic location, device type, Internet service provider, etc., and can provide useful information to the administrator, such as how much network traffic comes from a specific geographic location.

[0023] The external dynamic list service 114 allows blocking of IP addresses or geographic areas based on subscriptions to external or third-party lists of known security threats. For example, a security expert or company may publish a list of IP addresses that are known to pose a security risk, such as the IP addresses of devices that have previously distributed malware. The external dynamic list service 114 can automatically block traffic based on these external lists by comparing the original source address from the XFF field with addresses on these known security threat lists.

[0024] Figure 2 A flow diagram with example operations for recording an original source IP address is depicted. Figure 2 Firewalls are called execution and Figure 1 Consistent operation, although the nomenclature of program code or hardware may vary between implementations.

[0025] The firewall receives a packet from an inline network device (202). The firewall may receive the packet from a load balancer, an application gateway, an edge router, or other edge network device. In some implementations, the packet may be received from a cloud service or process. The packet may originate from a client connected via the Internet or other wide area network, or from a client within a local area network. After receiving the packet, the firewall begins processing the packet.

[0026] The firewall records the address in the source address field and other packet header information (208). The firewall records specified data from the packet header. For example, the firewall may record the packet size, source address, destination address, etc.

[0027] The firewall determines whether the XFF field should be recorded (204). In some instances, it may be known that the firewall will be placed downstream of a device such as a load balancer that will perform NAT or otherwise modify the source address field in the packet header. In these instances, the firewall may be configured at startup, or modified / programmed during operation to record data from the XFF field. In some implementations, the firewall may monitor the source address indicated in the source address field, and if the source address is the same for a threshold number of packets, the firewall may determine that it is downstream of a network device that performs the modification of the source address field and begin recording the address or data in the XFF field. In other implementations, the firewall may analyze the data in the XFF field, determine whether an IP address is stored in the field, and record the indicated IP address. In other implementations, the firewall may determine to record the XFF field data based on detecting that the XFF field data is downstream of an inline or edge network device (such as a load balancer, gateway, proxy, or edge router). The firewall may determine its location in the network based on analyzing a network diagram or topology, pinging connected devices using a simple network management protocol (SNMP), and the like.

[0028] If the firewall determines that the XFF field should be recorded, the firewall records the original source IP address indicated in the XFF field (206). The firewall writes the original source address from the XFF field into an entry in the network traffic database. The XFF field address can be marked as a source address other than the address indicated in the XFF field, the original source address, the local source address, or the source address field.

[0029] After determining that the XFF field should not be recorded or after recording the XFF field, the firewall processes the packet according to the security rules and policies (210). The firewall may receive instructions or commands from other services indicating how to manage the packet. For example, Figure 3 As described in , another service can analyze the original source address and header information to identify any relevant policies or security threats associated with the address. The service can then send a command to the firewall indicating whether traffic from the address should be blocked or allowed.

[0030] Figure 3 A flow diagram with example operations for enforcing security using original source IP addresses is depicted. Figure 3 Security services are referred to as performing operations, although the nomenclature of program code or hardware may vary depending on the implementation.

[0031] A security service ("service") retrieves network traffic data (302). The service may be any security or network management service that regulates and monitors network traffic. For example, the service may be Figure 1 Any of the services described in . The service can retrieve network flow data by querying a database of network flow data, receiving a new batch of network flow events from an agent, etc.

[0032] The service determines whether an IP address is indicated in the XFF field (304). The service analyzes the network traffic data to determine whether the data includes a field for XFF data. If there is a field for XFF data, the service determines whether the field includes an IP address. For example, the service can parse the data in the XFF field to determine whether the data matches the structure of the IP address. In some instances, the XFF field may not be populated with an IP address, but may contain other information, such as a user account name or a session identifier. In these cases, the service determines that XFF does not include an IP address. In some implementations, the service includes a configurable setting that controls whether the service reads data from the XFF field.

[0033] If no IP address is indicated in the XFF field, the service implements security based on typical header information (306). Because the XFF field is not populated with an IP address, the service assumes that the IP address in the Source Address header field is the address of the device from which the network traffic originated. The service implements security based on the source address and other recorded information (such as destination address, packet size, number of packets, port number, protocol, etc.). Implementing security can include tasks such as identifying applicable policies or rules, recording and analyzing traffic characteristics and behavior, associating IP addresses with user accounts, etc. The source address is often used in each of these tasks; however, the source address may not be the true originating address of the network traffic. For example, this may occur in situations where an inline device (such as a load balancer) has modified the source address field, such as Figure 1 Because the true origin is unknown, the service may not be able to apply the correct policies or rules to protect the network for traffic identified in the network traffic data. As a result, unsecured network traffic (such as network traffic from a restricted geographic area) may pass through the firewall and gain access to secure resources.

[0034] If the service determines that an IP address is indicated in the XFF field, the service implements security based on the original source IP address indicated in the XFF field (308). Since the XFF field is populated with an IP address, the service assumes that the IP address in the XFF field is the original address of the device from which the network traffic originates. This is in contrast to the operation at box 306, which assumes that the standard source address header field contains the original IP address. The service implements security based on the XFF address and other network traffic data, such as the address listed in the source address field, the destination address, the packet size, the number of packets, the port number, the protocol, etc. Because the real or original source address is known, the service can more effectively identify relevant policies or rules and provide visibility into the characteristics and types of network traffic. For example, the service can record the original source address and display how much traffic originates from the address, and the service can use the original source address to search the policy database to retrieve relevant policies. In addition, the service can derive other information from the original source address, such as geographic location or device type, which further enhances the ability of the service to identify relevant policies and manage network traffic. For example, the service can use the geographic location derived from the original source address to identify the policy of the corresponding geographic area.

[0035] The service processes the network traffic (310) in accordance with the determined security rules and policies. Based on the policies or rules identified in box 306 or box 308, the service can block traffic, allow traffic, throttle traffic, etc. For example, a policy may indicate that traffic from a specific IP address range should be kept below 10Mb / s bandwidth, so the service may begin throttling user sessions associated with the original source address. To manage network traffic, the service can control or send commands to firewalls in the network that receive the recorded data. The service can also perform additional processing for network management or monitoring tasks. For example, the service can implement dynamic address groups and update group membership to include devices based on the original source address. This can include updating a user interface to display metrics associated with the group.

[0036] Variants

[0037] Figure 1 Annotated with a series of letters AC. These letters represent the various stages of operation. Although these stages are ordered for this example, each stage illustrates an example to help understand the present disclosure and should not be used to limit the claims. The subject matter falling within the scope of the claims may vary with respect to the order and some operations.

[0038] The above description refers to firewall devices as performing logging of traffic data and enforcing network security. However, in some implementations, software or hardware of other devices may be responsible for logging traffic data or enforcing security. For example, Figure 1 The application server 109 may include software for logging network traffic data. In addition, the application server 109 may implement security policies based on other criteria, such as user account information associated with a specified IP address.

[0039] Examples generally refer to "a service" or "multiple services". The term service is a construct used to refer to the implementation of the functionality of dynamic policy groups, threat intelligence, policy enforcement, logging and application monitoring, and external dynamic lists. This construction is used because many implementations are possible. A service can be code that runs on: a firewall or other network device, a virtual machine or container, one or more specific components of a machine (e.g., a specific circuit card encapsulated in a housing with other circuit cards / boards), a machine executable program, firmware, a circuit card with a circuit system configured and programmed with firmware for recording network traffic data, etc. This term is used to efficiently explain the content of the present disclosure. The service may also be referred to as a process, an application, a script, a component, a device, a firewall, an enhanced firewall, or a next-generation firewall. Although the examples relate to operations performed by a service, different entities may perform different operations.

[0040] The flowchart is provided to aid understanding of the explanation and is not used to limit the scope of the claims. The flowchart depicts example operations that may vary within the scope of the claims. Additional operations may be performed; fewer operations may be performed; the operations may be performed in parallel; and the operations may be performed in a different order. For example, Figure 2 The operations depicted in blocks 204 and 208 may be performed in parallel or simultaneously. Figure 3 , block 302 may not be necessary. It will be understood that each block of the flowchart illustration and / or block diagram and the combination of blocks in the flowchart illustration and / or block diagram can be implemented by program code. The program code can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable machine or device.

[0041] As will be appreciated, aspects of the present disclosure may be embodied as systems, methods, or program codes / instructions stored in one or more machine-readable media. Thus, aspects may take the form of hardware, software (including firmware, resident software, microcode, etc.), or a combination of software and hardware aspects, which are generally referred to herein as "circuits," "modules," or "systems." Functionality presented as individual modules / units in the example illustrations may be organized differently depending on any of the platform (operating system and / or hardware), application ecosystem, interface, programmer preferences, programming language, administrator preferences, etc.

[0042] Any combination of one or more machine-readable media may be utilized. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable storage medium may be, for example, but not limited to, a system, apparatus, or device that employs any one or a combination of electronic, magnetic, optical, electromagnetic, infrared, or semiconductor technologies to store program code. More specific examples (a non-exhaustive list) of machine-readable storage media would include the following: a portable computer floppy disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the context of this document, a machine-readable storage medium may be any tangible medium that is capable of containing or storing a program used by or in conjunction with an instruction execution system, apparatus, controller, or device. A machine-readable storage medium is not a machine-readable signal medium.

[0043] A machine-readable signal medium may include a propagated data signal having a machine-readable program code embodied therein (e.g., in baseband or as part of a carrier wave). Such propagated signals may take any of a variety of forms, including but not limited to electromagnetic, optical, or any suitable combination thereof. A machine-readable signal medium may be any machine-readable medium that is not a machine-readable storage medium and that can communicate, propagate, or transport a program for use by or in conjunction with an instruction execution system, device, or apparatus.

[0044] Program code embodied on a machine-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radio frequency, etc., or any suitable combination of the foregoing.

[0045] Computer program code for carrying out operations of aspects of the present disclosure may be written in any combination of one or more programming languages, including object oriented programming languages ​​such as Programming languages, such as C++, dynamic programming languages, such as Python, scripting languages, such as the Perl programming language or the PowerShell scripting language, and traditional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on a stand-alone machine, may execute in a distributed fashion across multiple machines, and may execute on one machine while providing results and / or accepting input on another machine.

[0046] The program code / instructions may also be stored in a machine-readable medium which may direct the machine to operate in a specific manner such that the instructions stored in the machine-readable medium produce an article of manufacture including instructions for implementing the functions / actions specified in the flowchart and / or one or more block diagram blocks.

[0047] Figure 4 An example computer system with a firewall having enhanced data logging and security services is depicted. The computer system includes a processor unit 401 (which may include multiple processors, multiple cores, multiple nodes, and / or implement multithreading, etc.). The computer system includes a memory 407. The memory 407 may be a system memory (e.g., one or more of a cache, SRAM, DRAM, zero-capacitor RAM, two-transistor RAM, eDRAM, EDO-RAM, DDR-RAM, EEPROM, NRAM, RRAM, SONOS, PRAM, etc.) or any one or more possible implementations of the machine-readable media described above. The computer system also includes a bus 403 (e.g., PCI, ISA, PCI Express, bus, Bus, NuBus, etc.) and network interface 405 (for example, Fibre Channel interface, Ethernet interface, Internet Small Computer System interface, SONET interface, wireless interface, etc.). The system also includes a firewall 411 with enhanced data recording and a security service 413. When the source address field in the packet header has been masked or modified by an inline network device, the firewall 411 with enhanced data recording can optionally record the original source address from the XFF field. The security service 413 utilizes the recorded XFF data to implement security based on the original source address. The security service 413 can be one or more of the services previously described, such as dynamic address groups, threat intelligence, policy enforcement, logging and application monitoring, and external dynamic lists. Any of the previously described functions can be partially (or fully) implemented in hardware and / or on the processor unit 401. For example, the function can be implemented with an integrated circuit that varies depending on the application, logic implemented in the processor unit 401, a coprocessor on a peripheral device or card, etc. In addition, the implementation may include Figure 4 The processor unit 401 and the network interface 405 are coupled to the bus 403. Although illustrated as being coupled to the bus 403, the memory 407 may be coupled to the processor unit 401.

[0048] Although various aspects of the present disclosure are described with reference to various implementations and utilizations, it will be understood that these aspects are illustrative and the scope of the claims is not limited thereto. In general, the techniques for recording and enforcing security policies based on the original source addresses stored in the XFF fields described herein can be implemented using facilities consistent with any one or more hardware systems. Many variations, modifications, additions, and improvements are possible.

[0049] Multiple instances may be provided for components, operations or structures described herein as single instances. Finally, the boundaries between various components, operations and data storage are arbitrary to some extent, and specific operations are explained in the context of specific illustrative configurations. Other allocations of functions are contemplated and may fall within the scope of the present invention. In general, the structures and functions presented as separate components in the example configurations may be implemented as combined structures or components. Similarly, the structures and functions presented as separate components may also be implemented as separate components. These and other variations, modifications, additions and improvements may fall within the scope of the present invention.

[0050] For efficiency and ease of explanation, this description uses shorthand terms related to cloud technology. When referring to the "cloud", the description refers to the resources of the cloud service provider. For example, the cloud can cover the cloud service provider's servers, virtual machines, and storage devices. The terms "cloud destination" and "cloud source" refer to an entity with a network address that can be used as an endpoint for a network connection. The entity can be a physical device (such as a server) or can be a virtual entity (such as a virtual server or a virtual storage device). In more general terms, customer-accessible cloud service provider resources are resources owned / managed by a cloud service provider entity that are accessible through a network connection. Typically, this access is based on an application programming interface or software development kit provided by the cloud service provider.

[0051] This description uses the term "data stream" to refer to a unidirectional flow of data that flows over a data connection between two entities in a session. An entity in a session may be an interface, a service, etc. The size and format of the elements of a data stream will vary depending on the entity communicating with the session. Although the data stream elements will be segmented / divided according to the protocol supporting the session, the entities may process the data from the perspective of the operating system, and the data stream elements may be blocks of data from the perspective of the operating system. A data stream is a "stream" because a data set (e.g., a volume or directory) is serialized at the source for streaming to a destination. The serialization of data stream elements allows for the reconstruction of the data set. A data stream is characterized as "flowing" over a data connection because the data stream elements are continuously transmitted from the source until completed or interrupted. The data connection through which a data stream flows is a logical structure that represents the endpoints that define the data connection. An endpoint may be represented by a logical data structure that may be referred to as an interface. A session is an abstraction of one or more connections. For example, a session may be a data connection and a management connection. A management connection is a connection that carries management messages used to change the state of a service associated with a session.

[0052] Unless specifically stated otherwise, the phrase "at least one of" used before a list with the conjunction "and" should not be considered an exclusive list and should not be interpreted as a list from a category with one item in each category. A clause reciting "at least one of A, B, and C" may be breached by only one of the listed items, a plurality of the listed items, and one or more of the items in the list or another item not listed.

Claims

1. A method for implementing a security policy, comprising: determining the presence of a first source address in a first header field of a packet received from a network device and the presence of a second source address in a second header field, wherein the second header field is an X-Forward-For field; recording, by the firewall, header information in the packet in a network traffic database, wherein the header information includes the first source address in the first header field and the second source address in the second header field, wherein the first source address corresponds to the network device and the second source address corresponds to a client device that transmitted the packet before the network device; Based on the firewall determining whether the first source address is the same for a threshold number of packets, the firewall determines whether it is downstream from the network device, and if so, the firewall records the second source address in the X-Forward-For field; querying a repository using the second source address to obtain characteristics of the client device; determining that the client device belongs to a group of devices controlled by a first policy based on the firewall determining that it is downstream of the network device and recording the second source address and characteristics of the client device; as well as Based on determining that the client device belongs to the group of devices controlled by the first policy, the first policy is applied to the packets and network traffic from the client device.

2. The method according to claim 1, characterized in that Also included is determining a geographic location of the client device based on the second source address indicated in the header information, wherein at least a first one of the characteristics of the client device is the geographic location.

3. The method according to claim 1, characterized in that Also included is determining that the second header field should be recorded in the network traffic database based at least in part on determining that the network device is at least one of a load balancer, a gateway, a proxy, or an edge router.

4. The method according to claim 1, characterized in that Also included is determining, by the firewall based at least in part on a value of a configuration parameter, that the second header field should be logged.

5. The method according to claim 1, characterized in that Applying the first policy to the packets and network traffic from the client device includes determining that the packets and the network traffic should be blocked, allowed, throttled, and logged.

6. The method according to claim 1, characterized in that The first header field is a source address field.

7. A non-transitory, computer-readable medium having stored thereon instructions, the instructions being executed by a computing device to perform the method of any one of claims 1-6.

8. A device for implementing a security policy, comprising: processor; as well as A computer readable medium having instructions stored thereon, the instructions being executed by a processor to cause the apparatus to perform the method of any one of claims 1-6.