Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rc_need=net.FOO
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
paradigm-X
Apprentice
Apprentice


Joined: 19 Sep 2013
Posts: 168

PostPosted: Thu Feb 13, 2014 10:00 pm    Post subject: rc_need=net.FOO Reply with quote

I suppose someone might have brought this up already, but I have not seen it yet. I just reconfigured '/etc/ssh/sshd_config' and put a setting for 'ListenAddress 1.2.3.4'. When I finished and saved it, I then did '/etc/init.d/sshd restart'. At this point I was advised to this effect:

"You are binding an interface in ListenAddress statement in your sshd_config!
You must add rc_need="net.FOO" in your /etc/conf.d/sshd
where FOO is the interface providing the following address:
1.2.3.4"

It occured to me that having entries scattered here and there making reference to this interface may be cause for concern and tedious work in the future because it is not altogether unheard of for such interfaces to be pseudo-randomly renamed from time to time. Indeed, at such time I would then need to recall where the references had been made and now manually modify them accordingly.

I don't want to presume that I can second guess the developers, but I do want to voice my concern about this issue at the moment. Would it not make more sense to have a single file associated with this interface in which one could make a myriad of similar entries in a consolidated place. Then, whenever change were needed, one would only have to look there instead of having to hunt around for other services and whatnot?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


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

PostPosted: Fri Feb 14, 2014 12:48 am    Post subject: Re: rc_need=net.FOO Reply with quote

paradigm-X wrote:
Would it not make more sense to have a single file associated with this interface in which one could make a myriad of similar entries in a consolidated place. Then, whenever change were needed, one would only have to look there instead of having to hunt around for other services and whatnot?

paradigm-X ... /etc/rc.conf exists for this purpose, any such configuration can be added there if you want such things consolidated.

best ... khay
Back to top
View user's profile Send private message
paradigm-X
Apprentice
Apprentice


Joined: 19 Sep 2013
Posts: 168

PostPosted: Fri Feb 14, 2014 6:11 pm    Post subject: Reply with quote

> "paradigm-X ... /etc/rc.conf exists for this purpose"

Well, then, it's good to realize that "great minds think alike"!



thank you, khayyam
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