On Proxmox VE 5.1, inside an LXC container, I cannot ping with unprivileged user. It gives me the following error:
On the hostnode itself I can ping with both unprivileged user and root, but inside an LXC container only as root.
The following fixes it and gives all unprivileged users the required privileges to a open the socket:
Here's my question:
Would that be the right solution without exposing too many privileges?
How come this has suddenly changed? I remember ping was always available to all system users, at least in the pre LXC 2.1 days.
Code:
$ ping google.ch
ping: socket: Operation not permitted
On the hostnode itself I can ping with both unprivileged user and root, but inside an LXC container only as root.
The following fixes it and gives all unprivileged users the required privileges to a open the socket:
Code:
$ sudo setcap cap_net_raw+p /bin/ping
Here's my question:
Would that be the right solution without exposing too many privileges?
How come this has suddenly changed? I remember ping was always available to all system users, at least in the pre LXC 2.1 days.