fix ip forward

This commit is contained in:
Marc Beninca 2018-12-10 08:24:22 +01:00
parent 489dd238a7
commit 0ab333440e

View file

@ -4,9 +4,9 @@ Tasks
* latest * latest
* firefox ~/.mozilla/plugins ← libflashplayer.so * firefox ~/.mozilla/plugins ← libflashplayer.so
* lxc private network: reach out
* /etc/sysctl.conf net.ipv4.ip_forward=1 | /proc/sys/net/ipv4/ip_forward * /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 * /etc/network/interfaces → up command args…
* lxc private network: reach out
* iptables -t nat -A POSTROUTING -o br0 -s 10.0.0.0/8 -j MASQUERADE * iptables -t nat -A POSTROUTING -o br0 -s 10.0.0.0/8 -j MASQUERADE
* lxc private network: get in * lxc private network: get in
* iptables -t nat -A PREROUTING -i br0 -p tcp --dport 2211 -j DNAT --to 10.0.1.1:22 * iptables -t nat -A PREROUTING -i br0 -p tcp --dport 2211 -j DNAT --to 10.0.1.1:22