Gentoo Archives: gentoo-user

From: thegeezer <thegeezer@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ifplugd breaks services
Date: Tue, 10 Jun 2014 10:43:39
Message-Id: 5396E153.4090104@thegeezer.net
In Reply to: [gentoo-user] Ifplugd breaks services by Matti Nykyri
1 On 06/08/2014 10:25 AM, Matti Nykyri wrote:
2 > Hi
3 >
4 > I also have other problems in my life. One of them is on one of my gentoo server. This server has two network cards one serves intranet and the other internet. The on that is on the internet is attached to a cable modem. The modem is buggy and some times reboots it self losing the link so I have ifplugd there get new address via dhcp immediately. Intranet card is configured not to use ifplugd. I'm using OpenRC.
5 >
6 > The problems are related to iptables and samba.
7 >
8 > Samba: when ifplugd runs down the internet card samba is killed. This shouldn't happen. Samba is configured only to use intranet card. Samba always fails to start when ifplugd starts the internet card. Manual starting is required.
9 >
10 > Iptables: the system uses new nic names (enp7s0 etc). Iptables has them correctly in the rules and in rules save. However when ifplugd cycles the internet nic all the nic names in the in-kernel rules change to eth0 an eth1. I need to zap iptables and then start it to reset the rules.
11 >
12 > Any suggestions where to start? Or just disable ifplugd?
13 >
14 > --
15 > Matti
16 I used to really like ifplugd. mostly for the audible beep when things
17 are disconnected as it's easier to diagnose from afar.
18 being able to up/down interfaces based on connection state was also
19 great for dynamic routing when combined with openrc/netifrc
20 however, lack of clear config, no way to at runtime remove it from an
21 interface and just complete confusion over software based interfaces
22 i.e. gre tunnels or even macvlans.... all mean it is slowly being
23 removed from my boxen.

Replies

Subject Author
Re: [gentoo-user] Ifplugd breaks services Mick <michaelkintzios@×××××.com>