From 0ab333440eac761b292a954ba35adb3de67c6737 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 10 Dec 2018 08:24:22 +0100 Subject: [PATCH] fix ip forward --- in/tasks.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/in/tasks.rst b/in/tasks.rst index e66ffc3..6ad5257 100644 --- a/in/tasks.rst +++ b/in/tasks.rst @@ -4,9 +4,9 @@ Tasks * latest * firefox ~/.mozilla/plugins ← libflashplayer.so + * /etc/sysctl.conf net.ipv4.ip_forward=1 | /proc/sys/net/ipv4/ip_forward + * /etc/network/interfaces → up command args… * lxc private network: reach out - * /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 -i br0 -p tcp --dport 2211 -j DNAT --to 10.0.1.1:22