From b68b95d3f337a7e82b3e144d0ead504c9f50dc2c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 20 Nov 2018 16:09:18 +0100 Subject: [PATCH] lxc get in --- in/tasks.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/in/tasks.rst b/in/tasks.rst index 99aca5b..549e5a8 100644 --- a/in/tasks.rst +++ b/in/tasks.rst @@ -7,6 +7,8 @@ Tasks * /etc/sysctl.conf net.ipv4.ip_forward=1 | /proc/sys/net/ipv4/ip_forward * /etc/network/interfaces → up iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE * iptables -t nat -A POSTROUTING -o br0 -s 10.0.0.0/8 -j MASQUERADE + * lxc private network: get in + * iptables -t nat -A PREROUTING -o br0 -p tcp --dport 2211 --to 10.0.1.1:22 -j DNAT * hexdump -C -v file_path * qemu-system avoid junk like floppy: -nodefaults -vga virtio * xtra.squashfs empty media/data ← lib/live/mount/medium + data auto fstab