Connecting Tech Pros Worldwide Help | Site Map

Blocking users from using vnc and ssh

Newbie
 
Join Date: Aug 2008
Posts: 3
#1: Aug 19 '08
Hi Guys

I want to write a scripts that I will shell to block the user from using ssh and vnc at certain times. I do not know where to start. Could you please help me with this script.

Thanks
Pascal07
Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#2: Aug 19 '08

re: Blocking users from using vnc and ssh


Quote:

Originally Posted by pascal07

I want to write a scripts that I will shell to block the user from using ssh and vnc at certain times. I do not know where to start. Could you please help me with this script.

Hi Pascal!
For what sort of system are you trying to write this script? From what it's supposed to do, I'm guessing it's a Linux or Unix system.

In any case, I guess there are two parts to the problem:
1. having a script to block ssh and vnc and one for unblocking them again and
2. starting the scripts at the right times

If you're using Linux, the first part seems to be an issue of setting iptables and the second is creating a cron job. You can find tutorials on both topics via Google.

If you're using Windows, the 2. issue wouldn't be a problem (there's something similar to cron in Windows), but the first one would very much depend on your firewall. If the Windows Firewall is up and running, you may be able to use that, but I have no experience in that area, so you'd better search with Google and hope that something comes up. Of course, you could always ask in our Windows Forum.

Greetings,
Nepomuk
Reply