Geolocation objects (original) (raw)

Geolocation objects in the firewall policy rules let you filter external IPv4 and external IPv6 traffic based on specific geographic locations or regions.

You can apply rules with geolocation objects to ingress and egress traffic. Based on the direction of the traffic, the IP addresses associated with the country codes are matched against the source or destination of the traffic.

Specifications

The following firewall specifications apply to geolocation objects:

Geolocation objects matching for internal IP addresses

Geolocation objects are designed to apply to external IP addresses. Geolocation objects don't apply to the private internal IP addresses shown in the following table:

Address type Ranges and specifications
Internal IPv4 (Private) All RFC-defined private IPv4 address ranges (including RFC 1918 and RFC 6598) and link-local addresses (169.254.0.0/16).
Internal IPv6 (Private) Unique Local Addresses (ULA) (fc00::/7) and link-local addresses (fe80::/10).

However, geolocation objects firewall policy rules do apply to internal IP addresses if they are privately used public IP addresses. Even though these addresses are internal to the VPC network, they are public addresses and are matched against geolocation objects. To prevent communication issues when you use privately used public IP addresses, create higher priority firewall policy rules that allow traffic to or from the privately used public IP address ranges.

Use geolocation objects with other firewall policy rule filters

You can use geolocation objects along with other source or destination filters. Depending on the rule direction, the firewall policy rule is applied to the incoming or outgoing traffic that matches the union of all the specified filters.

For information about how geolocation objects work with other source filters in the ingress rules, see Sources for ingress rules.

For information about how geolocation objects work with other destination filters in the egress rules, see Destinations for egress rules.

What's next