From: JP Abgrall <jpa@google.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Force socket error on iptables reject with icmp semantics?
Date: Tue, 24 May 2011 18:57:50 -0700 [thread overview]
Message-ID: <BANLkTim10aVkudq_iOtW8KWLqNpS=TBo=Q@mail.gmail.com> (raw)
In-Reply-To: <4DDB57DB.8050004@trash.net>
On Tue, May 24, 2011 at 00:01, Patrick McHardy <kaber@trash.net> wrote:
> The interpretation and handling of the ICMP errors is up to the higher
> layer protocols.
This is only for DEST_UNREACH, and I was expecting that the convert
table/func was the way to deal with it. But apparently not.
How about e.g. "--reject-with-forced-socket-error-matching-icmp
--reject-with icmp*blabla"?
> Unless there's something wrong in your setup, the ICMP message should
> be received by the socket anyways.
My understanding was that it won't happen if an ingress packet gets
rejected. In that case the icmp is only sent back out, as it uses
icmp*_send().
I'll see if it is not too hard to have icmp*_send(...., direction),
and call it for each direction.
For now, I'll keep my reject change (after fixing the arg in the v6
convert call) as it does allow user space to not wait for incoming
data after that.
--
prev parent reply other threads:[~2011-05-25 1:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-23 23:16 Force socket error on iptables reject with icmp semantics? JP Abgrall
2011-05-24 7:01 ` Patrick McHardy
2011-05-25 1:57 ` JP Abgrall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTim10aVkudq_iOtW8KWLqNpS=TBo=Q@mail.gmail.com' \
--to=jpa@google.com \
--cc=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).