LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
Search this Thread
Old 03-01-2003, 03:55 PM   #1
luap
Member
 
Registered: Feb 2003
Location: atlanta ga usa
Distribution: suse 8.2
Posts: 78

Rep: Reputation: 15
set time limit on allowed user in iptables?


hi.
with iptables as firewall,sharing internet with a small lan
with ip forwarding and nat, is it possible to set time usage limits for an allowed host? example, allowed host has internet access til 10pm est, and then becomes disallowed?
any assistance or links to help? thanks in advance.
 
Old 03-02-2003, 05:25 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
It's impossible to do so with iptables directly. If you want to block access at the firewall level then you should use a cron job and have an additional firewall rule added ... but you can do that only on a ip base ... so I won't recommend that way!

The better way would be restricting it in the service itself!
 
Old 03-02-2003, 11:47 PM   #3
luap
Member
 
Registered: Feb 2003
Location: atlanta ga usa
Distribution: suse 8.2
Posts: 78

Original Poster
Rep: Reputation: 15
hi,thanks for your answer. i'm using a ppp0 connection.
so there might be a way to set time limits within some ppp0 config setting?
 
Old 03-03-2003, 03:43 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
There is a kernel module for netfilter which does time control...

http://www.netfilter.org/documentati...base.html#time
 
Old 03-03-2003, 09:00 PM   #5
luap
Member
 
Registered: Feb 2003
Location: atlanta ga usa
Distribution: suse 8.2
Posts: 78

Original Poster
Rep: Reputation: 15
hi,
thanks for the link
 
Old 03-04-2003, 11:55 PM   #6
brutuz
LQ Newbie
 
Registered: Mar 2003
Distribution: RedHat 8.0
Posts: 1

Rep: Reputation: 0
you may want to try to explore squid.. i think it will answer your needs

HTH
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time allowed to bring up network? gjhicks Linux - Networking 2 03-09-2005 05:03 AM
Limit time for a user per day davholla Linux - General 11 08-22-2004 03:14 PM
Squid ACL - what happens when a user go goes past their allowed access time? Grizzlednewbie Linux - Software 0 07-07-2004 01:37 AM
Squid - Maximum time limit per user vkothiyal Linux - Software 0 05-29-2004 08:36 AM
set daily time limit for being logged into machine? JustinHoMi Linux - General 1 10-15-2001 01:58 PM


All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration