From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1H8mx8-00028g-4i for garchives@archives.gentoo.org; Mon, 22 Jan 2007 00:22:26 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l0M0LBZo022180; Mon, 22 Jan 2007 00:21:11 GMT Received: from mail.netspace.net.au (mail-out3.netspace.net.au [203.10.110.76]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id l0M0Fnjc014945 for ; Mon, 22 Jan 2007 00:15:50 GMT Received: from [172.16.0.52] (ppp246-231.static.internode.on.net [203.122.246.231]) by mail.netspace.net.au (Postfix) with ESMTP id 4086B13278C for ; Mon, 22 Jan 2007 11:15:46 +1100 (EST) Subject: Re: [gentoo-user] Setting up a home router From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <6142e6140701201401r2cc87bc2i774b815560dac172@mail.gmail.com> References: <6142e6140701141127ke803445jb5d9a89f8fa523a@mail.gmail.com> <6142e6140701181710o26606abbj7abbcedbda6a7738@mail.gmail.com> <1169189119.3807.30.camel@orpheus> <200701190929.09020.uwix@iway.na> <6142e6140701190108j73abcfelbfb5f01e076b5d5b@mail.gmail.com> <1169260432.3807.39.camel@orpheus> <6142e6140701201401r2cc87bc2i774b815560dac172@mail.gmail.com> Content-Type: text/plain Date: Mon, 22 Jan 2007 09:45:14 +0930 Message-Id: <1169424914.7822.24.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: a674be44-44c4-40d9-9cff-12afea4d7277 X-Archives-Hash: 66716a20cc0da552aaf75b52c642884c On Sat, 2007-01-20 at 23:01 +0100, Daniel Pielmeier wrote: > > The only last thing I could suggest is running lsof to see what files > > are being accessed when you start the net.eth1 script. > > I tried lsof, but is there a possibility to run it constantly or for a > specified time to catch the complete progress of the script, like the > top command to monitor all files which are used by this process. As > far as i can see lsof list only the current processes and the files > used and then it stops. don't know :) someone else will have to help you there... > > a better option would be `emerge --noconfmem `, which > > esentially re-does all your conf files. > > I tried this also but i can't figure out which files could be > responsible for this something like this should do it: for i in `sudo find /etc -name ._cfg\*`; do tkdiff `echo $i | awk '{ sub(/._cfg...._/,""); print }'` $i; done replace tkdiff with your favourite. > Additionally i tried this, running the init-script and then i applied > this find command > > find / -mount -cmin -1 > > which lists all the files which status has changed the last minute, > but there are no files which could be the reason for the changing if > the tables. > I don't know if this command does what i want. I think it lists the > files which are altered and which are accessed. Am i right here? it will list files that have been accessed, only if you _don't_ have noatime in /etc/fstab for that filesystem. noatime says don't update the time when the file is accessed (but not changed). the default is atime, but a lot of people use noatime for speed improvements. > This gets a bit frustrating for me now i always have to reset my > iptables manually after i start my internet connection. Is it possible > that there is no real file causing this trouble? There must be something, somewhere doing it.. Maybe you could join the shorewall ml and see what they say? As a workaround, you could add this to /etc/conf.d/net: postup() { if [[ $1 == "eth1" ]] ; then /etc/init.d/iptables restart fi } or something similar. Not the ideal solution, but at least it would do it automatically. sorry I can't help any further :) -- Iain Buchanan Mollison's Bureaucracy Hypothesis: If an idea can survive a bureaucratic review and be implemented it wasn't worth doing. -- gentoo-user@gentoo.org mailing list