ping/ICMP as the user does not work

Started by bluelupo, 2014/12/09, 13:26:51

Previous topic - Next topic

bluelupo

Hi everyone,
yesterday I must note that at a painful siduction freshly installed a ping as ordinary users not in the local network, to still the Internet works (Operation permitted). As root, however, does a ping as expected.

A comparison with a 2013er version of siduction revealed no abnormalities (file permissions, iptables rules, etc.) of the current /bin/ping.

In my search for a solution thanks to a tip from hendrikL (Thank you) the reference to the package iputils-ping is in siduction chat, please. This package must be removed once and re-install, then the ping works as a user correctly again.

Presumably it gets even give this a bug, but I still investigating any time here.


# apt-get purge iputils-ping
# apt-get install iputils-ping

oduffo

Hi,

instead of apt-get install iputils-ping
I had to do
apt-get install inetutils-ping and everything is fine now.

Ping works as expected for every user.

Gruß
oduffo

hendrikL

Hi,
we are working on it, to fix that issue!

An other solution is to set the permissions with "setcap" so you don't have to reinstlall iputils-ping
libcap2-bin has to be installed, if you have systemd, than it should be. Check it!

be root

setcap cap_net_raw+ep /bin/ping
setcap cap_net_raw+ep /bin/ping6


with "getcap" you can see if the permissions are ok


root@hhl:/home/hhl# getcap `which ping`
/bin/ping = cap_net_raw+ep
root@hhl:/home/hhl# getcap `which ping6`
/bin/ping6 = cap_net_raw+ep


in the hope that work for you

greetz hendrikL