Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Template used to create this container: /usr/share/lxc/templates/lxc-debian
- # Parameters passed to the template: -r jessie
- # For additional config options, please look at lxc.container.conf(5)
- lxc.network.type = veth
- lxc.rootfs = /var/lib/lxc/debvpn/rootfs
- lxc.network.link = br0
- # Common configuration
- lxc.include = /usr/share/lxc/config/debian.common.conf
- # Container specific configuration
- lxc.mount = /var/lib/lxc/debvpn/fstab
- lxc.utsname = debvpn
- lxc.arch = amd64
- lxc.autodev = 1
- lxc.kmsg = 0
- lxc.network.flags = up
- lxc.network.ipv4 = 192.168.1.3/24
- lxc.network.ipv4.gateway = 192.168.1.1
- lxc.cgroup.memory.limit_in_bytes = 1024M
- lxc.network.link = br0
- lxc.network.hwaddr = 00:FF:EA:14:24:13
- lxc.cgroup.devices.deny = a
- lxc.cgroup.devices.allow = c 10:200 rwm
- lxc.hook.autodev = sh -c "modprobe tun; cd ${LXC_ROOTFS_MOUNT}/dev; mkdir net; mknod net/tun c 10 200; chmod 0666 net/tun"
- iface eth0 inet manual
- iface br0 inet static
- bridge-ifaces eth0
- bridge_ports eth0
- bridge_stp off
- bridge_fd 9
- bridge_hello 2
- bridge_maxage 12
- up ifconfig eth0 up
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement