If you are facing an issue with Centos 6.8 template in LXC. Showing you the error
[[email protected] ~]# ping google.com ping: icmp open socket: Operation not permitted [[email protected] ~]# ls -l $( which ping ); -rwsr-xr-x 1 100000 100000 38264 May 10 2016 /bin/ping
everything looks ok but you still can't ping. btw, I'm on unprivileged container. Firing the below works for me.
[[email protected] ~]# setcap cap_net_raw+ep /bin/ping
and you should be able to ping after that.