OpenVPN in einem LXC-Container auf einem Raspberry Pi 4 mit Ubuntu
13. November 2021
Der LXC-Container braucht ein "tun" device. Dazu gibt es viele Artikel im Internet. Keiner davon hat so richtig funktioniert, deshalb hier die Notiz an mich selbst.
Es ist eigentlich ganz einfach. Die Container-Config (/var/lib/lxc/<container-name>/config) benötigt folgende zwei Einträge:
lxc.cgroup2.devices.allow = c 10 :200 rwm
lxc.mount.entry = /dev/ net/tun dev/net/tun none bind,create=file
Ganz wichtig ist natürlich "cgroup2" (beachte: die Zwei) zu verwenden - ist ja klar!
Das ganze bezieht sich auf einen Privileged Container.
Kommentare
24.02.2024 06:25
Привет! Знаешь, как легко можно решить внезапные денежные проблемы? Попробуй займ на карту без отказа. Это супер-удобно, особенно когда деньги нужны прямо сейчас. Оформляется все онлайн, и ты можешь получить деньги буквально за несколько минут!
15.03.2024 00:04
Howdy! neunzehn83.de
Did you know that it is possible to send proposals fully legally? We proffer a legitimate approach of sending commercial offers through feedback forms.
Contact Form messages aren’t usually sent to spam, as they are seen as important.
We gіve уou the chance to test our service for nothing!
You can count on us for sending up to 50,000 messages.
The cost of sending one million messages is $59.
This letter is automatically generated.
We only use chat for communication.
Contact us.
Telegram - https://t.me/FeedbackFormEU
Skype live:contactform_18
WhatsApp - +375259112693
WhatsApp https://wa.me/+375259112693
Schreibe einen Kommentar!