Add settings for allowing VPN access in lxc
This commit is contained in:
parent
e6c28188e5
commit
83a5e144da
1 changed files with 5 additions and 1 deletions
|
@ -15,7 +15,11 @@ begin
|
||||||
"lxc.apparmor.profile = unconfined" \
|
"lxc.apparmor.profile = unconfined" \
|
||||||
"" \
|
"" \
|
||||||
"# Shared Folder" \
|
"# Shared Folder" \
|
||||||
"lxc.mount.entry = $(realpath "$dir/../..") $valhallaRoot none bind 0 0"
|
"lxc.mount.entry = $(realpath "$dir/../..") $valhallaRoot none bind 0 0" \
|
||||||
|
"" \
|
||||||
|
"# VPN" \
|
||||||
|
"lxc.cgroup.devices.allow = c 10:200 rwm" \
|
||||||
|
"lxc.mount.entry = /dev/net dev/net none bind,create=dir 0 0"
|
||||||
end | sudo tee -a "$containerDir/config" > /dev/null
|
end | sudo tee -a "$containerDir/config" > /dev/null
|
||||||
|
|
||||||
sudo lxc-start "$container"
|
sudo lxc-start "$container"
|
||||||
|
|
Loading…
Reference in a new issue