furlongm / openvpn-monitor

openvpn-monitor is a web based OpenVPN monitor, that shows current connection information, such as users, location and data transferred.
http://openvpn-monitor.openbytes.ie
GNU General Public License v3.0
968 stars 294 forks source link

Flag doesn't load, doesn't load location! #240

Open tuxjr opened 2 years ago

tuxjr commented 2 years ago

Hello, everything is working, when some users connect to the VPN it shows me, but it is not showing the location, location and country flag. Can you help me solve this??

location

edthepurple commented 2 years ago

you need to include maxmind db file. a "GeoLite2-City.mmdb" should be in this directory: /var/lib/GeoIP

also, create a file in this path: /srv/openvpn-monitor/etc/openvpn-monitor.conf

and copy this to it:

[openvpn-monitor] site=EdVPN maps=True maps_height=500 geoip_data=/var/lib/GeoIP/GeoLite2-City.mmdb datetime_format=%d/%m/%Y %H:%M:%S

[VPN1] host=localhost port=5555 name=EdVPN password= show_disconnect=True

change EdVPN to whatever title you want. then re-start the service.