ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] ping и права доступа
@ 2006-11-20 11:16 Eugene Prokopiev
  2006-11-20 11:44 ` Alexander Volkov
  2006-11-20 11:44 ` Eugene Prokopiev
  0 siblings, 2 replies; 3+ messages in thread
From: Eugene Prokopiev @ 2006-11-20 11:16 UTC (permalink / raw)
  To: Community

Здравствуйте!

В java имеется метод InetAddress.isReachable(), в документации на 
который написано следующее:

Test whether that address is reachable. Best effort is made by the 
implementation to try to reach the host, but firewalls and server 
configuration may block requests resulting in a unreachable status while 
some specific ports may be accessible. A typical implementation will use 
ICMP ECHO REQUESTs if the privilege can be obtained, otherwise it will 
try to establish a TCP connection on port 7 (Echo) of the destination host.

В tcpdump я вижу, что используется именно второй метод, соответственно 
напрашивается вывод, что прав на ICMP ECHO REQUEST у приложения нет. 
Утилита ping работает, но вспоминаю, что работает она в чруте, поэтому 
подозрение на недостаточные права подкрепляются ...

В правах ли дело? И если да, как и кому эти права дать?

-- 
С уважением, Прокопьев Евгений



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

* Re: [Comm] ping и права доступа
  2006-11-20 11:16 [Comm] ping и права доступа Eugene Prokopiev
@ 2006-11-20 11:44 ` Alexander Volkov
  2006-11-20 11:44 ` Eugene Prokopiev
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Volkov @ 2006-11-20 11:44 UTC (permalink / raw)
  To: Community

On 2006-11-20 14:16:47 +0300, Eugene Prokopiev wrote:
EP> Здравствуйте!

EP> В java имеется метод InetAddress.isReachable(), в документации на 
EP> который написано следующее:

EP> Test whether that address is reachable. Best effort is made by the 
EP> implementation to try to reach the host, but firewalls and server 
EP> configuration may block requests resulting in a unreachable status while 
EP> some specific ports may be accessible. A typical implementation will use 
EP> ICMP ECHO REQUESTs if the privilege can be obtained, otherwise it will 
EP> try to establish a TCP connection on port 7 (Echo) of the destination host.

EP> В tcpdump я вижу, что используется именно второй метод, соответственно 
EP> напрашивается вывод, что прав на ICMP ECHO REQUEST у приложения нет. 
EP> Утилита ping работает, но вспоминаю, что работает она в чруте, поэтому 
EP> подозрение на недостаточные права подкрепляются ...

EP> В правах ли дело? И если да, как и кому эти права дать?
control ping ?

--
 Regards, Alexander



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

* Re: [Comm] ping и права доступа
  2006-11-20 11:16 [Comm] ping и права доступа Eugene Prokopiev
  2006-11-20 11:44 ` Alexander Volkov
@ 2006-11-20 11:44 ` Eugene Prokopiev
  1 sibling, 0 replies; 3+ messages in thread
From: Eugene Prokopiev @ 2006-11-20 11:44 UTC (permalink / raw)
  To: ALT Linux Community

> В правах ли дело? И если да, как и кому эти права дать?

да, дело именно в правах, запущенное от рута приложение отправляет 
именно icmp-запросы.

в документации на перловый Net::Ping сказано:

Specifying the "icmp" protocol requires that the program be run as root 
or that the program be setuid to root.

это окончательный диагноз?

-- 
С уважением, Прокопьев Евгений



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

end of thread, other threads:[~2006-11-20 11:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-20 11:16 [Comm] ping и права доступа Eugene Prokopiev
2006-11-20 11:44 ` Alexander Volkov
2006-11-20 11:44 ` Eugene Prokopiev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git