netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Playing nice with incoming traceroutes
@ 2010-05-14 21:17 Curby
  2010-05-15 16:51 ` Pieter Smit
  2010-05-16 21:00 ` Curby
  0 siblings, 2 replies; 6+ messages in thread
From: Curby @ 2010-05-14 21:17 UTC (permalink / raw)
  To: netfilter

Hello, I'm considering allowing inbound traceroutes to find me, in the
interest of being a good Internet citizen.  I could simply open the
right udp ports, but i'd rather more tightly control what's allowed
than simply opening them up entirely.  Thus I'm considering something
like the following.  Should it meet my expectations of responding
appropriately to traceroutes but otherwise not letting traffic
through?

-A INPUT -p udp --dport 33434:33534 -m ttl --ttl-eq 1 -j REJECT
--reject-with icmp-port-unreachable

I'm using ttl-eq 1 because that's the lowest TTL that showed up in my
netfilter logs when I tried to traceroute my machine earlier.  In
other words, I don't think I should use 0, but am willing to be
convinced otherwise.

Also, I'm a little unsure if I should be using another ICMP code when
I send the REJECT packet.  But port unreachable seemed reasonable. =)

Thanks!

--Mike

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-16 22:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-14 21:17 Playing nice with incoming traceroutes Curby
2010-05-15 16:51 ` Pieter Smit
2010-05-16  3:17   ` Bill Bogstad
2010-05-16 22:22   ` Pascal Hambourg
2010-05-16 21:00 ` Curby
2010-05-16 22:26   ` Pascal Hambourg

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).