From 41f3753ec9216b0e85f1d9e85f0152f6284a4c70 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 4 Dec 2018 16:25:07 +0100 Subject: [PATCH] fix dnat --- in/tasks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/in/tasks.rst b/in/tasks.rst index 549e5a8..33f3432 100644 --- a/in/tasks.rst +++ b/in/tasks.rst @@ -8,7 +8,7 @@ Tasks * /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 + * iptables -t nat -A PREROUTING -i br0 -p tcp --dport 2211 -j DNAT --to 10.0.1.1:22 * 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