Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. # Template used to create this container: /usr/share/lxc/templates/lxc-debian
  2. # Parameters passed to the template: -r jessie
  3. # For additional config options, please look at lxc.container.conf(5)
  4. lxc.network.type = veth
  5. lxc.rootfs = /var/lib/lxc/debvpn/rootfs
  6. lxc.network.link = br0
  7.  
  8. # Common configuration
  9. lxc.include = /usr/share/lxc/config/debian.common.conf
  10.  
  11. # Container specific configuration
  12. lxc.mount = /var/lib/lxc/debvpn/fstab
  13. lxc.utsname = debvpn
  14. lxc.arch = amd64
  15. lxc.autodev = 1
  16. lxc.kmsg = 0
  17.  
  18.  
  19. lxc.network.flags = up
  20. lxc.network.ipv4 = 192.168.1.3/24
  21. lxc.network.ipv4.gateway = 192.168.1.1
  22. lxc.cgroup.memory.limit_in_bytes = 1024M
  23. lxc.network.link = br0
  24. lxc.network.hwaddr = 00:FF:EA:14:24:13
  25.  
  26. lxc.cgroup.devices.deny = a
  27.  
  28. lxc.cgroup.devices.allow = c 10:200 rwm
  29.  
  30. lxc.hook.autodev = sh -c "modprobe tun; cd ${LXC_ROOTFS_MOUNT}/dev; mkdir net; mknod net/tun c 10 200; chmod 0666 net/tun"
  31.  
  32. iface eth0 inet manual
  33.  
  34. iface br0 inet static
  35. bridge-ifaces eth0
  36. bridge_ports eth0
  37. bridge_stp off
  38. bridge_fd 9
  39. bridge_hello 2
  40. bridge_maxage 12
  41. up ifconfig eth0 up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement