Netdev List
 help / color / mirror / Atom feed
* Traceroute and "ping" sockets: some questions
@ 2011-08-19 11:19 Dmitry Butskoy
  2011-08-19 11:38 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Butskoy @ 2011-08-19 11:19 UTC (permalink / raw)
  To: netdev

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

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

* Re: Traceroute and "ping" sockets: some questions
  2011-08-19 11:19 Traceroute and "ping" sockets: some questions Dmitry Butskoy
@ 2011-08-19 11:38 ` David Miller
  2011-08-19 12:22   ` Dmitry Butskoy
       [not found]   ` <4E4E4DF6.2020509@odu.neva.ru>
  0 siblings, 2 replies; 5+ messages in thread
From: David Miller @ 2011-08-19 11:38 UTC (permalink / raw)
  To: buc; +Cc: netdev

From: Dmitry Butskoy <buc@odusz.so-cdu.ru>
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.

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

* Re: Traceroute and "ping" sockets: some questions
  2011-08-19 11:38 ` David Miller
@ 2011-08-19 12:22   ` Dmitry Butskoy
       [not found]   ` <4E4E4DF6.2020509@odu.neva.ru>
  1 sibling, 0 replies; 5+ messages in thread
From: Dmitry Butskoy @ 2011-08-19 12:22 UTC (permalink / raw)
  Cc: netdev

David Miller wrote:
>> - 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

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

* Re: Traceroute and "ping" sockets: some questions
       [not found]     ` <20110819.062249.2234872106788628654.davem@davemloft.net>
@ 2011-08-19 13:56       ` Dmitry Butskoy
  2011-08-19 14:00         ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Butskoy @ 2011-08-19 13:56 UTC (permalink / raw)
  To: netdev

David Miller wrote:
>>> 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 echo, we normally receive icmp replies, hence it is
>> bidirectional crap. Which was not present before.
>>      
> Well, replace UDP with TCP syn flood.
>    

Well.

Why then there is "net/ipv4/ping_group_range" restrictions, with default 
values (low=1, high=0) which denies this way even for root?


Regards,
Dmitry

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

* Re: Traceroute and "ping" sockets: some questions
  2011-08-19 13:56       ` Dmitry Butskoy
@ 2011-08-19 14:00         ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2011-08-19 14:00 UTC (permalink / raw)
  To: buc; +Cc: netdev

From: Dmitry Butskoy <buc@odusz.so-cdu.ru>
Date: Fri, 19 Aug 2011 17:56:26 +0400

> Why then there is "net/ipv4/ping_group_range" restrictions, with
> default values (low=1, high=0) which denies this way even for root?

While we shake out the bugs and better understand the security
implications of this feature.  One this is resolved we can deprecate
this.

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

end of thread, other threads:[~2011-08-19 14:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 11:19 Traceroute and "ping" sockets: some questions Dmitry Butskoy
2011-08-19 11:38 ` David Miller
2011-08-19 12:22   ` Dmitry Butskoy
     [not found]   ` <4E4E4DF6.2020509@odu.neva.ru>
     [not found]     ` <20110819.062249.2234872106788628654.davem@davemloft.net>
2011-08-19 13:56       ` Dmitry Butskoy
2011-08-19 14:00         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox