From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Leonardo_Rodrigues_Magalh=E3es?= Subject: Re: Order in ruleset edition Date: Wed, 26 Nov 2003 17:27:15 -0300 Sender: netfilter-admin@lists.netfilter.org Message-ID: <001e01c3b45b$af4cb790$95ffa8c0@ESTACAO> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: "Hildebrand, Brian" , "Netfilter (E-mail)" To prevent problems during a firewall reload/restart, I usually do: 1) do 'echo 0 > /proc/sys/net/ipv4/ip_forward' on the very beggining of the script 2) define the default actions to drop on the very first rules ( -P DROP ) 3) insert ALL the rules (can take some seconds) 4) do 'echo 1 > /proc/sys/net/ipv4/ip_forward' 5) firewall is READY What do you think on this ? Sincerily, Leonardo Rodrigues