[lxc-users] Problem with lxc.network.script...

PONCET Anthony ff240 at msn.com
Thu Jan 29 11:11:18 UTC 2015


Dear,
I'm using LXC on Ubuntu 14.04 (version : 1.0.7), with unprivileged 
containers.
I try to use the lxc.network.script.up and lxc.network.script.down for 
allow one container in my firewall (iptables/ip6tables).
I've allowed a user to execute /sbin/iptables and /sbin/ip6tables with 
sudo, and if I run my script manually, it run without problem.
But when I started my container, my script doesn't run (I added "echo 
"test" >> test.log" on top of the script and test.log never created, and 
no rules added to iptables).
I used the veth network mode, and I added my user in /etc/lxc/lxc-usernet.
I define the lxc.logfile and lxc.loglevel = 1 but not error are logged.
Do you have an idea to solve my problem?

Regards.


More information about the lxc-users mailing list