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 1G8O94-0006Xk-3i for garchives@archives.gentoo.org; Wed, 02 Aug 2006 21:20:50 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k72LHLYE012969; Wed, 2 Aug 2006 21:17:21 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k72LEtLd006766 for ; Wed, 2 Aug 2006 21:14:55 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B677F64637 for ; Wed, 2 Aug 2006 21:14:54 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01835-20 for ; Wed, 2 Aug 2006 21:14:48 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id E004864493 for ; Wed, 2 Aug 2006 21:14:47 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G8O2n-0007Tc-DW for gentoo-user@gentoo.org; Wed, 02 Aug 2006 23:14:22 +0200 Received: from www.buffer.net ([24.73.161.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Aug 2006 23:14:21 +0200 Received: from wireless by www.buffer.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Aug 2006 23:14:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: James Subject: [gentoo-user] Re: launching iptables Date: Wed, 2 Aug 2006 21:13:58 +0000 (UTC) Message-ID: References: <44D11224.9010301@infoline.su> 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=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 24.73.161.102 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060616) Sender: news X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.578 required=5.5 tests=[AWL=0.021, BAYES_00=-2.599] X-Spam-Score: -2.578 X-Spam-Level: X-Archives-Salt: 6cce8a6a-4055-450d-991f-56ebb1731ba1 X-Archives-Hash: e36c600d86eed41fb1d4e2ce4dcdbf02 Alexander Kirillov infoline.su> writes: > > 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. > Keep your script in /etc and run it once. OK, but how will it get discovered again upon reboot? /etc/init.d/iptables will overwrite what my_firewall.sh does. as it is currently doing.... > If you have SAVE_ON_STOP="yes" in /etc/conf.d/iptables > your rules will be restored whenever you restart iptables. Um, maybe I missing something but searching for "SAVE_ON" only reveals this line in the /etc/init.d/iptables script: stop() { if [[ ${SAVE_ON_STOP} == "yes" ]] ; then save || return 1 fi it looks for this setting in my script? If not, what file do I set the param ${SAVE_ON_STOP} in? I.E. this is a conditional statement testing the setting which is where? Or do I just add this line to the end for the scipt? confused. James -- gentoo-user@gentoo.org mailing list