micahmo / WgServerforWindows

Wg Server for Windows (WS4W) is a desktop application that allows running and managing a WireGuard server endpoint on Windows
MIT License
818 stars 78 forks source link

Logging or CLI client status #164

Open rdcuk opened 1 month ago

rdcuk commented 1 month ago

Hi,

I'm trialling Wg Server for Windows to replace my Softether OpenVPN setup.

I rely on log analysis to look at usage and who connected when.

Does the server keep logs anywhere? Or is there a CLI way of reporting the client status (connected/disconnected/source IP etc) so I can write a script to regularly check?

Thanks.

micahmo commented 1 month ago

Hi @rdcuk, thanks for the question! WS4W is mostly a glorified wrapper around WireGuard. It does have a CLI, but that's mostly for running headless commands (for example, from Scheduled Tasks).

https://github.com/micahmo/WgServerforWindows?tab=readme-ov-file#cli

It doesn't really have any logging of its own. However, WireGuard has plenty of logging.

image

I hope that helps a little!