From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 626511387FD for ; Tue, 10 Jun 2014 10:43:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B54DE0A5E; Tue, 10 Jun 2014 10:43:34 +0000 (UTC) Received: from uberouter3.guranga.net (unknown [78.25.223.226]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 26759E0891 for ; Tue, 10 Jun 2014 10:43:33 +0000 (UTC) Received: from [192.168.151.100] (unknown [192.168.151.100]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by uberouter3.guranga.net (Postfix) with ESMTPSA id E8D1782E6E for ; Tue, 10 Jun 2014 11:43:31 +0100 (BST) Message-ID: <5396E153.4090104@thegeezer.net> Date: Tue, 10 Jun 2014 11:43:31 +0100 From: thegeezer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Ifplugd breaks services References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: a79bad9f-8473-49ff-8bfe-0d793de0e460 X-Archives-Hash: 0990108233724ca761a694837b32bd46 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.