Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.15k stars 557 forks source link

MeshCentral and IP Geolocation #5190

Open devwizard038 opened 1 year ago

devwizard038 commented 1 year ago

Hello, Ylian. I found something really interesting about your project. I found that there's ipgeolocation attribute in settings but it is not working properly, I think. I think we can implement it by using APIs like ipregistry and ip2location. I already did it but it is not working properly on vps. I think we can work together on this part.

SomeGuru commented 1 year ago

@wizarddev038, @Ylianst had stated some time back that the EU Government is the reason he has not continued development on this code, because it invades privacy elements for the European parts of the world. I don't know that he will want to develop this code much more than it already is... If you really need it then I would get ahold of @ryanblenis to see if he can do a plugin that might be able to give you a map or similar function through his plugins project.

-SomeGuru

devwizard038 commented 1 year ago

All right. I was curious if I could contribute to meshcentral project by any chance. It would be grateful if you add geolocation to meshcentral. Thanks

silversword411 commented 1 year ago

I could contribute to meshcentral project by any chance

Looks like you're already re-creating/rebranding https://github.com/wizarddev038/Remote-Control-System

When you get it working in yours, a backport PR to MeshCentral would be appreciated!

devwizard038 commented 1 year ago

How can I do it? I'd be grateful if you tell me how-to.

silversword411 commented 1 year ago

Sorry, there's a couple ways of interpreting what you're asking.

Do you have the Geolocation features fixes in your repo? That would be the first step to accomplish. Let me know when you have that working.

After that, I can definitely work with you on how to back port those fixes to MeshCentral.

devwizard038 commented 1 year ago

image This is actually what I did. I changed some codebase on my own so it'd be difficult to backport. I'll clone the project again and integrate my functions into it and push it here, if you want.

JSuenram commented 1 year ago

image This is actually what I did. I changed some codebase on my own so it'd be difficult to backport. I'll clone the project again and integrate my functions into it and push it here, if you want.

Would be nice. Should be optional!

devwizard038 commented 1 year ago

Thought it'd be better to show geolocation on our meshcentral for users. It'd be more comfortable. The API key is really cheap and we can use database to store locations each time we get new agents. What do you think?

PizzaProgram commented 1 year ago

Just an idea ... Maybe somebody (who can understand Python) could look into this code, how others are doing GeoLocation queries for free : https://github.com/furlongm/openvpn-monitor

devwizard038 commented 1 year ago

I think in case of VPN or proxy, it's hard to determine where the real location is. However, if we can get the ip address before getting into VPN or proxy, then I think we can get exact location.