From 3b6c94cac000be9c94e54f84a7811d668a5c4b38 Mon Sep 17 00:00:00 2001 From: Gasper Spagnolo Date: Sat, 19 Nov 2022 14:24:35 +0100 Subject: [PATCH] Add certs --- certs.md | 3 +++ lxc.md | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 certs.md diff --git a/certs.md b/certs.md new file mode 100644 index 0000000..453ed72 --- /dev/null +++ b/certs.md @@ -0,0 +1,3 @@ +# CERTS + +https://stackoverflow.com/questions/66604487/how-do-i-generate-fullchain-pem-and-privkey-pem diff --git a/lxc.md b/lxc.md index 3e50f04..2752eb6 100644 --- a/lxc.md +++ b/lxc.md @@ -42,7 +42,6 @@ lxc image alias list images: | grep -i debian lxc image alias list images: | grep -i fedora ``` - ### Exposing container to the public: Todo, for now follow linked tutorial. Host it on your own. @@ -71,8 +70,8 @@ or read [this](https://ubuntu.com/tutorials/how-to-run-docker-inside-lxd-contain ### No ipv4 in container?? ```bash -# for ipt in iptables iptables-legacy ip6tables ip6tables-legacy; do $ipt --flush; $ipt --flush -t nat; $ipt --delete-chain; $ipt --delete-chain -t nat; $ipt -P FORWARD ACCEPT; $ipt -P INPUT ACCEPT; $ipt -P OUTPUT ACCEPT; done -# systemctl reload snap.lxd.daemon +for ipt in iptables iptables-legacy ip6tables ip6tables-legacy; do $ipt --flush; $ipt --flush -t nat; $ipt --delete-chain; $ipt --delete-chain -t nat; $ipt -P FORWARD ACCEPT; $ipt -P INPUT ACCEPT; $ipt -P OUTPUT ACCEPT; done +systemctl restart --now snap.lxd.daemon ``` read [this](https://discuss.linuxcontainers.org/t/containers-do-not-have-outgoing-internet-access/10844/4) article.