Jump to content

How filter external ip only for French ip


Recommended Posts

Posted

Hi , i see on the network tab , i can filter ip with whitelist , but i don't know what range of ip to put in to only accept french ip ?

Thanks by advance for your answer

pwhodges
Posted

Countries do not have a single IP range, or even a small number of ranges.  To give an idea of what this involves, see this list of IPv4 (only) ranges assigned within France:

https://lite.ip2location.com/france-ip-address-ranges

It may be possible with some reverse proxy software to get an add-in for "geolocation" which would enable you to do this checking in the proxy.  For instance, Caddy has this:

https://caddyserver.com/docs/modules/http.matchers.maxmind_geolocation

which uses a free geolocation database which you download; I presume something similar is available for nginx.  Note that free databases may be less accurate in detail than paid ones, and that you might be well advised to download updates of the database occasionally (the free one used by that Caddy module is updated weekly).  You may need to check whether any particular chosen solution includes IPv6 (as far as I can see the Caddy one does).

Paul

  • Agree 1
Posted

If you have a decent firewall such as SophosXG or pfSense, you can also do geoblocking at a rule level.  

This is not something which emby can do - nor would I expect it to, IP filtering should not be done at an application level.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...