From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benny Amorsen Subject: Re: Is there a way to DROP on OUTPUT without returning EPERM? Date: Fri, 11 Jan 2008 09:51:40 +0100 Message-ID: References: <20080110213605.GA14931@club.cc.cmu.edu> Mime-Version: 1.0 Return-path: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@vger.kernel.org Mike Kasick writes: > iptables -A OUTPUT -o eth1 -m statistic --mode random --probability 0.5 -j DROP > > has the side effect of returning EPERM for write/send syscalls for which > packets are dropped. It would make more sense if DROP dropped silently and REJECT returned EPERM. Hard to fix now, of course. /Benny