DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th May 2010
kopcicle kopcicle is offline
New User
 
Join Date: May 2010
Posts: 3
Default startup (rc) problems

I have a 4.1 GENERIC#1435 i386 router , due to hardware issues I might be stuck there but that isn't the problem at the moment . After the addition of software firewall and network rules through pf the machine no longer grabs an outside IP or starts the network . I have to manually execute <dhclient fxp0> and <pfctl -vf /etc/pf.conf> after boot and root login to start the network . I have experimented various ways to get this done without success and the common theme is that I need to have dhclient grab an outside ip BEFORE pfctl -vf /etc/pf.conf runs . Is there any "clean"way to insert these two commands into the startup/rc scripts ?

~kop
Reply With Quote
  #2   (View Single Post)  
Old 15th May 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,159
Default

Do you have a file called /etc/hostname,fxp0 ?
Minimally it should contain the word dhcp.

See the DYNAMIC ADDRESS CONFIGURATION section of hostname.if(5) for the details
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 15th May 2010
kopcicle kopcicle is offline
New User
 
Join Date: May 2010
Posts: 3
Default

/etc/hostname.fxp0 includes "dhcp"
Reply With Quote
  #4   (View Single Post)  
Old 15th May 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by kopcicle View Post
/etc/hostname.fxp0 includes "dhcp"
Includes?



Please post the entire contents of /etc/hostname.fxp0.

Be aware that OpenBSD 4.7 is scheduled to be released this coming week. With the release of 4.7, official support for OpenBSD 4.5 will come to an end. OpenBSD 4.1 was released in May 2007 & has not been officially supported for two years. In particular, pf(4) has undergone radical changes in recent years, which includes its syntax. Finding someone who remembers the idiosyncrasies of OpenBSD 4.1 (or pf(4) from that version...) will be increasingly difficult.

For more information on OpenBSD's support policy, see Section 5.1 of the FAQ.
Reply With Quote
  #5   (View Single Post)  
Old 15th May 2010
kopcicle kopcicle is offline
New User
 
Join Date: May 2010
Posts: 3
Default

# cat /etc/hostname.fxp0
dhcp
Reply With Quote
  #6   (View Single Post)  
Old 15th May 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

if dhcp is no longer working, it is likely because of your recent PF rule changes. You are blocking packets.
Reply With Quote
  #7   (View Single Post)  
Old 15th May 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

No, dhclient/dhcpd operate independently of pf and use bpf(4), it will work regardless of pf configuration.

This has been mentioned on the mailing lists, and reaffirmed by deraadt@.
Reply With Quote
  #8   (View Single Post)  
Old 15th May 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I suspect you may be getting rejected by the remote DHCP server, for whatever reason, there have been plenty of bug fixes in that area over the years.. you should confirm the behaviour you're seeing exists in newer versions of OpenBSD, otherwise we can't possibly help you.

Nobody here is likely to remember nuances of 4.1, and even so, given the age.. your installation may no longer be "vanilla" and some other system misconfiguration could be effecting the initial lease attempt.
Reply With Quote
  #9   (View Single Post)  
Old 15th May 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

Thanks for the correction (again), BSDfan. I'll keep my mouth ...er... fingers quiet.
Reply With Quote
Old 15th May 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Quote:
Originally Posted by jggimi View Post
I'll keep my mouth ...er... fingers quiet.
Don't you dare.
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
NetBSD 5.0.2 , kde4 , kdm startup robbtek NetBSD Package System (pkgsrc) 1 3rd March 2010 12:18 PM
firefox startup very slow. bsdnewbie999 OpenBSD General 5 6th May 2009 05:30 AM
dhclient at startup bsdnewbie999 OpenBSD General 3 31st March 2009 03:55 AM
rc.d startup script problem Xtender FreeBSD General 9 17th October 2008 06:00 PM
Beep on startup? matt Programming 1 16th July 2008 08:33 AM


All times are GMT. The time now is 10:01 AM.


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