If you are facing an issue with Centos 6.8 template in LXC. Showing you the error
[root@server ~]# ping google.com ping: icmp open socket: Operation not permitted [root@server ~]# 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.
[root@server ~]# setcap cap_net_raw+ep /bin/ping
and you should be able to ping after that.