[lxc-users] Network question

Alvaro Miranda Aguilera kikitux at gmail.com
Sun Dec 29 05:39:19 UTC 2013


>From what I know, and based on my experience.

the LXC install will setup the libvirt bridge, and if the ipv4 forward is
enabled, then the guest will have outgoing traffic.

echo 1 > /proc/sys/net/ipv4/ip_forward


For the port-forward, you can use iptabled to forward host ports into
guests.

Alvaro.



On Wed, Dec 25, 2013 at 12:12 PM, <shafire at arcor.de> wrote:

> Hello,
>
> I have one public ip address. How do I need to setup my network
> configuration, so that a lxc container can have outgoing traffic, but
> incoming traffic will be port-forwarded?
>
> Regards
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20131229/f3ab27cd/attachment.html>


More information about the lxc-users mailing list