[GH-ISSUE #32] Ping / MTR not working #22

Closed
opened 2026-02-28 00:40:12 +03:00 by kerem · 2 comments
Owner

Originally created by @s4m4n on GitHub (May 19, 2015).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/32

I just installed the LookingGlass for testing and noticed that MTR and ping are not working, Host and Traceroute are working fine. I tried making changes to Ping function to below:

return $this->procExecute('ping --help', $host);

It didn't returned anything either. null reponse.

Also, file permissions are fine and there is no error log.

Any idea?

Originally created by @s4m4n on GitHub (May 19, 2015). Original GitHub issue: https://github.com/telephone/LookingGlass/issues/32 I just installed the LookingGlass for testing and noticed that MTR and ping are not working, Host and Traceroute are working fine. I tried making changes to Ping function to below: return $this->procExecute('ping --help', $host); It didn't returned anything either. null reponse. Also, file permissions are fine and there is no error log. Any idea?
kerem 2026-02-28 00:40:12 +03:00
  • closed this issue
  • added the
    v1
    label
Author
Owner

@telephone commented on GitHub (May 19, 2015):

What OS?

The problem is permission (SUID) based. The short of it is ping and MTR need root permission to open a socket, but some OS' have tighter privileges which prevent your web user (www-user) from accessing the commands.

Try these commands:

sudo chmod u+s `which ping`
sudo chmod u+s `which ping6`
sudo chmod u+s `which mtr`
<!-- gh-comment-id:103438233 --> @telephone commented on GitHub (May 19, 2015): What OS? The problem is permission (SUID) based. The short of it is ping and MTR need root permission to open a socket, but some OS' have tighter privileges which prevent your web user (www-user) from accessing the commands. Try these commands: ``` bash sudo chmod u+s `which ping` sudo chmod u+s `which ping6` sudo chmod u+s `which mtr` ```
Author
Owner

@s4m4n commented on GitHub (May 19, 2015):

Well, It was SElinux :) Thanks

<!-- gh-comment-id:103444889 --> @s4m4n commented on GitHub (May 19, 2015): Well, It was SElinux :) Thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LookingGlass#22
No description provided.