LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 06-13-2005, 10:02 PM   #1
koby
LQ Newbie
 
Registered: Dec 2004
Location: Commonwealth of Dominica
Distribution: FreeBSD 5.3, FreeBSD 6.0
Posts: 29

Rep: Reputation: 15
Time Delay program needed


hi all

I have a small problem with the boot up process of Freebsd and I was wondering if there is a way to slow it down. Here is my scenario... I connect to the internet via pppoe. I have set up rc.conf to automaitically start the internet connection upon booting..Also, I have configured pf firewall on the system to. The problem I have is that since my connection is PPPoE .. pf gets the ip of the computer from tun0. I have also enabled pf in the rc.conf. The problem I have is that in booting .. the pppoe connection takes a bit of time before it completes connecting to my ISP and is granted an ip during which time pf is already loading and looking for that same ip. pf does not load the ruleset until it finds an ip. Is there a way to pause after the system has processed the pppoe enable instructions so that it can establish its internet connection and thus gain an ip in time for pf to start?
 
Old 06-13-2005, 11:06 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Insert "cheap hack" disclaimer here:

put a cronjob in root's crontab with @reboot as the time that runs a shell script which sleeps for 60 seconds or something and then reloads pf.

You could make the script intelligent enough to actually poll the interface every 15 seconds until it's up or something too.
 
Old 06-14-2005, 11:14 AM   #3
koby
LQ Newbie
 
Registered: Dec 2004
Location: Commonwealth of Dominica
Distribution: FreeBSD 5.3, FreeBSD 6.0
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks much for that advice sigsegv, I did figure out a way to get around the problem. If I enclose the interface which is described in pf's ruleset withing "( )" brackets then it makes refrence to the interface rather than search for the ip.... According to pf this is used for DHCP or dial up where the puter has no static address. I was able to apply the same idea to PPPoE thus I made refrence to the interface, and when all the necessary connections were made it used the ip. So that pretty much solved the problem. But, really appreacitate the help. Thanks

Last edited by koby; 06-14-2005 at 11:16 AM.
 
  


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
RedHat AS 3, system time delay 3 sec everyday jingle_mj Linux - General 5 11-01-2005 11:48 PM
fsck delay reported bootup time? rmang Linux - General 2 10-30-2005 05:29 PM
Dual Boot Delay Time = 0 Raggit Linux - General 3 01-26-2005 09:25 AM
Change delay time with wu-ftpd file namdn Linux - Networking 0 10-08-2004 11:22 PM
The following delay program is confusing me ...... purpleburple Programming 5 09-15-2002 10:11 PM


All times are GMT -5. The time now is 08:28 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 Google+: linuxquestions
Open Source Consulting | Domain Registration