[Lxc-users] Running LXC containers on a laptop

Daniel Lezcano daniel.lezcano at free.fr
Fri Sep 24 15:21:10 UTC 2010


On 09/24/2010 05:17 PM, Sebastien Pahl wrote:
> Hi,
>
> you need to setup snat or masquerading if you want your containers to
> access the network.
>
> # sysctl -w net.ipv4.ip_forward=1
>
> snat (you need your ):
> # iptables -t nat -A POSTROUTING -o wlan0 -j SNAT --to-source=WLAN0_IP
>
> OR
>
> masquerading:
> # iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

mid-air collision :P




More information about the lxc-users mailing list