[Lxc-users] Running LXC containers on a laptop
Sebastien Pahl
seb at dotcloud.com
Fri Sep 24 15:23:31 UTC 2010
On Fri, Sep 24, 2010 at 17:21, Daniel Lezcano <daniel.lezcano at free.fr> wrote:
> 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
>
Your response is way better anyway:-P I guess I was too lazy.
--
Sebastien Pahl
@sebp
More information about the lxc-users
mailing list