LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 02-07-2005, 03:30 PM   #1
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
restricting internet access


How would i get about to restricting internet access on a computer hooked up via router to the internet at certain time frames. I'd like to be able to make it so that on weekdays it gets more restrictions. Since i don't get internet through another computer this one would have to block itself. What i was thinking of is using a program as a timer and having it execute a script that would say:
"ifdown wlan0"
And then the start up script would say:
"ifup wlan0"
What would be the easiest way to get this working, so it doesn't interfere with the normal users? Thanks.
 
Old 02-07-2005, 03:34 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
I think cron is the timer you are looking for.
man crontab
 
Old 02-08-2005, 07:29 AM   #3
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Original Poster
Rep: Reputation: 30
thanks, found this great link to a manual on using crontab. I'm working on it now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting access Menestrel Linux - Newbie 1 06-07-2005 08:17 AM
Restricting Login Access wvrhlu Linux - Security 4 11-22-2004 12:15 PM
Restricting SSH access by IP sooner5150 Linux - Security 3 11-18-2004 11:09 AM
restricting access to APs name_in_use450 Linux - Wireless Networking 1 08-06-2004 08:28 AM
User Group for Restricting Internet Access kyleinc Linux - General 6 04-17-2004 05:49 AM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration