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.60) (envelope-from ) id 1G8Oji-0005RN-Mh for garchives@archives.gentoo.org; Wed, 02 Aug 2006 21:58:43 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k72LuTST027671; Wed, 2 Aug 2006 21:56:29 GMT Received: from mx1.spbtlg.ru (mx1.spbtlg.ru [213.158.0.34]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k72LrgrM023003 for ; Wed, 2 Aug 2006 21:53:43 GMT Received: from alpha.local (7adsl56spb.ptn.ru [80.88.56.7]) by mx1.spbtlg.ru (8.13.1/8.13.1) with ESMTP id k72LiK8v021389 for ; Thu, 3 Aug 2006 01:44:24 +0400 Received: from beta.local (dlink.dmz [192.168.2.2]) by alpha.local (8.13.7/8.13.7) with ESMTP id k72LrSYE031983 for ; Thu, 3 Aug 2006 01:53:29 +0400 From: dg To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] launching iptables Date: Thu, 3 Aug 2006 01:53:29 +0400 User-Agent: KMail/1.9.3 References: In-Reply-To: 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608030153.29462.dg@kaboom.spb.ru> X-Antivirus: Dr.Web (R) for Mail Servers on mx1.spbtlg.ru host X-Antivirus-Code: 100000 X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.5.0_isp X-Archives-Salt: 0b2961ab-fbff-4f0e-ad89-d1aea0b8a9c9 X-Archives-Hash: 8ee4cedd8e7b9d4792140a0a0039645b On Thursday 03 August 2006 00:41, James wrote: > Hello, > > I've got my own iptables script to launch a customized firewall, located in > /usr/local/bin. > > I'm aware of /etc/init.d/iptables the 'runscipt'. I do not wish to edit > this scipt as 'gentoo' updates nuke my edits therein. Where is the gentoo > place of preference to launch my scipt after the gentoo runscipt > '/etc/init.d/iptables' is finished running? > > Is their a way to get 'rc-update add default' to launch > my_firewall without putting it in the /etc/init.d/ dir and using the > runscipt template for my script? > > > thoughts, suggestions and examples are most welcome. > > > James Just run your script once, then do /etc/init.d/iptables save /etc/init.d/iptables start and rc-update add iptables default ... and it will load your rules and start firewall automatically. BR, dmitri -- gentoo-user@gentoo.org mailing list