<div dir="ltr">From what I know, and based on my experience.<div><br></div><div>the LXC install will setup the libvirt bridge, and if the ipv4 forward is enabled, then the guest will have outgoing traffic.</div><div><br></div>
<div>echo
1 > /proc/sys/net/ipv4/ip_forward<br></div><div><br></div><div><br></div><div>For the port-forward, you can use iptabled to forward host ports into guests.</div><div><br></div><div>Alvaro.</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Dec 25, 2013 at 12:12 PM, <span dir="ltr"><<a href="mailto:shafire@arcor.de" target="_blank">shafire@arcor.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
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?<br>
<br>
Regards<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote></div><br></div>