>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, <[email protected]> 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
> [email protected]
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to