Code Monkey home page Code Monkey logo

Comments (3)

micahmo avatar micahmo commented on September 1, 2024 1

Hi @parsman, thanks for the suggestions. I hope I have interpreted them correctly.

I am assuming that "deactivate the account" means disabling the client such that the server stops accepting connections from it. I have added that functionality to the latest version (2.0.8).

I am assuming that "the part that displays the date of the user's first connection" is referring to the status line that starts with latest handshake. That would be the most recent connection, not the first, so maybe you're referring to something else. Either way, the latest version (2.0.8) now displays that information in the client configuration page.

Let me know what you think.

from wgserverforwindows.

parsman avatar parsman commented on September 1, 2024

Hi dear @micahmo
Thanks for your consideration
I meant in the second suggestion , adding an option to know the start time or the first handshake of client,
Or an option to set duration for a client to be auto disconnected after a given date or numbers of days.

from wgserverforwindows.

micahmo avatar micahmo commented on September 1, 2024

adding an option to know the start time or the first handshake of client

Do you mean the first handshake ever (since the creation of the server), or just the starting time of the current session? If it's the former, I don't think that information is available from WireGuard. If the latter, that has been added in the latest version.

an option to set duration for a client to be auto disconnected after a given date or numbers of days

Unfortunately this is not possible through WireGuard. There is not really a notion of a "connection", just routing of packets on demand. Therefore, there's no session to terminate. The best you could do is remove the client's config from the server (or make some other change such that subsequent connections are impossible). Since I intend WS4W to be a lightweight wrapper around WireGuard (and not something that has to be running all the time), I don't think this app is the right place for a service that periodically checks and disables clients. I'm not really intending on adding any functionality that wouldn't come standard with WireGuard on Linux.

Here's a Reddit post that explains more.

from wgserverforwindows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.