1 |
On 02/06/2012 01:04 PM, William Hubbs wrote: |
2 |
> All, |
3 |
> |
4 |
> I've been pondering for a while why All of OpenRC's network interfaces |
5 |
> provide net. |
6 |
> |
7 |
> My understanding of the "net" service is that it is there to signal that |
8 |
> a generic network connection is active. |
9 |
> |
10 |
> What I would like to do in OpenRC is change the network scripts so that |
11 |
> only the loopback interface provides net. |
12 |
> |
13 |
> The down side of this approach will be that if a daemon uses a specific |
14 |
> ip address in its configuration, or if it binds to a specific address, |
15 |
> the user will have to set up the appropriate configuration options in |
16 |
> /etc/conf.d. For example, if I setup sshd to use 192.168.10.1 and eth0 has |
17 |
> this address, I have to put the following line in /etc/conf.d/sshd: |
18 |
> |
19 |
> rc_need="net.eth0" |
20 |
|
21 |
That makes perfect sense. I suspect that the most common case is to have |
22 |
sshd bind to all interfaces, and if that's true then special |
23 |
configuration will not be needed in the most common cases. |
24 |
-- |
25 |
Thanks, |
26 |
Zac |