How to Block Traffic Based Upon Countries

How to Block Traffic Based Upon Countries

64500
Created On 09/25/18 19:38 PM - Last Updated 04/20/20 23:58 PM


Resolution

Details

It is possible to block the traffic destined to or sourced from an entire country in the Palo Alto Networks firewall. This works based on the fact that the PAN-OS performs a Public IP Address to region mapping by probing an internal database. This information is updated weekly through content updates and the firewall maintains this in its database.

 

Steps

  1. Go to Policies > Security > Add > in the Source & Destination Fields > Click on Add
    There are three options to specify: address, address group and regions.
  2. As shown in the example, select Regions:
    2.JPG
  3. Now it is possible to see all the countries in the world, and their corresponding region codes as shown below:
    3.JPG
  4. Select the country in which to block, the example below shows China (CN):
    4.JPG
  5. Users can also specify specific Public IP address from the country by clicking on the Add button. The country will now be called in the destination as shown below:
    5.JPG
  6. The final configured security policy will look like the screenshot shown below. The configuration will block all the traffic sourced or destined to that country based upon where the region is called in the Policy, Source or Destination.
    6.JPG
  7. Regions can also be created under Object > Regions, as shown below:
    1.JPG
  8. New regions can also be created by using the Geo Location feature which can be used in the creation of Traffic and Threat maps. This can be done by specifying the exact coordinates of the region
    7.JPG

Note: Some regions such as EU regions does not fully contain all the EU countries, these countries have to be added in conjunction with the regions.

 

See Also

Region Object Not Working in Security Policy

 

 

owner: dantony



Attachments
Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClbHCAS&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Attachments
Choose Language