Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging or CLI client status #164

Open
rdcuk opened this issue May 8, 2024 · 1 comment
Open

Logging or CLI client status #164

rdcuk opened this issue May 8, 2024 · 1 comment

Comments

@rdcuk
Copy link

rdcuk commented May 8, 2024

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
Copy link
Owner

micahmo commented May 8, 2024

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.

  • You can run wg show to print out the same thing that "View Status" shows in the WS4W UI.
  • You can supposedly run wireguard /dumplog > logs.txt to view logs (seen here), but I couldn't get this to print anything for me. You can see the full logs in the WireGuard UI (open from the system tray) on the Logs tab.
image

I hope that helps a little!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants