Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1225997

Re: [PATCH v4] add stealth mode

From Florian Westphal <fw@strlen.de>
Newsgroups linux.kernel
Subject Re: [PATCH v4] add stealth mode
Date 2015-09-16 13:10 +0200
Message-ID <q9iL8-2Ej-13@gated-at.bofh.it> (permalink)
References <q93M6-5yj-19@gated-at.bofh.it> <q9hFo-Ro-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Matteo Croce <matteo@openwrt.org> wrote:
> Add option to disable any reply not related to a listening socket,
> like RST/ACK for TCP and ICMP Port-Unreachable for UDP.
> Also disables ICMP replies to echo request and timestamp.
> The stealth mode can be enabled selectively for a single interface.

I think it would make more sense to extend the socket match
in xtables if it can't be used to achive this already.

seems like
*filter
:INPUT ACCEPT [0:0]
-A INPUT -p tcp -m socket --nowildcard -j ACCEPT
-A INPUT -p tcp -j DROP
COMMIT

Already does what you want for tcp, udp should work too.
I'd much rather see xtables and/or nftables to be extended
with whatever feature(s) are needed to configure such a policy
rather than pushing this into the core network stack.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] [PATCH v3] add stealth mode David Miller <davem@davemloft.net> - 2015-09-15 21:10 +0200
  [PATCH v4] add stealth mode Matteo Croce <matteo@openwrt.org> - 2015-09-16 12:00 +0200
    Re: [PATCH v4] add stealth mode Daniel Borkmann <daniel@iogearbox.net> - 2015-09-16 12:30 +0200
      Re: [PATCH v4] add stealth mode Matteo Croce <matteo@openwrt.org> - 2015-09-16 12:50 +0200
        Re: [PATCH v4] add stealth mode Daniel Borkmann <daniel@iogearbox.net> - 2015-09-16 13:20 +0200
    Re: [PATCH v4] add stealth mode Florian Westphal <fw@strlen.de> - 2015-09-16 13:10 +0200
    Re: [PATCH v4] add stealth mode Eric Dumazet <eric.dumazet@gmail.com> - 2015-09-16 13:20 +0200

csiph-web