tobychui / zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!
https://zoraxy.aroz.org
GNU Affero General Public License v3.0
3.09k stars 187 forks source link

[ENHANCEMENTS]Show LAN IP as "LAN" and not some other countries #131

Closed haldi4803 closed 7 months ago

haldi4803 commented 7 months ago

Is your feature request related to a problem? Please describe. It seems like the LAN IP is shown as Australia[AU]. Ist that just the first pick? Or does it randomly Assign when it's unsure?

Describe the solution you'd like A Filter that filters out LAN IP's like 192.168, 172.16 -172.31, 10. an marks them as LAN before doing a Country Search Lookup.

Additional context image

Famku commented 7 months ago

maybe cloudflare DNS [1.1.1.1] - located in Australia

daniel-l commented 7 months ago

Not using Cloudfare here - same result. I'm using Zoraxy locally only, there's no access from outside my LAN. IPs in the range 192.168.0.0/24 get listed as australian origin.

tobychui commented 7 months ago

I didn't expect people using it as an internal service proxy so I didn't bother to check for if the incoming request is from LAN while loading the statistics. But yeah, it should be an easy fix 👍🏻

haldi4803 commented 7 months ago

There are a lot of services that need proper SSL encryption. Even if only used inside the LAN for oneself :)

daniel-l commented 7 months ago

There are a lot of services that need proper SSL encryption. Even if only used inside the LAN for oneself :)

I'm not even using it for/with SSL; I just do not want to remember IPs and ports and do not want to maintain some dashboard with links to my services ^^