2.5.0: Cloudflare services limited to countries
A service published through Cloudflare can now be limited to the countries its visitors may come from. Enter two-letter codes such as US or US CA GB in Only from these countries, in the service's Cloudflare section. Everyone else is stopped at Cloudflare and sees its "Sorry, you have been blocked" page.
- One Firewall rule per zone. Apply keeps one custom rule in each zone, covering every limited service in that zone. The rule is added after the zone's own rules, and those rules are never changed. On the Free plan, which allows five custom rules per zone, it uses one no matter how many services you limit.
- The token needs Zone WAF: Edit on the zones of the services you limit. Test the token checks every zone and names those without it. Tokens without it keep working for everything else.
- Tick Through Cloudflare only as well. Otherwise someone reaching the node's own ports directly isn't checked. The form warns about this.
- Paths and wildcards are respected. A service on
/admincan allow different countries than one on/of the same host. - Disconnect removes the rule together with the tunnel and the DNS records.
See Limiting a service to countries in the guide.
Also in this release: acme.sh 3.1.7 and acme2certifier 0.47.1.