Restrict a users access based on time

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
allaboutthebase
Posts: 19
Joined: Thu Apr 09, 2020 3:53 pm

Restrict a users access based on time

Post by allaboutthebase » Tue Apr 14, 2020 8:26 am

Hi

Is it possible to restrict a users ability to log in based on office hours ?

I dont want some users logging in outside those hours.

OliverTejada
Posts: 46
Joined: Mon Apr 13, 2020 8:08 pm

Re: Restrict a users access based on time

Post by OliverTejada » Tue Apr 14, 2020 9:57 am

SoftEther itself does not have this feature you're looking for, BUT...
You can configure NT Domain/Windows Authentication for your VPN users, and setup logon hours for each user at your domain controller. I've tested this and it does exactly what you need.

- Create a test user on VPN server
- Choose NT Domain Authentication
- Specify what local Windows account or Domain account that VPN user will be related to.
- Set logon hours for that account under "Active Directory Users and Computers"

Image Image

Blue means logon permitted, white logon denied.

If the computer running the VPN server is NOT a domain controller, but a regular Windows host, you can still set logon hours, refer to this video Set logon hours by commandline

After you've finished setup, try logging in as target user (remember to use the SoftEther VPN account name, not the NT/Windows account name when trying to connect).

Post Reply