Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 171768

Ping with unprivileged user in LXC container / Linux capabilities

$
0
0
On Proxmox VE 5.1, inside an LXC container, I cannot ping with unprivileged user. It gives me the following error:

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...

Read more

Viewing all articles
Browse latest Browse all 171768


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>