Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openrc sneaking udhcpc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
WWWW
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2014
Posts: 143

PostPosted: Sun Nov 29, 2015 12:31 am    Post subject: openrc sneaking udhcpc Reply with quote

hello,

Just curious about this fact.


Why would openrc try dhcpc from all programs all the way to the hidden busybox udhcpc when there's no networking set up or blank or misconfigured /etc/conf.d/net?????

WHY IS IT DEFFAULT BEHAVIOR??

Wouldn't it be more logical not to execute anything as default instead? Is not like a Gentoo user is dumb with dissability that needs a little automagic assistance to get his box online.

There's some fault in the openrc logic that a user wants and needs dhcpcd BY ALL MEANS regardless of personal preference. A little bit like systemd.

I found out the hard way when having two nics and wanted to configure the second one the bastard sneaked a nameserver ip into:

Code:

/etc/resolve.conf


And with a message:

Code:

# Generated by uhdcpc for eth2


I think this openrc default behavior is really fucked up because the address it inserted doesn't match my network and the potential to wreck havoc.

Anyone know how to KILL OFF this behavior?

thanks.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Nov 29, 2015 5:28 am    Post subject: Re: openrc sneaking udhcpc Reply with quote

WWWW wrote:
Anyone know how to KILL OFF this behavior?

WWWW ... yes, configure the interface in conf.d/net ... it is only the absence of anything defined for that interface that causes netifrc to look for a means to aquire an ip, gateway, resolution, etc.

That would be the most logical of behavior when calling init.d/net.{iface} ... it sets up the interface in accordance with what you provide, in the absence of anything provided it uses a dhcp client if it exists, ending with uhdcpc from busybox. I disagree with your evaluation of such a fallback as 'dumb', you are starting the network interface, getting an ip, etc, would be the expected outcome. If you don't want it configured *in some manner* then use 'config_eth0="null"', or add USE="savedconfig" to busybox and disable uhdcpc from your busybox binary.

best ... khay
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Sun Nov 29, 2015 5:35 am    Post subject: Re: openrc sneaking udhcpc Reply with quote

WWWW wrote:
There's some fault in the openrc logic that a user wants and needs dhcpcd BY ALL MEANS regardless of personal preference. A little bit like systemd.

I agree with khayyam, if you don't configure it to not use it, you didn't emit any personal preference.
default seems fine: if user is dumb, lost or misconfigure try configure it for him with dhcp, if user tells us not to we obey his choice.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Sun Nov 29, 2015 9:58 am    Post subject: Re: openrc sneaking udhcpc Reply with quote

WWWW wrote:
I think this openrc default behavior is really fucked up because the address it inserted doesn't match my network and the potential to wreck havoc.


If a DHCP client puts an address into resolv.conf that doesn't match your network, I would be more concerned about a rogue DHCP server on your network at this point.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42583
Location: 56N 3W

PostPosted: Sun Nov 29, 2015 10:02 am    Post subject: Reply with quote

WWWW,

I guess you have a link-local address?
That's the range 169.254.1.0 through 169.254.254.255.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum