On 06/08/2014 10:25 AM, Matti Nykyri wrote:
> Hi
>
> 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.
>
> The problems are related to iptables and samba.
>
> 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.
>
> 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.
>
> Any suggestions where to start? Or just disable ifplugd?
>
> --
> Matti
I used to really like ifplugd. mostly for the audible beep when things
are disconnected as it's easier to diagnose from afar.
being able to up/down interfaces based on connection state was also
great for dynamic routing when combined with openrc/netifrc
however, lack of clear config, no way to at runtime remove it from an
interface and just complete confusion over software based interfaces
i.e. gre tunnels or even macvlans.... all mean it is slowly being
removed from my boxen.