Firewall rule for blocking all countries, except 2

We have a simple app that will only be used in two countries for now (US and Phillipines), I setup a rule to block anything not equal to them but they block all traffic. Is there an easy way to configure our firewall rule to only allow access from two countries through?

The logic should be and for that to work.

It would be easier to use the “is not in list” feature.

not ip.geoip.country in {"US" "PH"}

1 Like

Ah thanks for catching that! I tried your syntax but got an error:

Filter parsing error (1:18): ip.geoip.country not in {"US","PH"} ^^^^^^^^^^^^^^^^^^ expected ComparisonOp
1 Like

There shouldn’t be a comma between countries.

The comma was from me experimenting, it also give that same error for

not ip.geoip.country in {"US" "PH"}

My memory is not what it should be. Not was in the wrong place. Edited my post.

Also, double check the Country codes!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.