DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th January 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default preventing connections from being cut?

that's a interesting topic .. SWS ..

I'd be grateful to you if you -or anyone else- could explain how I can set that myself ..
my case is a bit different : I'd like to prevent cut connection after 10:00 pm

Thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 24th January 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,672
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by daemonfowl View Post
...I'd like to prevent cut connection ...
Your issue appears to be unrelated to this discussion, daemonfowl. This has been a discussion of administrative controls for PF, you appear to be trying to describe some sort of connectivity problem.

If I've understood what you've posted, you should start a new thread, and describe your problem completely there.
Reply With Quote
  #3   (View Single Post)  
Old 24th January 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Thread split from parent:

http://www.daemonforums.org/showthread.php?t=6740

daemonfowl, again please honor our goal to keep threads on topic as directed by the original poster (OP). If you have a question which takes a thread in a new direction, start a new thread.
Reply With Quote
  #4   (View Single Post)  
Old 24th January 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Ocicat , sorry again , I am fully aware of the forum rules .. I respect them ..

Jggimi , thanks for red-colorizing the mistake ..
the right question is :
* How to cut connection from network users at 10:00 pm everyday
* Is there a possibility to single out saturday from this rule ?

I hope I am not getting on your nerves .. if so I d rather be a silent reader than be a heavy guest ..
Reply With Quote
  #5   (View Single Post)  
Old 24th January 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by daemonfowl View Post
How to cut connection from network users at 10:00 pm everyday
Whenever a command needs to run at a specific time or at a specific frequency, think cron(8) or at(1) (BTW, "at" exists on Windows too...). How to configure the specificity of commands is done through crontab(5).

jggimi pointed out that pfctl(8) exposes the functionality to sever connections (how to do it...). Setting up a crontab entry will allow configuration of when it is intended to occur.
Quote:
Is there a possibility to single out saturday from this rule ?
Yes. crontab(5) is quite configurable.
Reply With Quote
  #6   (View Single Post)  
Old 24th January 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,672
Thanked 214 Times in 189 Posts
Default

I love the general questions, @daemonfowl, because they are of interest to a wide audience.

As to this question, it's easy enough to set specific times of day, or day of the week, or day of the month, or any recurring pattern you like for any executable task to run. The term used on Unix-like systems is "cron job". Start with cron(8), and then follow the SEE ALSO section for the management commands and file format you will need to learn.

When you first installed OpenBSD, there was mail in root's inbox suggesting you read the afterboot(8) man page. In that, you will find a discussion of OpenBSD's daily, weekly, and monthly management scripts, and you can review root's crontab file to see when those are run, as examples of setting up recurring scripts.
Reply With Quote
  #7   (View Single Post)  
Old 24th January 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Thank you so much .. Ocicat & Jggimi !!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cutting stateful connections sws OpenBSD Security 2 24th January 2012 12:20 PM
need troubleshooting tip for vpn connections badguy OpenBSD Security 19 10th November 2010 02:53 PM
Serial connections JMJ_coder General software and network 9 25th July 2008 03:28 PM
More tcp connections tad1214 FreeBSD General 8 5th June 2008 03:05 PM
OpenVPN - Problem with connections MME General software and network 2 26th May 2008 06:42 PM


All times are GMT. The time now is 12:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick