Traceroute and "ping" sockets: some questions

3 messages, 2 authors, 2011-08-19 · open the first message on its own page

Traceroute and "ping" sockets: some questions

From: Dmitry Butskoy <hidden>
Date: 2011-08-19 11:24:26

Hi

I've released new version of the Linux traceroute 2.0.18, which supports new (SOCK_DGRAM, IPPROTO_ICMP) sockets, appeared in the kernel 3.0 . This way users might perform icmp tracerouting (`-I') without setuid bit or cap_net_raw settings of the executable.
(See it at http://sourceforge.net/projects/traceroute/files/traceroute/traceroute-2.0.18/)

I would like to ask some questions:

- Currently such "ping" sockets implemented for IPv4 only. Are there any plans to implement it for IPv6 as well?

The traceroute-2.0.18 is ready for IPv6 anyway -- just wait for appearing it in the kernel without recompile (I hope :) ) -- but I would prefer to test it as soon as possible.

- Are there any plans to implement some "rate control" (maybe sysctl-configurable too), to restrict unprivileged users to send icmp echoes too fast (ie. faster than 200 ms -- the current ping(8) restriction)?


Regards,
Dmitry Butskoy
http://www.fedoraproject.org/wiki/DmitryButskoy

Re: Traceroute and "ping" sockets: some questions

From: David Miller <davem@davemloft.net>
Date: 2011-08-19 11:38:50

From: Dmitry Butskoy <redacted>
Date: Fri, 19 Aug 2011 15:19:16 +0400
I would like to ask some questions:

- Currently such "ping" sockets implemented for IPv4 only. Are there any
- plans to implement it for IPv6 as well?
I think the original authors of the kernel component said they would
work on this, but it hasn't materialized yet.
- Are there any plans to implement some "rate control" (maybe
- sysctl-configurable too), to restrict unprivileged users to send icmp
- echoes too fast (ie. faster than 200 ms -- the current ping(8)
- restriction)?
Why limit?  He can spam with UDP socket just as easily at any rate
he pleases, and rate limiting is policy issue and there relegated
to netfilter and/or the packet scheduler layer.

Re: Traceroute and "ping" sockets: some questions

From: Dmitry Butskoy <hidden>
Date: 2011-08-19 12:22:40

David Miller wrote:
quoted
- Are there any plans to implement some "rate control" (maybe
- sysctl-configurable too), to restrict unprivileged users to send icmp
- echoes too fast (ie. faster than 200 ms -- the current ping(8)
- restriction)?
     
Why limit?  He can spam with UDP socket just as easily at any rate
he pleases,
   
Yes, but most cases such UDP is "one-way" spam (until services like "echo 7/udp" are enabled).
For icmp ping, we normally receive icmp replies, hence it is bidirectional crap. Which was not present before.

Besides that ping(8) is normally present in the system even if C development is not installed (ie. user cannot build its spam software at the host etc...)

Regards,
Dmitry
http://www.fedoraproject.org/wiki/DmitryButskoy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help