donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python & Vue.js
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.63k stars 252 forks source link

Request to Add IP Logging and Connection Security Logs #525

Open mizoil opened 20 hours ago

mizoil commented 20 hours ago

Hi! I have a great idea to improve the system’s security, and I would like to request your help in implementing it.

The idea is to log the IP addresses of users when they connect to the service. This is important because sometimes an IP address might disappear or change, particularly when a user disconnects from a VPN. I want to ensure that all connections are accurately recorded in the logs, preventing anyone from using a different IP address or hiding their activity.

The system should log the IP address along with the exact time, date, and year of the connection. These logs should be updated every 30 days or after 12 months. Additionally, it should be possible to manually delete logs or clear logs for specific users when needed. This will greatly enhance security and provide better control.

image

donaldzou commented 15 hours ago

Hi! Thanks for bringing this up! I think this is possible, what’s happening is WGDashboard will refresh peer’s status every 10 seconds in the background. What we can do is record whenever a peer went from disconnected to connected. Is that what you’re looking for?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Mizolixx @.> Sent: Sunday, November 24, 2024 6:51:46 PM To: donaldzou/WGDashboard @.> Cc: Subscribed @.***> Subject: [donaldzou/WGDashboard] Idea for Improving Logging and Connection Security (Issue #525)

Hi! I have a good idea for improving the security of the system.

I would like to implement a feature where the IP addresses of users are logged when they connect to the service. This is important because sometimes the IP address can disappear or change, especially if a user disconnects from a VPN. I want to ensure that all connections are recorded and logged, so there is no chance of someone using a different IP address or hiding their activity.

It’s necessary to log the IP address, along with the exact time, date, and year of connection. These logs should be updated every 30 days or after 12 months. Additionally, it should be possible to manually delete logs or clear logs for specific users, as needed. This will enhance security and control.

image.png (view on web)https://github.com/user-attachments/assets/25a8b790-54ad-4c2b-8548-a0396eb8f61f

— Reply to this email directly, view it on GitHubhttps://github.com/donaldzou/WGDashboard/issues/525, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGARNUOAZ27OXB443VGIYHL2CGVUFAVCNFSM6AAAAABSMDE4LGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY4DONJWGIYTOMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>