From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Kozachenko Subject: Re: new REBOOT target Date: Tue, 01 Mar 2005 10:22:54 +0200 Message-ID: <4224265E.5050309@entri.com.ua> References: <20050228174120.C816.LARK@linux.net.cn><20050301002058.GA981@roo nstrasse.net> <20050301131208.C848.LARK@linux.net.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org To: Wang Jian In-Reply-To: <20050301131208.C848.LARK@linux.net.cn> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Wang Jian wrote: >Hi Max Kellermann, > > >On Tue, 1 Mar 2005 01:20:58 +0100, Max Kellermann wrote: > > > >>On 2005/02/28 10:41, Wang Jian wrote: >> >> >>>Beside my laziness, the --passphrase is an error-proof mechanism per >>>se. Let's assume some one wants to use -j REBOOT, but he doesn't >>>specified a good enough match, just '-p icmp', then boom ;) In this >>>sense, the --passphrase is not match, but part of target. >>> >>> >>(my first reply to you didn't get to the list, maybe a mailman >>failure?) >> >>Now what about an error proof admin? ;) >> >>Sorry, I don't think this is a good argument, don't try to find an >>excuse for writing a dangerous rule (and for writing such a netfilter >>"design violation"). If an admin is brave enough to compile REBOOT >>into the kernel and write "-j REBOOT" somewhere, it's his own fault he >>didn't implement the correct match. Someone with root access should >>know better. >> >>REBOOT should ... reboot! Not match the protocol or a certain pass >>phrase. >> >> Why don't you use snmp trap for this purpose. You can send special snmp trap from wherever to machine needs rebooting and running snmptrapd and reboots it in a traphandle script. Consider using net-snmp for this not netfilter. > >Can't agree more :) > > > >>Max >> >> > > > > > -- Regards, Andrew Kozachenko Entri ltd. Look at the source, Luke.