<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>I’m going to test lxc on Debian Squeez kernel 2.6.36.2 and I launch CentOS 5.5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>With lxc version 0.72<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>All works well<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>My config is <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.utsname = centos<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.tty = 4<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.network.type = veth<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.network.veth.pair = eth-centos<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.network.flags = up<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.network.link = br0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.network.name = eth0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.network.mtu = 1500<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.network.hwaddr = 00:16:36:2F:8D:DD<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.network.ipv4 = 192.168.3.29/24<o:p></o:p></span></p><p class=MsoNormal># Bloquer la possibilité d'effectuer différentes opérations sur le réseau<o:p></o:p></p><p class=MsoNormal># configurer les interfaces, modifier les tables de routage<o:p></o:p></p><p class=MsoNormal># impossible de mettre net_admin car pas de default route<o:p></o:p></p><p class=MsoNormal>#lxc.cap.drop = net_admin<o:p></o:p></p><p class=MsoNormal>lxc.cap.drop = mac_admin<o:p></o:p></p><p class=MsoNormal>lxc.cap.drop = mac_override<o:p></o:p></p><p class=MsoNormal><span lang=EN-US>lxc.cap.drop = net_raw<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I would like to limit my CentOS with <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>lxc.cap.drop = net_admin<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>but if I active this setting I’m unable to set default gw ( permission denied ) – of course this is what I want for my CentOS machine but I need this setting<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>how I can solve that ? limit my Centos root user and have default gw<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>without default gw , there are no sens ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I don’t find lxc.network.default. or some thing like that <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I try with lxc-start or lxc-execut<span style='color:#1F497D'>e</span> but without success<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Hugues<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>