|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 |
|
|||
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 |
|
|||
/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. |
|
|||
# cat /etc/hostname.fxp0
dhcp |
|
|||
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@. |
|
|||
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. |
|
|||
|
Thread Tools | |
Display Modes | |
|
|
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 |