Skip to content

geo blocking by country blocks local IP #597

@gdechene

Description

@gdechene

Describe the problem

Hello,
I selfhost netbird and I use the reverse proxy. I configured the urls to be accessible only in France. The issue is when I try to connect to service at home, I have the IP 192.168.1.254, which is not France, and I receive a Forbidden response.
Here the logs
netbird-proxy] 2026-03-26T05:26:19.895Z DEBG proxy/internal/auth/middleware.go:100: checking authentication for host: music.netbird.mydomain.fr, exists: true
[netbird-proxy] 2026-03-26T05:26:19.896Z DEBG proxy/internal/auth/middleware.go:201: IP restriction: country_restricted for 192.168.1.254:60856

To Reproduce

Steps to reproduce the behavior:

  1. Configure geo blocking on a service
  2. Allow only your country
  3. Connect to the service at home
  4. See error

Expected behavior

I expect to access my service when I am at home.
The existing geoblocking middleware in traefik plugins allows to specify ip and ip range to bypass the geo blocking restrictions, it should be great to have the same with an env variable for example?
I can't apply geoblocking by country if I can't access services at home.

Are you using NetBird Cloud?

Self-host NetBird's control plane.

NetBird version

0.67.0

NetBird status -d output:

If applicable, add the `netbird status -d' command output.

Screenshots

Screenshot_20260326_063652_Firefox.jpg

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions