🚀 Feature: Approximate Location Recognizes Local IPv6 as LAN, Internal Network #87

Closed
opened 2025-07-08 08:39:22 -04:00 by AtHeartEngineer · 0 comments

Originally created by @LucasJanin on 6/7/2025

Feature description

Currently, Pocket-ID recognizes only local IPv4 addresses as part of a "LAN, internal network" in the Approximate Location. Local IPv6 addresses are always treated as external traffic.

Proposal:
Introduce an environment variable ⁠LOCAL_IPV6_RANGES that contains a list of IPv6 ranges used in the local network. Pocket-ID will utilize this list to determine if an IP address is part of the "LAN, internal network." If an IP address is not included in this list, Pocket-ID will use MAXMIND to find the approximate location.

Example Variable:
⁠LOCAL_IPV6_RANGES=2001:0db8:abcd:000::/56,2001:0db8:abcd:001::/56

Pitch

This option will quickly determine whether the traffic is local. Distinguishing between local and external visitors is crucial, as external traffic can pose a greater threat than trusted local network traffic. By accurately identifying local traffic, we can enhance security.

*Originally created by @LucasJanin on 6/7/2025* ### Feature description Currently, Pocket-ID recognizes only local IPv4 addresses as part of a "LAN, internal network" in the Approximate Location. Local IPv6 addresses are always treated as external traffic. Proposal: Introduce an environment variable ⁠LOCAL_IPV6_RANGES that contains a list of IPv6 ranges used in the local network. Pocket-ID will utilize this list to determine if an IP address is part of the "LAN, internal network." If an IP address is not included in this list, Pocket-ID will use MAXMIND to find the approximate location. Example Variable: ⁠LOCAL_IPV6_RANGES=2001:0db8:abcd:000::/56,2001:0db8:abcd:001::/56 ### Pitch This option will quickly determine whether the traffic is local. Distinguishing between local and external visitors is crucial, as external traffic can pose a greater threat than trusted local network traffic. By accurately identifying local traffic, we can enhance security.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pocket-id#87