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

Time Restriction for VPN Client #592

Open
8zerocool opened this issue Jan 24, 2025 · 2 comments
Open

Time Restriction for VPN Client #592

8zerocool opened this issue Jan 24, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@8zerocool
Copy link

I am looking to setup time restriction for users who use WireGuard VPN client to only allow access between certain hours during the day.

Is there a way schedule a job to restrict access based on time on WGDashboard?

I know currently we can setup a schedule job which restricts access based on the date but not for time.

@8zerocool 8zerocool added the enhancement New feature or request label Jan 24, 2025
@DaanSelen
Copy link
Collaborator

Good one, perhaps not just after x amount of hours but also from time to time!

@donaldzou
Copy link
Owner

Currently there's no direct way to achieve this on WGDashboard. But we can achieve this with crontab in your server, and call the restrict api at certain hour and call the allow access api in certain hour.

I'm thinking to implement this into WGDashboard soon :)

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

No branches or pull requests

3 participants